[Bug] WSL path in workspace folder causes broken relative path resolution on Windows
Bug Description
Environment:
- OS: Windows 11
- claude.exe: C:\Users\<user>\.local\bin\claude.exe (native Windows install)
- Shell: Git Bash
- IDE: IntelliJ IDEA + Claude Code plugin
- Project root: C:\projects\aaa\bbb\myproject
Problem:
The IDE lock file reports runningInWindows: true but
workspaceFolders uses a WSL path (/mnt/c/...).
~/.claude/ide/<port>.lock:
{"workspaceFolders":["/mnt/c/projects/aaa/bbb/myproject"],
"pid":1234,"ideName":"IntelliJ IDEA","transport":"ws",
"runningInWindows":true}
Because of this mismatch, "Send to Claude Code" produces a broken
relative path:
@..\..\..\..\mnt\c\projects\aaa\bbb\myproject\Foo.java
The CLI cwd is C:\projects\aaa\bbb\myproject, so the plugin walks up
4 levels and appends mnt\c\..., pointing at a non-existent
C:\mnt\c\ directory.
Expected: workspaceFolders should use the Windows path (or the plugin
should skip WSL translation when runningInWindows is true).
Note: deleting the lock file does not help — the plugin rewrites it
with the same WSL path on every IDE restart.
- Feedback ID: deafd852-0eff-4f5f-a7bc-e84e070e8137
Errors
[]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗