You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sometimes can't start 3rd party plugins during VS Code start #326112
Install one of the plugins that trigger this problem (Cline, Codex, probably much more)
Restart and then open some UI of one of those plugins
Restart and repeat step 2 several times
The error that you will see in the pop-up window in the bottom right side will be as following:
Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..
Sometimes it happens, but sometimes is doesn't and the same plugins work properly.
Looks unrelated to the plugins themselves, but to some internals of the VS Code extensions support.
I can reproduce this as well. This issue can occur immediately upon opening VS Code, and is not limited to specific extensions — I have encountered it with Claude Code, Cline, Kimi Code CLI, among others. It appears to be a race condition during VS Code's startup/shutdown cycle affecting the webview's ServiceWorker registration.
Activity
rostidev commentedon Jul 18, 2026
Still happens even after VS Code was upgraded to versions 1.129.1
Thaina commentedon Aug 14, 2026
still happen sometimes with claude extension
yinlb3 commentedon Sep 17, 2026
I can reproduce this as well. This issue can occur immediately upon opening VS Code, and is not limited to specific extensions — I have encountered it with Claude Code, Cline, Kimi Code CLI, among others. It appears to be a race condition during VS Code's startup/shutdown cycle affecting the webview's ServiceWorker registration.
Version: 1.138.0 (user setup)
Commit: 7debcd0
Date: 2026-09-15T07:24:32Z
Electron: 42.10.0
ElectronBuildId: 15109253
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
@github/copilot: 1.0.84-4
@github/copilot-sdk: 1.0.13
OS: Windows_NT x64 10.0.26200