Skip to content

[Bug] Terminal focus-in event consumed as prompt denial in permission dialog #72188

Description

@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

[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions