[BUG] JetBrains plugin (0.1.14-beta): /ide selection succeeds silently but never establishes connection in WSL2 (PhpStorm running inside WSL2)
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:
- Claude Code CLI: v2.1.210 (native install)
- JetBrains plugin: com.anthropic.code.plugin 0.1.14-beta
- IDE: PhpStorm 2026.1.4 (Build #PS-261.26222.71), running natively inside WSL2 (not Windows-native with
\\wsl$mount) — confirmed viarunningInWindows: falsein lock file - WSL: Ubuntu 24.04.4 LTS, WSL2
- Host OS: Windows 11
.wslconfig:networkingMode=mirroredalready set (ruled out NAT/firewall cause)
What's wrong?
After restarting both WSL and PhpStorm completely, the plugin's integrated terminal is unable to auto-launch claude. Starting claude manually and running /ide shows the IDE as found but with a path-mismatch warning, even though the workspace path matches exactly:
Found 1 other running IDE(s). However, their
workspace/project directories do not match the
current cwd.
● PhpStorm: <project-path>
Verified exact match between pwd, realpath, and the lock file's workspaceFolders (byte-for-byte, checked with cat -A, no trailing whitespace/symlink differences):
{"workspaceFolders":["/home/<user>/<project-path>"],"pid":780,"ideName":"PhpStorm","transport":"ws","runningInWindows":false,...}
Selecting the entry (via mouse click or Enter) causes the PhpStorm window to flash briefly, then returns to the same selection screen without connecting. Pressing Esc shows "IDE selection cancelled." Repeating /ide shows the identical state every time.
Debug logs show nothing relevant:
claude --debugproduces a debug log file, but it contains no lines related to the IDE connection attempt at the time/ideis used (checked around the exact timestamp).claude --debug mcpshows MCP server activity (e.g. claude.ai Google Drive) but no log entries whatsoever for the internalideMCP server, even immediately after attempting the/ideselection.
This suggests the selection UI is not actually triggering a connection attempt server-side, or the resulting attempt is not logged.
Additional notes:
- Previously (before an update — exact version not tracked), the plugin auto-connected without needing manual
/ideselection at all. - Only one PhpStorm project window / one lock file exists, ruling out the duplicate-entry issue from #54048.
What Should Happen?
Expected behavior:/ide should connect automatically (or at minimum, on manual selection) when the workspace path matches exactly, and any connection attempt/failure should appear in debug logs.
Error Messages/Logs
Steps to Reproduce
- Ensure PhpStorm is running natively inside WSL2 (not via a Windows-native process on a
\\wsl$mount) and.wslconfighasnetworkingMode=mirroredset. - Open a WSL2 terminal,
cdinto the project directory (e.g./home/<user>/<project-path>). - Launch PhpStorm from that directory and open the project.
- Fully quit both WSL2 (
wsl --shutdown) and PhpStorm, then restart WSL2 and PhpStorm again. - Open the integrated terminal inside the Claude Code plugin's tool window in PhpStorm.
→ Expected: claude auto-launches and auto-connects to the IDE.
→ Actual: the plugin does not auto-launch claude at all.
- In the same WSL2 terminal (or the plugin's terminal), manually start
claude. - Run
/ide.
→ The picker shows the running PhpStorm instance, but with the warning: "However, their workspace/project directories do not match the current cwd."
- Confirm that
pwdin the terminal exactly matchesworkspaceFoldersin~/.claude/ide/*.lock(verified byte-for-byte withcat -A, and withrealpathto rule out symlinks). - Select the PhpStorm entry in the
/idepicker (via mouse click or Enter).
→ The PhpStorm window briefly flashes/refocuses, then the picker returns to the same unconnected state. No connection is established.
- Run
/ideagain → identical state is shown every time. - Run
claude --debugandclaude --debug mcpwhile repeating steps 6–9.
→ No log entries related to the ide MCP server or the connection attempt appear in the debug log, even at the exact timestamp of the selection attempt.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.210
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_