[Bug] Toggling transcript view cancels pending tool-use permission confirmation
Bug Description
Bug: toggling the transcript view (Ctrl+O / app:toggleTranscript) while a tool-use permission confirmation is pending cancels/aborts that pending confirmation.
Repro:
- Trigger a tool call that requires the allow/deny permission prompt (prompt is displayed, awaiting input).
- Press Ctrl+O to switch to the transcript / thinking-log view.
- Press Ctrl+O again to switch back.
=> The pending permission prompt is gone and the request is interrupted (the tool call is treated as rejected/aborted, "The user doesn't want to proceed with this tool use"), even though no allow/deny choice was made.
Expected: switching the transcript view should be view-only and must not interrupt or dismiss an in-flight permission confirmation — on returning, the prompt should still be waiting for a choice.
Environment: Claude Code ~v2.1.160, terminal on macOS (Darwin 24.6), zsh. Reproducible every time.
Environment Info
- Platform: darwin
- Terminal: kitty
- Version: 2.1.161
- Feedback ID: 4a7d3e85-c614-4738-ba90-a22a1aa414f2
Errors
[]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗