Skip to content

feat(tui): add slash command completion - #77

Merged
danielkov merged 1 commit into
mainfrom
feat/slash-command-completion
Sep 1, 2026
Merged

feat(tui): add slash command completion#77
danielkov merged 1 commit into
mainfrom
feat/slash-command-completion

Conversation

@danielkov

Copy link
Copy Markdown
Contributor

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.

@danielkov
danielkov force-pushed the feat/slash-command-completion branch from d7e3aad to da1c2c8 Compare September 1, 2026 16:04
@danielkov
danielkov merged commit 850b7b4 into main Sep 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant