[BUG] slash commands from anthropic should take priority over alphanumeric options
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?
slash commands from anthropic should take priority over alphanumeric options
I type /context I should get the slash command for /context not a slash command i created. It selects /add_root_ids_and_context_to_logs which is a slash command I created.
Seems to select enumeration that is alpha numeric.
What Should Happen?
if I type the complete name of a slash command, it should select the one I typed first, before exploring other enumerations of slash commands.
IE: typed /context. and /context is a slash command, but I also have /add_root_ids_and_context_to_logs it should select /context because it was all the characters I typed and nothing more. If I add /context_ it can select /add_root_ids_and_context_to_logs context_ fits in that enumeration.
Error Messages/Logs
none, just a bug in the selected slash command.
Steps to Reproduce
- have slash commands with the keyword
contextin it that start withaorb, such as/add_root_ids_and_context_to_logs. - type out
/contextand click enter - does not perform
/contextcallsadd_root_ids_and_context_to_logsinstead
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.31
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
<!-- Failed to upload "Screenshot 2025-11-03 at 1.16.26 PM.png" -->
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗