[Windows] Buffered keypress auto-approves plan/permission prompts after window switch or login
Open 💬 4 comments Opened Jun 15, 2026 by jimmyjoe009
Environment: Windows 11, Claude Code VSCode extension, claude-sonnet-4-6
Steps to reproduce:
- Have a plan-mode approval prompt or permission dialog active in Claude Code
- Switch to another Windows application (or lock/unlock the screen)
- Return to Claude Code — a buffered Enter keypress auto-approves the prompt without user review
Expected: Approval prompts should require deliberate user input after focus returns.
Actual: Claude Code treats the buffered keypress as an approval and immediately begins executing the plan/action.
Impact: Work executes without explicit user consent, which is especially problematic for destructive or hard-to-reverse operations (file edits, git commits, etc.).
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗