Ctrl+Alt+K (add file to context) stops working after /clear + opening a new terminal in IntelliJ Description:
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?
Environment:
Opening a new terminal in IntelliJ, the Ctrl+Alt+K shortcut no longer adds the current file to the chat context. The shortcut appears unresponsive — no file reference is inserted into the chat input, and no error is shown.
What Should Happen?
Ctrl+Alt+K should add the currently active/open file to the Claude Code chat context regardless. The shortcut's binding to the active Claude Code chat session should persist across these actions.
Error Messages/Logs
Steps to Reproduce
Open a file in IntelliJ and start a Claude Code chat session.
Open a new terminal tab/window inside IntelliJ.
Press Ctrl+Alt+K while a file is open in the editor.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.258
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Reproducible consistently by following the steps above (or intermittent — clarify if it doesn't happen every time).
Workaround (if any): e.g., restarting IntelliJ, restarting the Claude Code plugin session, or reopening the chat panel fixes it temporarily. Mention if this is the case.
IntelliJ IDEA Build #IC-251.26927.53, built on June 23, 2025
Claude Code plugin version: fill in
OS: Windows 11