[BUG] Slash command autocomplete ignores exact match, requires arrow key override

Resolved 💬 2 comments Opened Jan 19, 2026 by bhyslop Closed Jan 19, 2026

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 typing /context (the full command name), autocomplete selects /compact instead. I have to use arrow keys to manually select /context even though I've typed the exact command name.

What Should Happen?

Exact match should take priority. If I type /context, it should select /context.

Error Messages/Logs

Steps to Reproduce

  1. In Claude Code CLI, type /context (full word)
  2. Press Enter or Tab to confirm
  3. Observe that /compact is selected and executed instead of /context

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Don't know

Claude Code Version

2.1.12

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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