[BUG] Frequent IDE disconnections disrupting workflow in VS Code integration

Resolved 💬 57 comments Opened Jul 31, 2025 by liby Closed Jul 31, 2025
💡 Likely answer: A maintainer (hackyon-anthropic, collaborator) responded on this thread — see the highlighted reply below.

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

  1. Start Claude CLI in VS Code integrated terminal
  2. Run /ide command and select VS Code to establish connection
  3. Work normally for a few minutes (editing files, running commands)
  4. Observe "IDE disconnected" message appears
  5. 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

View original on GitHub ↗

57 Comments

shelltea · 11 months ago

Same issue, "IDE disconnected" started appearing after upgrading to 1.0.64.

github-actions[bot] · 11 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/4598
  2. https://github.com/anthropics/claude-code/issues/2554
  3. https://github.com/anthropics/claude-code/issues/3323

If your issue is a duplicate, please close it and 👍 the existing issue instead.

🤖 Generated with Claude Code

xshapira · 11 months ago

Having the same issue using CC 1.0.64.

ChrisOMetz · 11 months ago

+1

ud2-trap · 11 months ago

+1

billshen99 · 11 months ago

+1

Linchi1997yeh · 11 months ago

+1

peambeboy · 11 months ago

+1

Weizk0825 · 11 months ago

+1

thi-ideta · 11 months ago

+1

harshit-ybm · 11 months ago

+1

forxer · 11 months ago

same issue, unable to install previous release

feibin95 · 11 months ago

+1

loucmane · 11 months ago

+1

chrisduong · 11 months ago

+1

msazanov · 11 months ago

+1

shimscho · 11 months ago

+1

awwillis · 11 months ago

+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:

  • reinstalled Claude Code
  • run as global install
  • migrated to local install
  • reinstalled the VS extension
  • removed all MCP servers
  • running in a project with no user /commands
  • disabled every extension except Claude Code

this is about as vanilla as i could get so out of ideas at this point

psycoder-sup · 11 months ago

+1

dmaass01 · 11 months ago
  • 1
RemingtonDev · 11 months ago

Same issue here on 1.0.64

92Infinitus92 · 11 months ago

+1

DanielTucan · 11 months ago

+1

Mumraforge · 11 months ago

+1 in Windows 11

jeremnds · 11 months ago

+1

renejes · 11 months ago

+1

(I downgraded to 1.0.63 and disabled auto update in /config. That works for now)

thorep · 11 months ago

+1

GunnAdmin · 11 months ago

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✔

  1. None

---

What is the status of our IDE connection?

● 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:

  1. ✅ Connection established - The MCP IDE integration is connected
  2. ✅ No errors - No language diagnostics (errors, warnings) in open files
  3. ✅ Ready to use - Can execute code and perform other IDE operations

The connection allows me to:

  • Get diagnostics from VS Code
  • Execute Python code in Jupyter kernels (for notebook files)
  • Respond to file changes and edits

Currently, there are no issues or errors reported by the IDE.

Create temp file to test if IDE connection disconnects.

● 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:

  1. File creation works
  2. IDE connection persists
  3. Diagnostics continue to function

… +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" />

yeule0 · 11 months ago

i am having the same issue as well on version 1.0.64, i am on ubuntu 24.04

gianged · 11 months ago

+1

I'm having same issues as well
Claude Code: 1.0.64

Leonides87 · 11 months ago

+1

iqaldebaran · 11 months ago

+1

sshah90 · 11 months ago

+1

awwillis · 11 months ago
# 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✔ 2. None > What is the status of our IDE connection? ● 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: 1. ✅ Connection established - The MCP IDE integration is connected 2. ✅ No errors - No language diagnostics (errors, warnings) in open files 3. ✅ Ready to use - Can execute code and perform other IDE operations The connection allows me to: Get diagnostics from VS Code Execute Python code in Jupyter kernels (for notebook files) * Respond to file changes and edits Currently, there are no issues or errors reported by the IDE. > Create temp file to test if IDE connection disconnects. ● 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: 1. File creation works 2. IDE connection persists 3. Diagnostics continue to function … +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 alt="Image" width="1003" height="378" src="https://private-user-images.githubusercontent.com/17618215/473033484-92aed219-0899-4209-a4d9-758af620a124.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTM5NzM5MzEsIm5iZiI6MTc1Mzk3MzYzMSwicGF0aCI6Ii8xNzYxODIxNS80NzMwMzM0ODQtOTJhZWQyMTktMDg5OS00MjA5LWE0ZDktNzU4YWY2MjBhMTI0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzMxVDE0NTM1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc4NDEzMDE4YWU4ZWFjODViOTFiZjQxZDBjOTFlNGQwNjE4YWQ4NGM4N2EyN2FkMGY4YjAwNGY5NmFkMDJhYmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1Dgy6ss7VW8bAYPqi9b0VFiknyJ3PPCpUziVpzj2n8U">

it's not behaving like it's still connected though for me - doesn't detect selected code for context, etc.

thorep · 11 months ago

+1

stojdev · 11 months ago

+1

paulcedrick · 11 months ago

+1

hexlogic · 11 months ago

As a temporary solution paste in your terminal
npm i -g @anthropic-ai/claude-code@1.0.63

and do not close the session until you done.

mcalamosca · 11 months ago

+1

thomcode · 11 months ago

+1

Saran33 · 11 months ago

+1

andrujuanoo · 11 months ago

+1

rodrigoantonioli · 11 months ago

+1

dinsley · 11 months ago

+1

Kzaim-25 · 11 months ago

+1

entrptaher · 11 months ago

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.

claude --version
1.0.64 (Claude Code)

npm i -g @anthropic-ai/claude-code@1.0.63
khuyentran1401 · 11 months ago
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. claude --version 1.0.64 (Claude Code) npm i -g @anthropic-ai/claude-code@1.0.63

@entrptaher This helps! Thank you

mcalamosca · 11 months ago

downgrading worked for me as well. Make sure to disable auto-updates with /config before installing the previous version

Dr-Usman · 11 months ago

+1

e-ip · 11 months ago

+1

vcode-sh · 11 months ago

same here - IDE Disconnected on 1.0.64

hackyon-anthropic collaborator · 11 months ago

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.

FriedrichGauss · 11 months ago

+1

vargas88hugo · 11 months ago

+1

hackyon-anthropic collaborator · 11 months ago

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!

RaiAnsar · 11 months ago
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.

github-actions[bot] · 11 months ago

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.