[BUG] typing /context incorrectly highlights /compact instead
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?
typing /context incorrectly highlights /compact instead (seems to only happen when using the 1M token variant of Claude Sonnet 4.5, not the 200K) Specifically with /co it looks to first match on /compact, but when I get to /con it does not switch, prob because the word context is in the description for /compact? Obv if I hit return it incorrectly executes /compact.
What Should Happen?
it should prefer to highlight/select matching commands over descriptions.
Error Messages/Logs
Steps to Reproduce
type /con
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.31 (Claude Code)
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
<img width="1244" height="195" alt="Image" src="https://github.com/user-attachments/assets/e92ee15e-ab1c-442a-b1e3-edff9ecc8e01" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗