Starting Claude Code in VSCode integrated terminal opens 3 new VSCode windows

Status Fixed / completed
Maintainer reply ✓ Yes — blois
Activity 8 comments · opened Mar 5, 2026 · closed Mar 6, 2026
💡 Likely answer: A maintainer (blois, collaborator) responded on this thread — see the highlighted reply below.

Bug Description

When launching a Claude Code session from within a VSCode integrated terminal, 3 new VSCode windows are opened every time.

Steps to Reproduce

  1. Open VSCode
  2. Open the integrated terminal (Ctrl+\`)
  3. Run claude to start a Claude Code session

Expected Behavior

No additional VSCode windows should open. Claude Code should run within the existing terminal session.

Actual Behavior

3 new VSCode windows are opened each time a Claude Code session is started from the VSCode integrated terminal.

Environment

  • OS: Windows 11 Pro 10.0.26200
  • Shell: bash (Git Bash)
  • Claude Code version: latest

Additional Context

This appears to be related to Claude Code's IDE integration detection. It may be spawning multiple code process calls unintentionally when detecting or connecting to the VSCode environment on Windows.

View original on GitHub ↗

8 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/30975
  2. https://github.com/anthropics/claude-code/issues/30848
  3. https://github.com/anthropics/claude-code/issues/30946

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

lemonroti · 5 months ago

same issue here after update to latest version 2.1.69 (Claude Code)

ThGouzias · 5 months ago

Same issue, version is 2.1.69.

ramdacc · 5 months ago

I've been using the following workaround in the integrated terminal (Powershell) in VS Code:

$env:TERM_PROGRAM=''; $env:VSCODE_INJECTION=''; claude

CreateSean · 5 months ago

I just installed Claude today and am having this issue on Windows 10

xwork1 · 5 months ago

Same problem. 2.1.69.

blois collaborator · 5 months ago

Should be fixed in 2.1.70.

github-actions[bot] · 5 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.