[BUG] Frequent IDE disconnections disrupting workflow in VS Code integration
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [x] Other: Max Plan
- Claude CLI version: 1.0.64
- Operating System: macOS Darwin arm64 24.5.0
- Terminal: VS Code integrated terminal
Bug Description
The IDE connection to VS Code frequently disconnects during normal usage. Even after manually reconnecting using /ide
command and selecting VS Code, the connection drops again within a few minutes, showing "IDE disconnected" message.
Steps to Reproduce
- Start Claude CLI in VS Code integrated terminal
- Run
/idecommand and select VS Code to establish connection - Work normally for a few minutes (editing files, running commands)
- Observe "IDE disconnected" message appears
- Repeat steps 2-4, connection drops again within minutes
Expected Behavior
The IDE connection should remain stable throughout the entire Claude CLI session without frequent disconnections.
Actual Behavior
The IDE connection drops every few minutes, requiring manual reconnection. This disrupts workflow and reduces
productivity as the connection needs to be re-established repeatedly.
Additional Context
- Claude CLI installed globally via npm:
npm install -g @anthropic/claude-cli - VS Code version: 1.102.3 (Commit: 488a1f239235055e34e673291fb8d8c810886f81)
- Using VS Code on Apple Silicon Mac
- Node.js version: 22.17.1
- The issue occurs consistently across different projects and workspaces
- No specific action seems to trigger the disconnection - it happens during normal file editing and command execution
Claude CLI diagnostic output:
Claude CLI Diagnostic
Currently running: unknown (1.0.64)
Path: /Users/bryan/.proto/tools/node/22.17.1/bin/node
Invoked: /Users/bryan/.npm-global/bin/claude
Config install method: unknown
Auto-updates enabled: true
57 Comments
Same issue, "IDE disconnected" started appearing after upgrading to 1.0.64.
Found 3 possible duplicate issues:
If your issue is a duplicate, please close it and 👍 the existing issue instead.
🤖 Generated with Claude Code
Having the same issue using CC 1.0.64.
+1
+1
+1
+1
+1
+1
+1
+1
same issue, unable to install previous release
+1
+1
+1
+1
+1
+1
cannot run more than 30 secs to 2 minutes without IDE disconnecting
same issue in both VS Code and Cursor
started happening in the last day or two
things i've tried that have not helped:
this is about as vanilla as i could get so out of ideas at this point
+1
Same issue here on 1.0.64
+1
+1
+1 in Windows 11
+1
+1
(I downgraded to 1.0.63 and disabled auto update in /config. That works for now)
+1
I'm showing "IDE disconnected" message, connection still working.
IDE Integration • /config
✔ Connected to Visual Studio Code extension
L Installed VS Code extension version 1.0.64 (server version: 1.0.63)
Select IDE
Connect to an IDE for integrated development features.
❯ 1. Visual Studio Code✔
---
● I'll check the IDE connection status using the available MCP tools.
⎿ []
● The IDE connection is active and working properly. The diagnostics returned an empty array [], which indicates:
The connection allows me to:
Currently, there are no issues or errors reported by the IDE.
● I'll create a temporary test file to see if the IDE connection remains stable.
● Write(workspace/active/ide-connection-test.txt)
⎿ Wrote 12 lines to workspace/active/ide-connection-test.txt
IDE Connection Test File
========================
Created: 2025-07-31 14:11:45 UTC
Purpose: Test if IDE connection remains stable after file creation
This is a temporary test file to verify:
… +2 lines (ctrl+r to expand)
● Now let me check if the IDE connection is still active:
[DEBUG] Getting matching hook commands for Notification with query: undefined
[DEBUG] Found 0 hook matchers in settings
[DEBUG] Matched 0 unique hooks for query "no match query" (0 before deduplication)
[DEBUG] MCP server "ide": Calling MCP tool: getDiagnostics
[DEBUG] AutoUpdaterWrapper: Installation type: npm-global, using native: false
[DEBUG] MCP server "ide": Tool call succeeded: {"content":[{"type":"text","text":"[]"}]}
[DEBUG] Executing hooks for PostToolUse:mcp__ide__getDiagnostics
[DEBUG] Getting matching hook commands for PostToolUse with query: mcp__ide__getDiagnostics
[DEBUG] Found 2 hook matchers in settings
[DEBUG] Matched 1 unique hooks for query "mcp__ide__getDiagnostics" (1 before deduplication)
[DEBUG] Found 1 hook commands to execute
[DEBUG] Executing hook command: .claude/hooks/auto-update-context.sh with timeout 60000ms
[DEBUG] Hook command completed with status 0: .claude/hooks/auto-update-context.sh
[DEBUG] Hook stderr: 📊 Context updated: mcp__ide__getDiagnostics on 'N/A' at 2025-07-31 14:11:12 UTC
[DEBUG] Hook output does not start with {, treating as plain text
[DEBUG] MCP server "ide": Calling MCP tool: getDiagnostics
[DEBUG] MCP server "ide": Tool call succeeded: {"content":[{"type":"text","text":"[]"}]}
[DEBUG] Stream started - received first chunk
● ✅ IDE connection remains stable after file creation. The diagnostics still return successfully, confirming the connection persists through file operations.
The test file has been created at workspace/active/ide-connection-test.txt. You can delete it when you're done testing:
rm workspace/active/ide-connection-test.txt
[DEBUG] Executing hooks for Stop
[DEBUG] Getting matching hook commands for Stop with query: undefined
[DEBUG] Found 0 hook matchers in settings
[DEBUG] Matched 0 unique hooks for query "no match query" (0 before deduplication)
[DEBUG] Found 0 hook commands to execute
---
But IDE Interfaces is showing disconnected.
<img width="1003" height="378" alt="Image" src="https://github.com/user-attachments/assets/92aed219-0899-4209-a4d9-758af620a124" />
i am having the same issue as well on version 1.0.64, i am on ubuntu 24.04
+1
I'm having same issues as well
Claude Code: 1.0.64
+1
+1
+1
it's not behaving like it's still connected though for me - doesn't detect selected code for context, etc.
+1
+1
+1
As a temporary solution paste in your terminal
npm i -g @anthropic-ai/claude-code@1.0.63and do not close the session until you done.
+1
+1
+1
+1
+1
+1
+1
Anyone else coming to this issue these days, I had to downgrade to get it working properly. Everything was fine until yesterday. On my Mac, where I didn’t update, there were no problems. But after updating on my PC today, I encountered this issue. So, I decided to just downgrade for now.
@entrptaher This helps! Thank you
downgrading worked for me as well. Make sure to disable auto-updates with
/configbefore installing the previous version+1
+1
same here - IDE Disconnected on 1.0.64
Thanks for the reports! 💯 We have identified the issue and a fix is incoming ASAP. Apologies for the inconvenient!
We will be using https://github.com/anthropics/claude-code/issues/4871 as the main tracker for this issue.
+1
+1
We've just released a new hotfix build (1.0.65), which should fix this issue:
https://www.npmjs.com/package/@anthropic-ai/claude-code/v/1.0.65
Please update when you get a chance, and let us know if you encounter any issues. Apologies for the inconvenience!
Still faced it earlier today.
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.