Inconsistent interaction behavior across different prompt types
Issue
The interaction model for selecting numbered options varies inconsistently across different prompt types, making the UI feel unpredictable:
- Permission prompts (tool approvals): Pressing a number key immediately executes the selection
- Single-select questions (AskUserQuestion): Pressing a number highlights the option, then requires Enter to confirm
- Multi-select questions: Requires arrow keys to navigate, Space to toggle, Enter to confirm
Problem
As a user, when I see a numbered list of choices, I don't know which interaction model I'm in. Sometimes I press a number and it fires immediately, other times I press a number and nothing happens until I hit Enter, and other times I have to arrow down and then Enter. The behavior differences aren't visually communicated.
Suggestion
Standardize the interaction pattern, or at minimum provide clear visual cues indicating the expected input mode. For example:
- If auto-submit on keypress: show
Press 1-3 to select - If selection + confirm: show
Select with 1-3, then press Enter - If multi-select: show
Space to toggle, Enter to confirm
Consistent behavior (e.g., always requiring Enter to confirm) would be the simplest fix and would prevent accidental immediate execution on permission prompts.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗