AskUserQuestion choices unselectable after window regains focus

Resolved 💬 2 comments Opened Jun 22, 2026 by MSchiavi Closed Jun 26, 2026

Summary

When an interactive multiple-choice prompt (the AskUserQuestion selection UI) is rendered while the Claude Code window is not focused (backgrounded / another app in front), returning focus to the window leaves the choice options unselectable — neither mouse click nor keyboard navigation registers a selection. The prompt appears but cannot be answered, blocking the turn.

Steps to reproduce

  1. In an interactive session, trigger an assistant turn that ends in an AskUserQuestion multiple-choice prompt.
  2. Switch focus away from the Claude Code window before the prompt renders (or while it is rendering).
  3. When focus returns to the window, the choice list is displayed but selecting an option does nothing — the input does not register on the choices.

Expected

The choice options should be selectable (keyboard + mouse) whenever the prompt is visible, regardless of whether the window had focus when the prompt first rendered.

Actual

The options are inert after the window regains focus — the only recovery is to abort/re-trigger the prompt while already focused.

Environment

  • Claude Code: 2.1.186
  • OS: macOS (darwin 25.2.0)
  • Model: Opus 4.8 (1M context)

Impact / workaround

Blocks any flow that gates on a multiple-choice answer until the prompt is re-issued with the window already focused. Current workaround: re-present the options as plain text and answer by typing, bypassing the selection widget.

View original on GitHub ↗

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