[BUG] v2.1.68 (updated 2026-03-04) opens 3 blank VS Code windows when claude is started in the integrated terminal.
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The timeline is crystal clear now. Each MCP server startup triggers a new VS Code window:
┌──────────┬─────────────────────────────────────┬────────────────┐
│ Time │ MCP Event │ VS Code Window │ ├──────────┼─────────────────────────────────────┼────────────────┤
│ 23:25:09 │ serena/context7/playwright start │ │ ├──────────┼─────────────────────────────────────┼────────────────┤ │ 23:25:10 │ serena.exe initializes │ Window 1 opens │ ├──────────┼─────────────────────────────────────┼────────────────┤ │ 23:25:13 │ context7-mcp + playwright-mcp ready │ Window 2 opens │ ├──────────┼─────────────────────────────────────┼────────────────┤ │ 23:25:16 │ playwright launches firefox │ Window 3 opens │ └──────────┴─────────────────────────────────────┴────────────────┘ It's the 3 MCP servers (serena, context7, playwright) that each trigger a new VS Code window when they initialize. This is likely a bug in the Claude Code VS Code extension v2.1.68 (updated today) - it's creating new windows for each MCP server connection. It's the Claude Code VS Code extension v2.1.68 itself (updated today). The plugin cache likely gets regenerated on startup,
What Should Happen?
fix the bug that startsup vscode sessions
Error Messages/Logs
Steps to Reproduce
The timeline is crystal clear now. Each MCP server startup triggers a new VS Code window:
┌──────────┬─────────────────────────────────────┬────────────────┐
│ Time │ MCP Event │ VS Code Window │ ├──────────┼─────────────────────────────────────┼────────────────┤
│ 23:25:09 │ serena/context7/playwright start │ │ ├──────────┼─────────────────────────────────────┼────────────────┤ │ 23:25:10 │ serena.exe initializes │ Window 1 opens │ ├──────────┼─────────────────────────────────────┼────────────────┤ │ 23:25:13 │ context7-mcp + playwright-mcp ready │ Window 2 opens │ ├──────────┼─────────────────────────────────────┼────────────────┤ │ 23:25:16 │ playwright launches firefox │ Window 3 opens │ └──────────┴─────────────────────────────────────┴────────────────┘ It's the 3 MCP servers (serena, context7, playwright) that each trigger a new VS Code window when they initialize. This is likely a bug in the Claude Code VS Code extension v2.1.68 (updated today) - it's creating new windows for each MCP server connection.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.66
Claude Code Version
2.1.68
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
9 Comments
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I am having the same issue. The other referenced potential duplicate issues you closed and locked stating they were duplicates. This issue has not been resolved, this is no longer a duplicate because you locked out the others.
Having this issue.
Having this issue!!!!
Very annoying please fix.
I have the same problem running Claude Code v2.1.69 on Windows 11 Pro (build 26200).
Actually, I am experiencing two related bugs that have persisted across versions v2.1.68 and v2.1.69 and survive all documented workarounds:
Bug 1: Three blank VS Code windows spawn on every Claude Code session start. Every time I start a Claude Code session from the integrated terminal, three empty VS Code windows open automatically. Based on community reports (issues #30848, #31136), the cause appears to be one window per MCP server initializing (serena, context7, playwright). Setting the window.restoreWindows: none,
openFoldersInNewWindow: off, and hotExit: off in VS Code settings had no effect. Disabling the anthropic.The Claude-code VS Code extension also did not resolve it.
Bug 2: Claude Code session history is visible in the GitHub Copilot Chat panel. My Claude Code conversation history appears in the VS Code Copilot Chat sidebar, which is a privacy concern. These sessions should be isolated. This appears to be related to Microsoft/vscode issue #296181.
Both bugs appear to stem from the Claude Code IDE integration layer interacting unexpectedly with VS Code on Windows. They are reproducible on every session start.
I would appreciate confirmation that these are known issues and an estimated timeline for a fix. Are you going to push an update soon? They are both very annoying bugs.
having the same issue.
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.