[BUG] IntelliJ plugin: IDE selection not persisted across sessions
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?
Description
When using Claude Code with the IntelliJ IDEA plugin, the IDE connection selection resets to "None" every time Claude Code is restarted. Users must manually run /ide and select IntelliJ IDEA at the start of each session to enable context sharing features.
Environment
- OS: Windows 11 (Native, not WSL)
- IDE: IntelliJ IDEA 2025.3.1 (Build #IU-253.29346.138)
- Claude Code Plugin: 0.1.14-beta
- Claude Code CLI: v2.0.76
Steps to Reproduce
- Open IntelliJ IDEA with a project (e.g.,
D:\Project\Python\langgraph-docs) - Open Claude Code panel in IntelliJ (or run
claudein terminal) - Run
/idecommand - Select "IntelliJ IDEA" from the list
- Verify context sharing works correctly
- Exit Claude Code (
/exit) - Restart IntelliJ IDEA
- Run
claudeor open Claude Code panel again - Run
/idecommand
Expected Behavior
The IDE selection should be remembered and automatically connect to IntelliJ IDEA on subsequent sessions.
Actual Behavior
The /ide command shows "None" as the selected option every time, requiring manual selection of IntelliJ IDEA at the start of each session.
Additional Context
- The lock file at
C:\Users\<username>\.claude\ide\*.lockis created correctly with Windows path format (D:/Project/Python/...) - Once IntelliJ is manually selected via
/ide, context sharing works as expected - Plugin settings in IntelliJ (Tools → Claude Code [Beta]) have been verified:
- "Enable automatic Windows drive mapping" is disabled
- "Enable automatic WSL localhost mapping" is disabled
Feature Request
Please consider adding one of the following:
- Persist the last IDE selection across sessions
- Add a "Default IDE" option in
/configsettings - Auto-detect and connect to running IDE instances automatically
Workaround
Currently, users must manually run /ide and select IntelliJ IDEA after each Claude Code restart.
What Should Happen?
When using Claude Code with the IntelliJ IDEA plugin, the IDE connection selection resets to "None" every time Claude Code is restarted. Users must manually run /ide and select IntelliJ IDEA at the start of each session to enable context sharing features.
Error Messages/Logs
There is no any error message.
Steps to Reproduce
Steps to Reproduce
- Open IntelliJ IDEA with a project (e.g.,
D:\Project\Python\langgraph-docs) - Open Claude Code panel in IntelliJ (or run
claudein terminal) - Run
/idecommand - Select "IntelliJ IDEA" from the list
- Verify context sharing works correctly
- Exit Claude Code (
/exit) - Restart IntelliJ IDEA
- Run
claudeor open Claude Code panel again - Run
/idecommand
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.76 (Claude Code)
Platform
Other
Operating System
Windows
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗