[BUG] Claude leaves behind locked panels in VSCode

Status Closed — not planned
Reported on v2.1.17
Maintainer reply None cached
Activity 13 comments · opened Jan 23, 2026 · closed Jun 13, 2026

What's Wrong?

Opening new tabs using the VSCode/Cursor extension creates new locked tab groups when you have other files already open. This is slightly annoying behaviour when I want to manage multiple Claude Code tabs + files.

What Should Happen?

Other extensions explicitly expose an 'Auto Lock Groups' setting to control this:
<img width="941" height="119" alt="Image" src="https://github.com/user-attachments/assets/3793de15-ec4c-4200-a7d3-63508229ee9e" />

It would be great if the Claude Code extension could do the same.

This issue was previously raised here: #7752
However, that issue was incorrectly labelled as a duplicate of #6917 and is now locked.

Steps to Reproduce

  1. Open VSCode.
  2. Open a file.
  3. Open Command Palette (Cmd+Shift+P on Mac)
  4. Select 'Claude Code: Open in New Tab'
  5. A new Claude Code tab is created as a locked side group.

<img width="1512" height="803" alt="Image" src="https://github.com/user-attachments/assets/4c3436b8-688e-44a6-9f02-4a89a3834f58" />

Claude Code Version

2.1.17

Terminal/Shell

Cursor

View original on GitHub ↗

12 Comments

github-actions[bot] · 7 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/18337
  2. https://github.com/anthropics/claude-code/issues/7752

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

isaacdlfabric · 7 months ago

Agreed! This is quite annoying. Please let the Claude Code window behave like any other VSCode tab so that users can manage it normally.

My preferred behavior is what VSCode does when opening a new file by default: open it in whatever panel is currently focused/selected.

portley-0 · 5 months ago

This is an annoying issue.

sergioyersivillegas · 5 months ago

👍🏼 yesss, i created one because indeed is annoying!

alecgeatches · 5 months ago

Comment to ward off the stale bot. This is still an issue, and https://github.com/anthropics/claude-code/issues/20324#issuecomment-3861513013 (separate extension) worked as a fix for me.

isaacdlfabric · 4 months ago

Still an issue!

delmaass · 3 months ago

Still an issue

github-actions[bot] · 2 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

BuMaRen · 1 month ago

can be resolved with setting Preferred Location as sidebar

jaredMericka · 20 days ago
can be resolved with setting Preferred Location as sidebar

This is not a resolution to the described problem. It's just _doing something totally different_. We obviously want to click the Claude Code button and have it open normally in a new tab in the same window / tab group.

sirindudler · 10 days ago

How can I spend tokens if im slowed down by a lock.
If I want to click and drag I would play OSU.

Showing cached comments. Read the full discussion on GitHub ↗