[Feature Request] AskUserQuestion button clicks register unintentionally during window switching

Open 💬 0 comments Opened Jul 2, 2026 by losboss

Description
AskUserQuestion prompts render clickable option buttons in the UI. When switching windows/apps while a prompt is showing (e.g. alt-tabbing, clicking into another app), the click sometimes lands on one of the option buttons and registers as an answer — either accepting something I didn't read, or selecting the wrong option (e.g. "No" when I meant to look elsewhere first). There's no way to require confirmation or restrict answering to explicit keyboard input.

Suggested fix: one of:

  • A brief focus-debounce so a click landing on the prompt within ~200-300ms of the window regaining focus doesn't register as a selection (preferred)
  • A setting to require keyboard (Tab+Enter / number key) input only, disabling mouse-click selection
  • A lightweight "are you sure?" on the first click before it commits

Impact: Low-severity but real: it means answers to Claude's questions can't always be trusted as intentional, especially in multi-window workflows.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.198
  • Feedback ID: bc8609cc-f3aa-4936-9884-b496c7d7bd2b

View original on GitHub ↗