VSCode extension: focus rapidly jumps between Claude Code tabs on startup; new-tab icon opens session in wrong editor group
Environment
- Claude Code VSCode extension: v2.1.202
- VSCode: 1.129.1 (x64)
- OS: Windows 11 Home 10.0.26200
Bug 1 — Focus jumps between Claude Code tabs when VSCode opens with many sessions
When VSCode starts with several Claude Code sessions restored (side panel plus multiple editor tabs), the editor keeps jumping from one Claude Code tab to another on its own. It is very distracting and makes the window unusable for a while.
Expected: restored sessions should load in the background without stealing focus. The tab that was active when the window was closed should stay active.
Bug 2 — New-session icon next to the current tab opens the tab in the wrong editor group
Clicking the "new tab" icon next to the current Claude Code tab opens the new session in a different editor group, detached from where I am working — it appears as a "lost" tab somewhere else instead of next to the current one.
Opening a session via the Claude Code menu → "New session" works correctly: the tab opens in the editor group that has focus.
Expected: the icon next to the tab should open the new session in the currently focused editor group, same as the menu action.
Bug 3 — Rapid focus ping-pong between tabs
Focus bounces back and forth between two tabs very fast (visible flicker), when opening VSCode and sometimes when opening a new session. Possibly the same root cause as Bug 1, but it also happens on a single new session.
---
All three are about tab/focus management, so filing together. Happy to record a screen capture if it helps.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗