name: 'Feature Request'
about: 'Suggest an idea for this project'
title: 'feat(cli): Make /context and /stats commands use modal dialogs'
labels:
- 'type/feature-request'
- 'status/needs-triage'
What would you like to be added?
Change the /context and /stats commands to display their output in modal dialogs (similar to /permissions, /settings, /mcp), instead of adding items to the chat history.
Why is this needed?
-
Context pollution: Diagnostic output consumes conversation tokens — counterproductive when using /context to check context usage.
-
Hard to trigger /context: With /context detail as a subcommand, typing /context triggers autocomplete dropdown, making it difficult for users to simply press Enter and run the main command.
-
Consistent UX: Other management commands (/permissions, /settings, /mcp, /auth, /trust) already use modal dialogs.
Current Behavior
/context / /stats → Output added to chat history, consumes context tokens
- Typing
/context shows autocomplete (detail), hard to trigger main command
Proposed Behavior
/context / /stats → Open modal dialogs
- Dialog content NOT stored in context
- No subcommand autocomplete interference — clean interaction
Additional context
Discussed in PR #3042. Commands like /permissions, /settings, /mcp demonstrate the dialog pattern:
action: (): OpenDialogActionReturn => ({
type: 'dialog',
dialog: 'permissions',
}),
name: 'Feature Request'
about: 'Suggest an idea for this project'
title: 'feat(cli): Make /context and /stats commands use modal dialogs'
labels:
What would you like to be added?
Change the
/contextand/statscommands to display their output in modal dialogs (similar to/permissions,/settings,/mcp), instead of adding items to the chat history.Why is this needed?
Context pollution: Diagnostic output consumes conversation tokens — counterproductive when using
/contextto check context usage.Hard to trigger
/context: With/context detailas a subcommand, typing/contexttriggers autocomplete dropdown, making it difficult for users to simply press Enter and run the main command.Consistent UX: Other management commands (
/permissions,/settings,/mcp,/auth,/trust) already use modal dialogs.Current Behavior
/context//stats→ Output added to chat history, consumes context tokens/contextshows autocomplete (detail), hard to trigger main commandProposed Behavior
/context//stats→ Open modal dialogsAdditional context
Discussed in PR #3042. Commands like
/permissions,/settings,/mcpdemonstrate the dialog pattern: