[BUG] AskUserQuestion picker freezes (only Esc recovers) after switching apps/tabs and returning focus (macOS, Warp, v2.1.202)

Open 💬 1 comment Opened Jul 7, 2026 by alaahedhly

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The interactive AskUserQuestion picker (the tabbed multi-question prompt with option lists and a "Chat about this" footer) intermittently freezes: all controls stop responding — arrow keys, Enter, Tab between question tabs, and typing all do nothing. Pressing Esc to cancel the question is the only way to recover and interact with Claude again.

The trigger appears to be focus change: it mostly happens when I switch to another app or another terminal tab and then come back to the Claude Code terminal. On regaining focus, the picker's input handling is dead until I hit Esc.

This looks related to but distinct from the closed issues #22957 (Windows, session started with a prompt argument) and #10203 (freeze on free-text overflow). Mine is macOS, mid-session, and tied to focus loss/regain rather than either of those causes.

What Should Happen?

The picker should remain interactive after the terminal regains focus. Switching away and back to the terminal should not wedge the input handler.

Steps to Reproduce

  1. Trigger an AskUserQuestion prompt (e.g. a multi-question tabbed picker with option lists).
  2. While the picker is displayed, switch to another application or another terminal tab.
  3. Switch back to the Claude Code terminal.
  4. Try to navigate options / submit — input is frozen. Only Esc recovers.

(Intermittent — does not reproduce on every focus change, but focus loss/regain is the consistent context when it happens.)

Claude Model

Opus 4.8 (1M context)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.202

Platform

Anthropic API

Operating System

macOS 26.5.2 (Apple Silicon)

Terminal/Shell

Warp (v0.2026.07.01.09.21.stable_01), zsh, TERM=xterm-256color

Additional Information

Suspected cause: a terminal focus event (focus-in/focus-out reporting, e.g. \e[I/\e[O) or a resize/redraw on focus regain is not being handled by the AskUserQuestion input loop, leaving the key handler wedged until the prompt is cancelled. Reproduced in Warp terminal on macOS; may or may not be Warp-specific.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗