[BUG] Claude code won't open in new window or tab anymore

Status Open
Reported on v2.1.204
Maintainer reply None cached
Activity 3 comments · opened Jul 8, 2026

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 broken commands (command IDs):

claude-vscode.editor.open — "Claude Code: Open in New Tab"
claude-vscode.window.open — "Claude Code: Open in New Window"
Worth mentioning in the same report (these share the same editor/window-opening path, so testing them tells the maintainers how wide the breakage is):

claude-vscode.primaryEditor.open — "Open in Primary Editor"
claude-vscode.editor.openLast — "Open"

Settings that work / are unaffected (for contrast):
claudeCode.preferredLocation — enum sidebar | panel (the two docks that still work)

VS code version: VS Code 1.127.0
Extension identity: Anthropic.claude-code v2.1.204
OS: Linux Kubuntu (Ubuntu 26.04 LTS)

Suggested report skeleton:

Commands claude-vscode.editor.open ("Open in New Tab") and claude-vscode.window.open ("Open in New Window") do nothing / fail after updating to VS Code 1.127.0. Docking via claudeCode.preferredLocation (sidebar/panel) still works. Extension Anthropic.claude-code 2.1.204, VS Code 1.127.0, Linux x64. Console error from Help → Toggle Developer Tools: <paste>.

What Should Happen?

Claude code should be able to open as new tab or in a new window so I can pull it out to a different screen instead of eating up my screen real estate.

Error Messages/Logs

Steps to Reproduce

CTRL+SHIFT+P
"coude code: open in new window"

Claude Model

_No response_

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.204

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

3 Comments

Jaszuro · 1 month ago

For me, the problem exists with the same commands, but with different result on Windows 11 (might not be related): The active tab gets moved to a new window, and another new, completely blank window opens as well, without even a title bar, so closing it is only possible by using the taskbar icon. No Claude Code opens.

stutek · 1 month ago

Update, seems that closing all VS code windows and reopening brings all chat claude code windows back as if the actions are opening the windows and tabs in some alternate not visible UI that becomes visible only after application restart.

Jaszuro · 1 month ago

Not for me. Even just reloading the vscode window gets rid of Claude Code windows and does not reopen them.