Command selector incorrectly highlights /modern-git when typing /model
Bug Description
When using the / command selector to find and run a command, typing /model incorrectly highlights and remains focused on /modern-git instead of filtering to show the /model command option.
Steps to Reproduce
- Open Claude Code
- Type
/to open the command selector - Type
modelto search for the/modelcommand (set AI model) - Expected: The selector should highlight
/modelas the matching command - Actual: The selector stays highlighted on
/modern-gitinstead
Expected Behavior
The command selector should correctly filter and highlight commands that match the typed text. When typing /model, only /model should be shown as a match and highlighted.
Actual Behavior
The command selector incorrectly keeps /modern-git highlighted despite it not matching the search term /model. This makes it difficult to select the correct command when similar command names exist.
Environment
- Claude Code Version: v2.1.12
- Model: Haiku 4.5
- OS: Windows
Screenshots
[See attached screenshot showing /model typed but /modern-git highlighted]
Additional Context
This appears to be a fuzzy search or filtering logic issue in the command selector. Commands with "mod" in the name (like /modern-git and /model) may have fuzzy matching that's not working correctly, or the highlighting/focus is not being updated properly after the filter is applied.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗