[BUG] IntelliJ plugin: IDE selection not persisted across sessions

Resolved 💬 3 comments Opened Dec 28, 2025 by cjaesung Closed Dec 31, 2025

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

  1. Open IntelliJ IDEA with a project (e.g., D:\Project\Python\langgraph-docs)
  2. Open Claude Code panel in IntelliJ (or run claude in terminal)
  3. Run /ide command
  4. Select "IntelliJ IDEA" from the list
  5. Verify context sharing works correctly
  6. Exit Claude Code (/exit)
  7. Restart IntelliJ IDEA
  8. Run claude or open Claude Code panel again
  9. Run /ide command

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\*.lock is 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:

  1. Persist the last IDE selection across sessions
  2. Add a "Default IDE" option in /config settings
  3. 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

  1. Open IntelliJ IDEA with a project (e.g., D:\Project\Python\langgraph-docs)
  2. Open Claude Code panel in IntelliJ (or run claude in terminal)
  3. Run /ide command
  4. Select "IntelliJ IDEA" from the list
  5. Verify context sharing works correctly
  6. Exit Claude Code (/exit)
  7. Restart IntelliJ IDEA
  8. Run claude or open Claude Code panel again
  9. Run /ide command

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_

View original on GitHub ↗

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