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
@ethanndickson
Copy link
Member Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ethanndickson ethanndickson added this pull request to the merge queue Jan 20, 2026
Merged via the queue into main with commit db9b7ac Jan 20, 2026
21 checks passed
@ethanndickson ethanndickson deleted the command-parsing-a7wc branch January 20, 2026 05:06
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