Skip to content

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

@andrijaster

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

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions