claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Only one Claude Code instance per VSCode window can have IDE connection

Open elfenlieds7 opened this issue 6 days ago • 1 comments

Description

When running multiple Claude Code instances in different terminals within the same VSCode window, only ONE instance can be IDE-connected at a time. Other instances show IDE: Installed VS Code extension instead of IDE: Connected to VS Code extension.

Steps to Reproduce

  1. Open VSCode with Claude Code extension installed
  2. Open Terminal 1, run claude, check /status → Shows IDE: Connected
  3. Open Terminal 2 (different project folder), run claude, check /status → Shows IDE: Installed (not connected)
  4. In Terminal 1, run /exit
  5. In Terminal 2, run /ide → Now shows IDE: Connected
  6. Go back to Terminal 1, run claude, check /status → Shows IDE: Installed (lost connection)

Expected Behavior

Multiple Claude Code instances in different terminals should be able to connect to the IDE simultaneously, as suggested by the documentation stating "Run multiple Claude Code sessions simultaneously".

Actual Behavior

Only one Claude Code instance per VSCode window can maintain an IDE connection. Starting a new instance or reconnecting from another terminal causes the previous instance to lose its IDE connection.

Environment

  • Claude Code version: 2.0.74
  • OS: Windows 11 (Build 26200.7462)
  • VSCode/Cursor version: Latest
  • Terminal: PowerShell (integrated)

Impact

This limitation forces users to either:

  1. Work with only one IDE-connected Claude Code at a time
  2. Open multiple VSCode windows (~800 MB each) to have multiple simultaneous IDE connections

Related Issues

  • #14832 - IDE not connected when running from subdirectory
  • #13447 - VSCode integrated terminal cannot detect 'code' command

elfenlieds7 avatar Dec 20 '25 12:12 elfenlieds7

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/13448
  2. https://github.com/anthropics/claude-code/issues/13287
  3. https://github.com/anthropics/claude-code/issues/13352

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 20 '25 12:12 github-actions[bot]

This issue has been automatically closed as a duplicate of #13448.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 24 '25 09:12 github-actions[bot]