[BUG] Typing `/context` pre-selects `/compact`

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

<img width="1565" height="317" alt="Image" src="https://github.com/user-attachments/assets/e413f813-f37d-43d5-92a6-377fb586aaf8" />

As you can see in this screenshot, when I type /context, it pre-selects /compact. So if I type "/context" + <kbd>Enter</kbd>, it will compact the session.

What Should Happen?

Instead it should pre-select /context, so that when I hit <kbd>Enter</kbd> it shows context as one might expect.

Error Messages/Logs

n/a

Steps to Reproduce

  1. Start or resume a session
  2. Type "/context"
  3. Press <kbd>Enter</kbd>

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.31

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

I'm using Ghostty terminal

View original on GitHub ↗

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