[BUG] Number hotkeys in AskUserQuestion interfere with numerical input

Resolved 💬 3 comments Opened Jan 24, 2026 by guanli9410-dot Closed Jan 29, 2026

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

  1. Claude presents a prompt with multiple options (1, 2, 3, 4, 5)
  2. User intends to select an option AND provide numerical context (e.g., "option 3, version 1.5" or "31 items")
  3. User types the first digit
  4. 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

  1. Require Enter key to confirm number-based selections (standard CLI behavior)
  2. Add configuration option to disable immediate hotkey triggering
  3. 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).

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗