Repository navigation
feat(tui): complete slash commands and skills as you type - #276
Merged
setoelkahfi merged 1 commit intoNov 17, 2026
Merged
Conversation
There was a problem hiding this comment.
This change adds slash-command and skill autocompletion to the TUI. Typing / now opens a popup above the input, listing built-in, user-defined, and skill commands with descriptions. The popup supports prefix and substring filtering, keyboard navigation (Up/Down/Tab/Enter/Esc), and closes when dismissed or when an argument is typed. The candidate list is cached and refreshed as needed. The change includes a comprehensive set of unit tests for candidate ordering, filtering, keyboard handling, and rendering. No previous findings are present, and the new logic is well-covered by tests.
Automated review by siGit Code Review · commit b36bc3b · see the review dashboard
setoelkahfi
force-pushed
the
feature/tui-slash-autocomplete
branch
from
November 7, 2026 09:32
b36bc3b to
c810854
Compare
paydii
approved these changes
Nov 7, 2026
setoelkahfi
force-pushed
the
feature/tui-slash-autocomplete
branch
2 times, most recently
from
November 7, 2026 12:31
cc51ff0 to
7a3aeb4
Compare
foodandtravel
approved these changes
Nov 12, 2026
Typing / in the chat box opens a popup above the input with the built-in commands, user-defined commands and skills, each with a dimmed description. It filters by prefix first, then by substring, and shows up to eight rows. Up and Down move the selection (wrapping). Tab completes to "/<name> ". Enter completes too, and submits once the input already equals the selected name. Esc closes the popup until the input changes. The tab-bar Tab handler only fires on empty input, so it does not clash. The candidate list is cached on App and rebuilt from disk each time the input becomes "/". Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
setoelkahfi
force-pushed
the
feature/tui-slash-autocomplete
branch
from
November 17, 2026 09:10
7a3aeb4 to
1a7fcd9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The TUI had no completion for slash commands. Typing
/now opens a popup above the input with the built-ins (including the TUI-only/thinking,/toolsand/resume), user-defined commands and skills, each with a dimmed description.Up/Downmove the selection and wrap.Tabcompletes to/<name>.Entercompletes, and submits once the input already equals the selected name.Esccloses the popup until the input changes.Tabhandler only fires on empty input, and any/prefix makes the input non-empty, so the two don't clash.Appand rebuilt from disk each time the input becomes/.Test plan:
TestBackendrender check of the popup.cargo fmt -- --check,cargo clippy --tests -- -D warningsandcargo test --lockedpass.cargo run -p sigit, type/, then/wh, Tab, Enter, and a/<skill>.Top of the stack. Base is
feature/skill-slash-commands.