[BUG] Plan mode approval dialog intercepts keystrokes when user is typing in chat input

Resolved 💬 3 comments Opened Mar 23, 2026 by galenking Closed Mar 27, 2026

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?

When the plan mode approval dialog appears, if I'm actively typing in the chat input, my keystrokes get captured by the dialog and accidentally approve or reject the plan.

A regular keystroke mid-sentence can dismiss the dialog without any deliberate intent to do so.

What Should Happen?

The approval dialog should require a deliberate, explicit action to confirm — a mouse click or a keyboard shortcut that wouldn't naturally occur while typing a sentence.

Keyboard focus should not silently shift to the dialog while the user is mid-keystroke in the chat input.

Error Messages/Logs

Steps to Reproduce

  1. Start a long planning session with multiple back-and-forth refinements
  2. While the agent is finalizing the plan, begin typing a follow-up message in the chat input
  3. The plan approval dialog appears mid-keystroke
  4. A normal keystroke accidentally approves or rejects the plan

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.80 (Claude Code)

Platform

Other

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

I’m in the VS Code Extension

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗