Slash command autocomplete selects second item instead of first/exact match
Resolved 💬 4 comments Opened Jan 18, 2026 by chenxizhang Closed Jan 21, 2026
Description
When typing a slash command in the CLI, the autocomplete dropdown incorrectly highlights the second item instead of the first item or the exact match.
Steps to Reproduce
- Open Claude Code CLI
- Type
/clearin the input - Observe the autocomplete dropdown
Expected Behavior
The first item /clear (which is also an exact match) should be highlighted/selected by default.
Actual Behavior
The second item /compact is highlighted/selected instead, even though /clear is both the first item and an exact match for the typed text.
Environment
- OS: Windows 11
- Claude Code version: 2.1.12
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗