[BUG] command search preview orders sensibly but highlights the third option
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 /cont clearly /context should be the first preview result, selectable by hitting return.
the previewed list of matches does reflect the sensible order.
the highlighted option, executed by hitting return, is however the third.
even writing the full /context will still execute the wrong thing when hitting enter.
<img width="804" height="681" alt="Image" src="https://github.com/user-attachments/assets/cebc3655-de17-40b1-afae-eff2d6298360" />
What Should Happen?
the first option in the search results window should be highlighted instead.
Error Messages/Logs
Steps to Reproduce
- open claude
- write
/cont
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.12
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
using kitty 0.45.0 terminal. same thing happens in terminal.app .
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗