Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
This repository was archived by the owner on May 15, 2026. It is now read-only.

[BUG] ServiceWorker Registration Error: "InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state" #9903

Description

@andrijaster

Problem (one or two sentences)

When opening the extension’s webview, VS Code displays the following error:

Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.

Context (who is affected and when)

I can see this with new VScode update

Reproduction steps

  1. Start VScode and try to import Roo Code

Expected result

RooCode should work

Actual result

The webview fails to initialize, and the above error is shown instead of the extension UI.

Variations tried (optional)

No response

App Version

the newest one

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions