Autocomplete incorrectly prioritizes custom slash commands over built-in commands
Resolved 💬 3 comments Opened Oct 31, 2025 by mattatfeithdotcom Closed Nov 4, 2025
Problem
When typing built-in slash commands like /clear, the autocomplete system highlights and suggests custom project commands with similar prefixes (like /clean) instead. This causes users to accidentally trigger the wrong command.
Steps to Reproduce
- Have a custom slash command defined (e.g.,
/cleanin.claude/commands/clean.md) - Type
/clear(a built-in command) in the Claude Code terminal - Observe that
/cleanis highlighted at the bottom as a suggestion - Pressing Enter may trigger
/cleaninstead of/clear
Expected Behavior
- Built-in commands should be prioritized over custom commands in autocomplete
- Or autocomplete should require more specific matching to avoid conflicts
- Or both options should be clearly shown with built-in commands marked distinctly
Actual Behavior
Custom commands with similar prefixes override/shadow built-in commands in the autocomplete suggestions, making it difficult to use built-in functionality.
Impact
Users cannot reliably use built-in commands when custom commands have similar names, leading to frustration and accidental command execution.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗