Autocomplete ignores prefix match and defaults to wrong command
Resolved 💬 3 comments Opened Jan 17, 2026 by LadderChaos Closed Jan 21, 2026
Bug Description
The slash command autocomplete menu ignores typed prefix and defaults to /preflight instead of matching the typed command.
Steps to Reproduce
- Type
/contextin the prompt - Autocomplete menu shows
/contextas the first option - Press Enter
- Actual:
/preflightexecutes instead - Also broken: Type
/conand press Tab → completes to/preflightinstead of/context
Expected Behavior
- Typing
/context+ Enter should execute/context(the displayed first option) - Typing
/con+ Tab should complete to/context(prefix match) - Autocomplete should respect lexical prefix matching, not some arbitrary default
Current Workaround
- Type
/contextthen press Down arrow to manually select it, then Enter - Or type the full command with a trailing space:
/contextto bypass autocomplete
Environment
- Claude Code CLI
- macOS (visible in screenshot path:
/var/folders/...) - Observed: 2026-01-17
Screenshot
User provided screenshot showing /context typed and displayed as first option, but /preflight being the actual selected/default command.
Impact
Medium - Confusing UX, breaks expected autocomplete behavior, forces manual selection for non-default commands.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗