codex icon indicating copy to clipboard operation
codex copied to clipboard

$ skill selector shows duplicate skills with same name across scopes without indicating which one wins precedence

Open alperenYagci opened this issue 10 months ago • 2 comments

What version of Codex is running?

v0.91.0

What subscription do you have?

plus

Which model were you using?

5.2

What platform is your computer?

Linux 6.18.6-200.fc43.x86_64 x86_64 unknown

What terminal emulator and version are you using (if applicable)?

gnome terminal

What issue are you seeing?

In the Codex CLI, the $ skill mention/selector UI shows duplicate entries when a skill with the same name exists in multiple scopes (e.g., REPO and USER). This is confusing because skill precedence says the higher-precedence location should override the lower one, but the selector provides no indication which entry wins or which one will run when selected.

Note: /skills looks fine in my case — the issue is specifically the $ selector.

What steps can reproduce the bug?

  1. Create a skill in the repo scope:
    • <repo>/.codex/skills/my-skill/SKILL.md
    • with:
      ---
      name: my-skill
      description: test
      ---
      
  2. Create another skill in the user scope with the same name:
    • ~/.codex/skills/my-skill/SKILL.md
    • with the same YAML name: my-skill
  3. Start Codex CLI from inside the repo.
  4. Type $ to open the skill mention/selector UI.
  5. Observe that two my-skill entries are shown.

What is the expected behavior?

When multiple skills share the same name, the $ selector should either:

  • Show only the resolved/active skill (the one that wins precedence), or
  • Show both entries but clearly label them with:
    • which one is Active (wins precedence)
    • which one is Overridden
    • and include scope + full path so the user can intentionally choose.

Current behavior (duplicates with no disambiguation) makes explicit invocation ambiguous.

Additional information

No response

alperenYagci avatar Jan 26 '26 19:01 alperenYagci

Thanks for reporting this. This part of the logic is currently being refactored, and I’ll clean it up shortly. For now, you can choose which skill you prefer and disable the other via /skills. I’ll update this thread once the behavior is finalized.

xl-openai avatar Jan 27 '26 06:01 xl-openai

Closing as stale after the skill and mention picker redesign, including #46694. If same-name skills are still indistinguishable in the current picker, please reopen with the two skill locations.

etraut-openai avatar Nov 15 '26 06:11 etraut-openai