Command dropdown navigation bug - first highlighted option not selectable
Resolved 💬 3 comments Opened Nov 14, 2025 by elmart-cs Closed Jan 15, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When typing a custom slash command prefix (e.g., /com), the command dropdown shows
two entries:
- "Commit (project)" (first, highlighted)
- "Commit (project,gitignored)" (second, also highlighted)
Expected Behavior:
- The first highlighted option should be selectable with Enter or arrow key
navigation
- Only one option should be highlighted at a time during keyboard navigation
Actual Behavior:
- The first option ("Commit (project)") appears highlighted but is not selectable
with keyboard navigation
- When using arrow keys to cycle through options, the first option is completely
skipped/ignored
- Only the second option ("Commit (project,gitignored)") is accessible via keyboard
navigation
Steps to Reproduce:
- Create a custom slash command (e.g., ~/.claude/commands/commit.md)
- In Claude Code, type the command prefix (e.g., /com)
- Observe the dropdown shows two entries, both appearing highlighted
- Try to select the first option with Enter key - fails
- Try to navigate with arrow keys - first option is skipped
Environment:
- Platform: macOS (Darwin 24.6.0)
- Claude Code version: [your version]
- Only one custom command file exists: ~/.claude/commands/commit.md
Workaround:
- Second option is selectable with keyboard navigation
Additional Notes:
This appears to be Claude Code auto-generating contextual variants of the custom
command, but with a UI bug in the dropdown navigation logic.
What Should Happen?
Expected Behavior:
- The first highlighted option should be selectable with Enter or arrow key
navigation
- Only one option should be highlighted at a time during keyboard navigation
Error Messages/Logs
Steps to Reproduce
Steps to Reproduce:
- Create a custom slash command (e.g., ~/.claude/commands/commit.md)
- In Claude Code, type the command prefix (e.g., /com)
- Observe the dropdown shows two entries, both appearing highlighted
- Try to select the first option with Enter key - fails
- Try to navigate with arrow keys - first option is skipped
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.37
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗