[BUG] Incorrect slash command suggestion on v2.0.30
Status Fixed / completed
Maintainer reply ✓ Yes — bogini
Activity 5 comments · opened Oct 31, 2025 · closed Nov 10, 2025
💡 Likely answer: A maintainer (bogini, collaborator)
responded on this thread — see the highlighted reply below.
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 I type /context, Claude Code suggests/highlights /compact instead – I almost accidentally compacted my session, which I very much did not want to do!
In this screenshot, all I've done is typed /context – I haven't hit any of the arrow keys to adjust the highlighted command. If I hit enter, I will select the wrong command.
<img width="1030" height="125" alt="Image" src="https://github.com/user-attachments/assets/6dbbcf8b-79c4-4cb3-bc0d-75c32c275354" />
What Should Happen?
Claude should highlight the slash command that matches what I've typed, not some other one.
Error Messages/Logs
Steps to Reproduce
- Start or resume a Claude Code session
- Type
/context - Claude highlights the wrong command
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.0.28
Claude Code Version
2.0.30
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
5 Comments
I'm also experiencing similar behavior and it is inconsistent, sometimes the match is correct other times it's not.
<img width="1980" height="288" alt="Image" src="https://github.com/user-attachments/assets/e0059b22-9472-4780-bd06-b736addd142f" />
<img width="2026" height="486" alt="Image" src="https://github.com/user-attachments/assets/5aa1e631-dde7-4d7c-9d90-0ddb3ba873cd" />
Still happening after updating to v2.0.31
After using Claude Code some more over the weekend, I can say that this appears to affect all autocomplete contexts, not just slash commands. For example, when using
@to reference specific files, Claude Code highlights the wrong item even after I've typed a bunch of the path of the file I want.Please
claude update, this was fixed in 2.0.33.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.