Skip to content

fix(tui): consolidate slash command surface#68

Merged
BunsDev merged 1 commit into
mainfrom
codex/issue-59-command-consolidation
Jun 11, 2026
Merged

fix(tui): consolidate slash command surface#68
BunsDev merged 1 commit into
mainfrom
codex/issue-59-command-consolidation

Conversation

@BunsDev

@BunsDev BunsDev commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

  • fold the visible command surface for config-related commands into /config subcommands
  • fold /cost and /context into /usage cost and /usage context, while keeping /stats discoverable for the TUI stats dialog
  • hide legacy /color, /vim, /voice, /statusline, /terminal-setup, /cost, /context, /undo, and /revert commands as one-release compatibility aliases
  • keep /copy, /chrome, /advisor, and /ide visible because they remain distinct action/integration/model commands
  • update command docs and docs-site palette/demo data

Verification

  • cargo fmt -p claurst-commands -p claurst-tui --check
  • cargo test -p claurst-commands
  • cargo test -p claurst-tui
  • cargo check -p claurst
  • git diff --check

Fixes #59

Copilot AI review requested due to automatic review settings June 11, 2026 03:56
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jun 11, 2026 3:56am

@BunsDev BunsDev merged commit 5c9dfbe into main Jun 11, 2026
2 checks passed
@BunsDev BunsDev deleted the codex/issue-59-command-consolidation branch June 11, 2026 03:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 /stats to the TUI-visible command list and help categorization for the interactive stats dialog.
  • Update docs-site palette/demo command lists and docs/commands.md to 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 thread docs/commands.md
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 thread docs/commands.md
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 thread docs/commands.md
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`.

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.

Phase 2 command consolidation: 72 → ~40 slash commands

2 participants