Starting Claude Code in VSCode integrated terminal opens 3 new VSCode windows
Status Fixed / completed
Maintainer reply ✓ Yes — blois
Workaround ✓ Mentioned in thread ↓
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
- Open VSCode
- Open the integrated terminal (Ctrl+\`)
- Run
claudeto 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.
8 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
same issue here after update to latest version 2.1.69 (Claude Code)
Same issue, version is 2.1.69.
I've been using the following workaround in the integrated terminal (Powershell) in VS Code:
$env:TERM_PROGRAM=''; $env:VSCODE_INJECTION=''; claude
I just installed Claude today and am having this issue on Windows 10
Same problem. 2.1.69.
Should be fixed in
2.1.70.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.