[BUG] Number hotkeys in AskUserQuestion interfere with numerical input
Environment
- Platform: Claude Code CLI
- Claude CLI version: Current (2026-01)
- Operating System: Windows
- Terminal: Windows Terminal
Bug Description
The AskUserQuestion tool's number hotkey selection mechanism prevents users from typing numerical content as part of their response. When a user begins typing a digit, the system immediately interprets it as an option selection rather than allowing it to be part of a free-form input.
Steps to Reproduce
- Claude presents a prompt with multiple options (1, 2, 3, 4, 5)
- User intends to select an option AND provide numerical context (e.g., "option 3, version 1.5" or "31 items")
- User types the first digit
- System immediately triggers option selection before user can complete their input
Expected Behavior
Users should be able to input numerical content without the system prematurely interpreting it as a selection trigger. Standard CLI convention requires Enter to confirm selections, allowing users to compose complete input before submission.
Actual Behavior
The first digit typed triggers immediate selection, preventing users from:
- Combining option selection with numerical parameters
- Typing numbers as part of "Other" responses
- Providing version numbers, IDs, measurements, or counts inline
Impact
- Usability: Disrupts natural workflow when numerical data is involved
- Workaround overhead: Forces users to either select "Other" or provide context in separate follow-up messages
- Accessibility: Violates expected CLI behavior patterns (Enter to confirm)
Suggested Fix
- Require
Enterkey to confirm number-based selections (standard CLI behavior) - Add configuration option to disable immediate hotkey triggering
- Buffer input until submission to allow complete user intent expression
Additional Context
This affects any workflow where users need to combine option selection with numerical context, which is common in development tasks (e.g., selecting a test case by number, specifying version numbers, providing measurement data).
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗