fix(tui): consolidate slash command surface#68
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR consolidates the TUI-visible slash command surface by folding config-related toggles under /config … subcommands and usage info under /usage …, while keeping legacy command names callable but hidden for one release and updating documentation/demo data accordingly.
Changes:
- Hide legacy top-level commands (
/color,/vim,/voice,/statusline,/terminal-setup,/cost,/context,/undo,/revert) and route their functionality through/config …and/usage …. - Add
/statsto the TUI-visible command list and help categorization for the interactive stats dialog. - Update docs-site palette/demo command lists and
docs/commands.mdto reflect the consolidated command surface.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src-rust/crates/tui/src/app.rs | Removes legacy commands from the visible TUI command list, adds /stats, and adjusts slash-command interception behavior. |
| src-rust/crates/commands/src/lib.rs | Marks legacy commands as hidden, adds /config subcommand dispatch, and adds `/usage cost |
| docs/src/palette-data.js | Updates docs-site palette items to show /config … and /usage … entries (plus /stats). |
| docs/src/demos.js | Updates demo command list to the consolidated /config … and /usage … surface. |
| docs/commands.md | Updates command reference to document consolidated commands and de-emphasize hidden legacy commands. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+855
to
+878
| let mut subcommand_parts = args.splitn(2, char::is_whitespace); | ||
| let subcommand = subcommand_parts.next().unwrap_or_default(); | ||
| let subcommand_args = subcommand_parts.next().unwrap_or_default().trim(); | ||
| match subcommand { | ||
| "color" | "prompt-color" | "prompt_color" => { | ||
| return ColorCommand.execute(subcommand_args, ctx).await; | ||
| } | ||
| "vim" | "vi" | "editor" | "editor-mode" | "editor_mode" => { | ||
| return VimCommand.execute(subcommand_args, ctx).await; | ||
| } | ||
| "voice" => { | ||
| return VoiceCommand.execute(subcommand_args, ctx).await; | ||
| } | ||
| "statusline" | "status-line" | "status_line" => { | ||
| return StatuslineCommand.execute(subcommand_args, ctx).await; | ||
| } | ||
| "terminal-setup" | "terminal_setup" | "terminal" => { | ||
| if !subcommand_args.is_empty() { | ||
| return CommandResult::Error("Usage: /config terminal-setup".to_string()); | ||
| } | ||
| return TerminalSetupCommand.execute("", ctx).await; | ||
| } | ||
| _ => {} | ||
| } |
Comment on lines
160
to
165
| "upgrade", | ||
| "Check for updates and upgrade to the latest version", | ||
| ), | ||
| ("usage", "Detailed per-call token usage breakdown"), | ||
| ("version", "Display the current Coven Code version"), | ||
| ("vim", "Toggle vim keybindings"), | ||
| ("voice", "Toggle voice input mode"), | ||
| ( |
Comment on lines
+375
to
+377
| ### /config vim | ||
|
|
||
| Toggle vim keybinding mode on or off. In vim mode the input field behaves like a vim editor (normal/insert/visual modes). Persisted to config. |
Comment on lines
+389
to
+390
| Configure voice input/output. Requires a supported audio backend. Subcommands control microphone selection, TTS voice, and push-to-talk behavior. | ||
|
|
Comment on lines
+866
to
+869
| ### /config color | ||
|
|
||
| Set the prompt bar color for the current session. Accepts standard color names or hex values. The color resets when the session ends unless saved via `/config`. | ||
|
|
This was referenced Jun 11, 2026
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
/configsubcommands/costand/contextinto/usage costand/usage context, while keeping/statsdiscoverable for the TUI stats dialog/color,/vim,/voice,/statusline,/terminal-setup,/cost,/context,/undo, and/revertcommands as one-release compatibility aliases/copy,/chrome,/advisor, and/idevisible because they remain distinct action/integration/model commandsVerification
Fixes #59