Skip to content

Conversation

@ethanndickson
Copy link
Member

Previously, commands like /truncate (without args) would show "Unknown command: /truncate" which was confusing since the command exists but needs an argument.

Changes

Added two new ParsedCommand types:

  • command-missing-args: for required arguments not provided
  • command-invalid-args: for arguments that don't pass validation

Updated commands to use these with usage hints:

  • /truncate: shows /truncate <0-100> (percentage to remove)
  • /idle: shows /idle <hours> or /idle off
  • /mcp add|edit|remove: shows appropriate usage for each subcommand

Before/After

Command Before After
/truncate "Unknown command: /truncate" "Missing Arguments" + usage hint
/truncate 150 "Unknown command: /truncate 150" "Invalid Argument: '150' is not valid" + usage
/mcp add "Unknown command: /mcp add" "Missing Arguments" + usage hint

Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high • Cost: $2.10

…ments

Previously, commands like /truncate (without args) would show 'Unknown command: /truncate'
which was confusing since the command exists but needs an argument.

Added two new ParsedCommand types:
- command-missing-args: for required arguments not provided
- command-invalid-args: for arguments that don't pass validation

Updated commands to use these with usage hints:
- /truncate: shows '/truncate <0-100> (percentage to remove)'
- /idle: shows '/idle <hours> or /idle off'
- /mcp add|edit|remove: shows appropriate usage for each subcommand
@github-actions github-actions bot added the enhancement New feature or functionality label Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant