[BUG] VS Code extension freezes with multi-tab polling storm at context limit

Resolved 💬 4 comments Opened Jan 29, 2026 by BillShu37 Closed Feb 28, 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?

Description:
When multiple Claude conversation tabs are open and one approaches the context window limit (100%), the extension enters a runaway polling loop and freezes. The UI shows a perpetual "thinking..." indicator with no response or timeout.

Environment:
OS: Windows 11
VS Code Extension Version: 2.1.23.6ee
RAM: 32GB
Workspace: Large repo with Dropbox sync (Data/ folder excluded via .gitignore)

What Should Happen?

Expected Behavior:
Context compaction should complete within a reasonable time, or fail gracefully with an error message.

Error Messages/Logs

Actual Behavior:
Extension hangs indefinitely. Output logs reveal a polling storm with hundreds of duplicate requests per second:
2026-01-29 16:43:47.261 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"rename_tab","title":"Using the Refinitiv API …","hasPendingPermissions":true,...}}
2026-01-29 16:43:47.261 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"get_session_request","sessionId":"0d8eb8e4-358e-4209-a7f9-483dbeabb897"}}
2026-01-29 16:43:47.261 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"rename_tab","title":"In 2.1 and 2.2, you run …",...}}
2026-01-29 16:43:47.261 [info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"get_session_request","sessionId":"24e8cc46-e13a-4be2-8d14-70ae0325175f"}}
[Pattern repeats hundreds of times per second]

Key observations:

Two sessions are being polled in a tight loop (get_session_request + rename_tab)
OAuth authentication is checked every few milliseconds
One tab has "hasPendingPermissions":true which may contribute to the loop
No debouncing or deduplication appears to be occurring

Steps to Reproduce

  1. Open VS Code with Claude Code extension
  2. Open 2+ Claude conversation tabs
  3. Have extended conversations until one tab approaches 100% context
  4. Observe freeze when context compaction is triggered

Regression Note:
Multi-tab functionality previously worked without this issue. This appears to be a recent regression in webview/extension state synchronization.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.7 (VS Code extension)

Claude Code Version

2.1.12

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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