feat(tui): add slash command completion - #77
Merged
Conversation
danielkov
force-pushed
the
feat/slash-command-completion
branch
from
September 1, 2026 16:04
d7e3aad to
da1c2c8
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.
Summary
Adds slash-command discovery and tab completion to the terminal prompt. Local and agent-advertised commands appear in an anchored suggestion popup with descriptions and keyboard navigation.
Motivation
Slash commands were only discoverable out of band and had to be typed exactly. Interactive suggestions make the command surface visible without changing existing submission behavior.
Technical details
Completion behavior
Suggestions are derived from the initial slash token while the client is idle. Up and Down move the selection, Tab replaces the command token, and Esc dismisses the popup; Tab continues to insert spaces when completion is inactive.
Command metadata
The local command registry now carries descriptions, and ACP available-command updates retain agent-provided descriptions. Local commands take precedence when an advertised command uses the same name.
Popup layout
The popup renders above both start-screen and compact composers with a bounded viewport and small-terminal guards. Existing session, model, and effort dialogs remain topmost.