Interacting with the 'btw' section auto-rejects a pending AskUserQuestion (main thread interrupted before leaving btw scope)
Environment
- Claude Code CLI v2.1.199, macOS (darwin 25.5.0), terminal session
What happened
Any interaction with the btw section interrupts the main thread — this is not limited to pending interactive prompts. Two observed shapes:
- Esc inside btw scope stops the main-thread task. While the assistant is mid-task on the main thread, entering the btw section and pressing Esc (e.g. to dismiss/leave the btw composer) cancels the main thread's in-flight work instead of just leaving the btw scope. Esc's scope appears to leak: it should close/back out of btw, but it acts on the main thread.
- Pending AskUserQuestion auto-rejected. With an interactive question pending (AskUserQuestion, 3 questions awaiting selection), opening/typing in the btw section immediately cancelled the pending tool call with "Request interrupted by user for tool use" — the user never declined; they were composing in btw and expected the question to remain pending.
The user reports this happens every time they are in the btw scope, not only when a question is pending.
Expected
- btw-scope interactions (typing, Esc, closing) stay inside the btw scope.
- Esc in btw closes/exits btw only — never interrupts the main thread's running task.
- Pending interactive prompts survive btw activity and are re-presented after leaving btw.
Actual
Main-thread work is stopped / pending tool calls are auto-rejected whenever the user interacts with btw, before they leave the btw scope.
Impact
- The assistant receives a false "user declined" / interruption signal and may wrongly abandon or restate work; the user must re-request the interrupted action every time.
- Long-running main-thread tasks are killed by what the user intends as a side-channel interaction.
Repro
A) 1. Start any long-running assistant task on the main thread. 2. Open btw, press Esc. 3. Main-thread task stops.
B) 1. Have the assistant call AskUserQuestion so the picker is pending. 2. Enter btw and start typing. 3. The pending tool call is rejected immediately.
(Reported on behalf of the user, who asked for this to be filed and then broadened to cover the Esc/main-thread case.)