[Bug] Command autocomplete highlighting mismatches input pattern in slash commands

Status Fixed / completed
Maintainer reply ✓ Yes — bogini
Activity 4 comments · opened Nov 1, 2025 · closed Nov 4, 2025
💡 Likely answer: A maintainer (bogini, collaborator) responded on this thread — see the highlighted reply below.

Bug Description
attempting to log in via the slash commmand does not properly perform command highlighting. typing "/log" matches "/logout" (unsure what the natural ordering for commands is) but once the command becomes "/logi" it still hovers over "/logout" which is unintuitive and hard to use for the user.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.0.31
  • Feedback ID: a2f29ba6-332d-4d78-99d5-85fe9572df61

Errors

[]

View original on GitHub ↗

4 Comments

ryan-williams · 10 months ago

I added [some /commands][cmds] today. Now when I try to /compact, autocomplete is broken:

<img width="864" height="384" alt="Image" src="https://github.com/user-attachments/assets/e8d428a1-c12b-4601-a8c0-c8d7c29f5970" />

The 2 "amend" rows are highlighted (and will be run) if I push <enter>, even though I typed /comp.

<details><summary>Text version (sans highlighting)</summary>

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
──────
> /comp
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
──────
  /amend                           Amend HEAD with uncommitted changes (if any) and rewrite the commit message
based
                                   on the complete... (project)
  /commit                          Analyze uncommitted changes and create a commit. (project)
  /compact             Clear conversation history but keep a summary in context. Optional: /compact [instructions
 for
                       summarization]
  /commit              Analyze uncommitted changes and create a commit. (project, gitignored)
  /pr-comments         Get comments from a GitHub pull request
  /amend               Amend HEAD with uncommitted changes (if any) and rewrite the commit message based on the
                       complete... (project, gitignored)
  /security-review     Complete a security review of the pending changes on the current branch
  /help                Show help and available commands
  /output-style        [DEPRECATED] Set the output style directly or from a selection menu. Use CLAUDE.md or
slash
                       commands instead.

</details>

Recording:

https://github.com/user-attachments/assets/02da144b-f4ec-45da-8dca-7c32c51d052c

[cmds]: https://github.com/ryan-williams/.claude/tree/main/commands

mimkorn · 9 months ago

!Image same issue, completely off with the suggestions

bogini collaborator · 9 months ago

This has been fixed in 2.0.32.

github-actions[bot] · 9 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.