Slash command autocomplete prioritizes recency over prefix matching
Resolved 💬 3 comments Opened Jan 18, 2026 by shawnyeager Closed Jan 18, 2026
Current behavior:
Typing /q autocompletes to /frontend-design (or other recently-used commands) even though "q" doesn't match any characters in that command name.
Expected behavior:
Prefix matching should take priority over recency. If I type /q, show commands starting with "q" first. Only fall back to fuzzy/recency matching when there are no prefix matches.
Why this matters:
- Muscle memory fails when recency hijacks results
- Users expect
/qto show/quitor similar, not unrelated recent commands - The current behavior makes autocomplete unpredictable
Suggested fix:
- Exact prefix matches first
- Fuzzy prefix matches second (e.g.,
/fd→/frontend-design) - Recency-weighted results last (only when no character matches exist)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗