Skip to content

Bug: VS Code keeps restarting / extension crash #8778

Description

@sebastienmascha

Plugin Type

VSCode Extension

Cline Version

3.51.0

What happened?

VS Code’s extension host repeatedly crashes and restarts shortly after startup when the Cline extension is enabled. The extension host logs show repeated errors:

PendingMigrationError: navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator

The stack traces consistently point into the Cline extension bundle (saoudrizwan.claude-dev/dist/extension.js). While this happens, VS Code becomes unstable and keeps restarting the extension host.

I expected VS Code to remain stable and for the Cline extension to activate normally without crashing the extension host.

Steps to reproduce

  1. Install and enable the Cline extension.
  2. Open VS Code (either locally or using Remote SSH).
  3. Open any workspace or folder.
  4. Within seconds, the extension host logs show repeated PendingMigrationError exceptions and the extension host restarts.

Note: Disabling or uninstalling Cline immediately stops the crash/restart loop.

Provider/Model

openrouter:anthropic/claude-sonnet-4.5

System Information

Operating System:

Occurs both locally and via VS Code Remote SSH

Observed on Linux (Ubuntu 24.04)

Hardware:

CPU: x86_64

RAM: 32 GB

GPU: NVIDIA (not required to reproduce)

VS Code / Extension details:

VS Code Server commit (remote): 585eba7c0c34fd6b30faac7c62a42050bfbc0086

Cline extension: saoudrizwan.claude-dev version 3.51.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot RespondedIssue has received an automated responseInvestigation NeededRequires debugging or root cause analysisP1High priorityVS CodeIssues specific to VS Code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions