[BUG] Rejecting diff in Intellij IDEA causes loss of cursor focus

Resolved 💬 3 comments Opened Jun 12, 2025 by cwilso03 Closed Jan 6, 2026

Environment

  • Platform (select one):
  • [X] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.21
  • Operating System: Windows 11 with Ubuntu in WSL
  • Terminal: Intellij built-in terminal tool, launching zsh

Bug Description

Now that the IDE integration is working with Intellij IDEA and WSL, I am able to see the side-by-side diff in the IDE. However, if I click "Reject" or hit Esc for the suggested code change, Claude Code loses its keyboard focus. What's really weird is I can't simply click back in the Claude Code window to restore focus. I have to actually go click in one of my editor tabs, then click the Claude Code terminal, to get keyboard focus back.

Steps to Reproduce

  1. Prompt Claude Code so that it offers a suggested file edit in the IDE's side-by-side diff.
  2. Click "Reject", or hit the Esc key.
  3. Try to type in the Claude Code terminal. No keystrokes appear.
  4. Click the mouse pointer in the Claude Code terminal to attempt to give focus, and repeat Step 3, getting the same result.
  5. Click the mouse pointer into any open editor tab, the click back into the Claude Code terminal.
  6. Typing into the Claude Code terminal works.

Expected Behavior

Click "Reject" or hit the Esc. key as in Step 2 above, and keyboard focus returns to the Claude Code terminal.

Actual Behavior

See Steps 3-6 above.

Additional Context

Same behavior exists whether in normal/default editor mode, or VIM mode.

View original on GitHub ↗

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