[BUG] Claude Code IDE Connection Issue
Resolved 💬 28 comments Opened May 29, 2025 by AnrokX Closed May 29, 2025
💡 Likely answer: A maintainer (hackyon-anthropic, collaborator)
responded on this thread — see the highlighted reply below.
Claude Code IDE Connection Issue
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.4
- Operating System: WSL2 Ubuntu (Linux Legion 5.15.167.4-microsoft-standard-WSL2)
- Terminal: zsh in WSL2
Bug Description
Claude Code CLI fails to detect IDE connections despite extensions being properly installed and accessible through Command Palette. The CLI consistently shows "No available IDEs detected" even when IDEs are running with Claude Code extensions installed and functional.
Steps to Reproduce
- Install Claude Code extension in IDE (tested with Cursor and Windsurf)
- Open project in WSL2 environment
- Verify extension is installed and Claude Code commands appear in Command Palette (Ctrl+Shift+P)
- Run
claudecommand in WSL terminal from project directory - Observe "No available IDEs detected" message in Claude interface
- Try running Claude Code commands from IDE Command Palette
- Check Claude terminal - no connection established
Expected Behavior
- Claude Code CLI should detect running IDEs with Claude Code extension installed
- IDE should appear in "Select IDE" menu in Claude terminal interface
- Connection should be established allowing integrated development features
Actual Behavior
- Claude Code CLI shows "No available IDEs detected" despite extensions being properly installed
- Claude Code commands are visible and accessible in IDE Command Palette
- No connection is ever established between CLI and IDE extension
- Lock files in
~/.claude/ide/show connection attempts but CLI doesn't recognize them
Additional Context
Lock File Evidence (before clearing):
{"pid":5467,"workspaceFolders":["/home/anrokx/Codebase"],"ideName":"Cursor","transport":"ws"}
{"pid":3078,"workspaceFolders":["/home/anrokx/Codebase"],"ideName":"Windsurf","transport":"ws"}
Troubleshooting Attempted:
- Verified extensions installed and enabled in both Cursor and Windsurf
- Cleared IDE lock files (
~/.claude/ide/*.lock) - Killed and restarted all Claude processes
- Restarted IDEs and WSL connections
- Tested with single IDE to avoid conflicts
- Confirmed IDE processes running with extension hosts
- Tried initiating connection from both CLI and IDE sides
IDE Process Verification:
- Cursor: cursor-server processes active with extension host
- Windsurf: windsurf-server processes active with extension host
- Multiple forwarded ports (15045, 30271, etc.) showing IDE services running
Command Palette Confirmation:
Claude Code commands visible and accessible:
- "Claude Code: Insert At-Mentioned" (Ctrl+Alt+K)
- "Fix with Claude Code"
- Other Claude Code integration commands
The connection mechanism appears to work partially (lock files created with correct data), but the CLI fails to detect or communicate with the IDE extensions in WSL2 environment.
28 Comments
I was just about to create an issue.
I'm in the same situation.
In my case, after I ran /ide and selected something like "none" under "cursor", I was unable to select "cursor" again.
The none option is fine, but I wish it was possible to select it again after selecting it.
!Image
The extension itself is installed.
!Image
I'm not good at English, so I'm using a translation site to write this.
Thank you.
Fantastic writeup @AnrokX!
I have the exact same issue with and cursor vscode in WSL2
Hello guys, I have the exact same issue running Cursor in WSL2. Thank you for reporting it too @AnrokX, I thought it was happening only with me.
Same issue with vscode and vscode-insiders with WSL2 Ubuntu 24.04
Dupe: https://github.com/anthropics/claude-code/issues/1390
Same problem in Cursor
Thanks for the report, and sorry for the inconvenience! We have found the issue and submitted a fix, should be available in the next release!
!Image
It's fixed in the new version
1.0.6!! Thank you!!IDE integration working properly now
i've been getting 'IDE disconnected' today , latest VSCode, on Windows 11, WSL Ubuntu , ARM64 .
Also getting this for VSCode today on MacOS 14.7.4, M1 Pro chip
Still getting the issue with latest claude code where it doesn't list the Rider IDE or gets disconnected. I have seen it work previously and it shows the diffs in the IDE but for some reason I haven't been able to get it to connect for the past week.
I figured out that if I use an external terminal (non-Rider integrated terminal) I can get it to work but I still need to close Rider and re-open it after entering a claude code session.
So it seems like there is some necessary event happening when Rider IDE initially loads the project to allow claude code to reach it... But claude code needs to be already in an active session to capture this event.
I'm also getting this issue
+1 same here
VSCode
+1 (VSCode)
+1 (Cursor Version: 1.3.6)
Happening to me Cursor 1.3.5
Happening in Cursor 1.2.4
happening in Cursor 1.2.2 and 1.2.4
happens to me after the latest Claude Code update in VS Code 1.102.3
Seems to be constantly disconnecting if I have another VS Code window opened (with other project), even if that other window DOES NOT use Claude Code
+1 vscode today after updating... so frustrating
Thanks for the reports, we're investigating immediately!
WSL VSCODE IDE disconnect
I had another vscode window open for awhile (not running claude code) then I started noticing the IDE disconnect. I closed the second window and restarted my machine several times and still can't keep claude code connected to the IDE in a single window any longer, even after running /ide. Currently trying to reinstall claude code to see if that fixes things.
+1 vscode
Had this issue on my windows/wsl, vscode after updating, it still works fine on my mac where I didn't update the claude yesterday.
This is likely a new issue with recent updates. We're investigating right now, but please comment/provide any additional information on this issue instead:
https://github.com/anthropics/claude-code/issues/4871
Thanks!
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.