VSCode extension: input box flickers and focus rapidly ping-pongs between multiple open session tabs

Open 💬 5 comments Opened Jun 27, 2026 by You-lius

What happened

When multiple Claude Code sessions are open in the same VSCode window (as tabs in the panel), the input box flickers and keyboard focus rapidly "ping-pongs" between the open sessions on its own. This makes it very hard to type into the input box.

Steps to reproduce

  1. Open 2 or more Claude Code sessions in the same VSCode window (default claudeCode.preferredLocation: panel).
  2. Observe the session tabs in the panel.
  3. Focus automatically alternates back and forth between the sessions, and the input box flickers.

Expected behavior

Focus stays in the session the user is interacting with. No automatic focus switching between open session webviews.

Actual behavior

Focus rapidly alternates between multiple open session tabs, the input box flickers, and typing is disrupted.

Workaround

  • Keeping only one session per window (separate VSCode windows for concurrent sessions) avoids it.
  • claudeCode.useTerminal: true also avoids it, since it removes the webview panel entirely.

Environment

  • Extension: anthropic.claude-code 2.1.195
  • VSCode on Linux (a vscode-server 2.1.183 host is also present)
  • OS: Linux (zen kernel 7.0.13-zen1)

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗