[BUG] JetBrains plugin writes WSL-style path (/mnt/<drive>/...) to ~/.claude/ide/*.lock on native Windows, breaking /ide
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?
On native Windows Rider (no WSL, no remote/WSL toolchain), the Claude Code JetBrains plugin writes the IDE lock file ~/.claude/ide/<port>.lock with workspaceFolders in POSIX/WSL form (/mnt/d/...), even though the same lock file has
"runningInWindows": true.
Claude Code compares that value against the native Windows cwd (D:\...) as a literal string. They never match, so /ide refuses to connect ("workspace/project directories do not match the current cwd").
Actual lock file (authToken redacted):
Actual lock file (a ``json
{"workspaceFolders":["/mnt/d/Work/..."],"pid":41284,"ideName":"JetBrains Rider","transport":"ws","runningInWindows":true,"authToken":"<redacted>"}
The contradiction is clear: runningInWindows is true, but the path is a /mnt/<drive>/... POSIX path.
What Should Happen?
When runningInWindows is true, workspaceFolders should be written as a native Windows path (D:\... or D:/...) so it matches Claude Code's Windows cwd and /ide connects successfully.
Error Messages/Logs
/ide fails to connect: the IDE's workspace/project directories do not match the current cwd
(cwd = D:\Work... vs lock workspaceFolders = /mnt/d/Work/...)
Steps to Reproduce
- On native Windows, open a solution in Rider by a native path (e.g. D:\...), NOT through \\wsl$ or /mnt.
- Have the Claude Code plugin 0.1.14-beta installed and enabled.
- Launch claude (e.g. from the IDE terminal). The plugin creates ~/.claude/ide/<port>.lock.
- Inspect the lock file: workspaceFolders is /mnt/d/... while runningInWindows is true.
- Run /ide in Claude Code -> it does not connect, because cwd D:\... does not match /mnt/d/....
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.210
Platform
Other
Operating System
Windows
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
Environment:
- OS: Windows 11 Prr, 10.0.26100 (native, no WSL)
- Claude Code CLI: 2.1.210
- JetBrains plugin: claude-code-jetbrains-plugin 0.1.14-beta (latest available)
- IDE: JetBrains Rider 2026.1, build RD-261.26222.60 (native Windows build, productionCode = RD)