[BUG] Claude code defaults to `/compact` when I type `/context`

Resolved 💬 3 comments Opened Nov 3, 2025 by TiuTalk Closed Nov 3, 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?

When I type /context I expect the first command highlight to be /context, but instead it selects the 3rd option /compact. It seems the tool is fuzzy searching correctly, ranking the options correctly, but somehow selecting the 3rd option instead of the first one.

<img width="632" height="225" alt="Image" src="https://github.com/user-attachments/assets/9e6dff5e-2cc5-412f-9c7d-2544730dbf21" />

What Should Happen?

I expect the tool to select the option that matches what I typed, in this case /context.

Error Messages/Logs

Steps to Reproduce

Open Claude Code and type /context

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.31 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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