[BUG] /ide command fails to match IDE on Windows due to WSL path format mismatch
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 running Claude Code from a Windows terminal (Git Bash), the /ide command detects running IDE
instances but fails to match them to the current working directory because the IDE paths use
WSL-style paths (/mnt/c/...) while the CWD uses Windows-style paths (C:\...).
Expected behavior:
Claude Code matches the IDE instance since it's the same directory.
Suggested fix:
Normalize paths before comparison so that /mnt/c/... and C:\... (and /c/...) are treated as
equivalent on Windows.
Environment:
- OS: Windows 11 Pro
- Shell: Git Bash
- IDE: IntelliJ IDEA with Claude Code plugin
What Should Happen?
Actual behavior:
No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and
is running.
Found 3 other running IDE(s). However, their workspace/project directories do not match the current
cwd.
• IntelliJ IDEA: /mnt/c/Projects/aha/ahaplay_ws
• IntelliJ IDEA: /mnt/c/Projects/aha/ahaplay_api
• IntelliJ IDEA: /mnt/c/Projects/laCorsa/la-corsa-be
The IDE reports paths in WSL format (/mnt/c/Projects/...) while Claude Code's CWD is in Windows
format (C:\Projects\...). These refer to the same directory but the path comparison fails.
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
- Open a project in IntelliJ IDEA on Windows (e.g. C:\Projects\myproject)
- Run Claude Code from Git Bash in the same directory
- Run /ide
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
v2.1.49
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗