[BUG] slash commands from anthropic should take priority over alphanumeric options

Resolved 💬 3 comments Opened Nov 3, 2025 by jackstine Closed Nov 7, 2025

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

  1. have slash commands with the keyword context in it that start with a or b, such as /add_root_ids_and_context_to_logs.
  2. type out /context and click enter
  3. does not perform /context calls add_root_ids_and_context_to_logs instead

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" -->

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗