[Bug] Terminal focus-in event consumed as prompt denial in permission dialog
Open 💬 2 comments Opened Jun 29, 2026 by dwalend
Bug Description
On the focus bug — yes, that's a Claude Code (Anthropic) bug, not your project or config. What's happening: when the terminal regains focus, it emits an event
(a focus-in escape sequence or the mouse-click itself) that the TUI's permission-prompt input handler consumes as an answer — and the default it lands on is
"deny." Clicking to refocus should never count as answering a prompt.
Environment Info
- Platform: darwin
- Terminal: intellij
- Version: 2.1.195
- Feedback ID: af2c6e41-7804-454f-853d-d88c47570698
Errors
[]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗