[BUG] "Send to Claude Code" shortcut does not maintain focus on Claude Code terminal (IntelliJ 2025.3)
Resolved 💬 4 comments Opened Feb 5, 2026 by psh4607 Closed Mar 5, 2026
Bug Description
The "Send to Claude Code" keyboard shortcut (Option+Cmd+K / claude-vscode.insertAtMention) in IntelliJ IDEA no longer maintains focus on the Claude Code terminal after execution.
Previously (IntelliJ 2025.1.2): The shortcut would:
- Focus the Claude Code terminal
- Insert the
@-mention reference of the selected code/file - Maintain focus on the Claude Code terminal input — ready to type immediately
Currently (IntelliJ 2025.3): The shortcut:
- Focuses the Claude Code terminal briefly
- Inserts the
@-mention reference correctly - Focus returns to the editor — user must manually click or use another shortcut to refocus
This breaks the workflow because users expect to immediately type their prompt after sending a reference.
Steps to Reproduce
- Open a project in IntelliJ IDEA 2025.3
- Start Claude Code in the terminal
- Confirm IDE connection via
/ide(shows "Connected to IntelliJ IDEA ✔") - Open any file in the editor and optionally select some code
- Press
Option+Cmd+K("Send to Claude Code") - Observe that the reference is added but focus returns to the editor
Expected Behavior
After pressing Option+Cmd+K, focus should remain on the Claude Code terminal input so the user can immediately type their prompt.
Environment Info
- Platform: macOS (Darwin 25.2.0, Apple Silicon)
- IDE: IntelliJ IDEA 2025.3
- Claude Code CLI: 2.1.31
- Claude Code JetBrains Plugin: 0.1.14-beta
- IDE Connection: Confirmed working (
/ideshows connected)
Additional Context
- This worked correctly in IntelliJ IDEA 2025.1.2 with the same plugin.
- The IDE connection is verified and functional — the issue is specifically about focus management after the shortcut execution.
- Possibly related to focus behavior changes made after #9765 (diff tab focus stealing fix), which may have inadvertently affected the "Send to Claude Code" focus retention.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗