[BUG] Typing slash commands interferes with autocompletion

Resolved 💬 3 comments Opened Nov 4, 2025 by steffen-heil-secforge Closed Nov 8, 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?

Why i type slash commands, the cli version shows which commands match what i typed.
However it does not focus correctly, executing the wrong command when I press enter.

Example: After typing /context I see

<img width="1240" height="155" alt="Image" src="https://github.com/user-attachments/assets/d53dcd9d-bb7f-435a-8665-8b0026126999" />

Note the blue marker for /compact. So if I just press enter it replaces /context in the input line with /compact and executes that.

I like autocompletion, but if I type a precise command name and press enter, that command should be executed.

What Should Happen?

It should execute the command I typed.

Error Messages/Logs

Steps to Reproduce

Just type /context and press Enter.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.31

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

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