[BUG] Extension 2.1.201 fails to load on current VSCode: PendingMigrationError: navigator is now a global in nodejs at module init (Zod)

Open 💬 1 comment Opened Jul 6, 2026 by swashko

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?

Summary

The Claude Code VSCode extension (2.1.201, anthropic.claude-code) fails to activate on a current VSCode build running on WSL2 Ubuntu. The panel opens as a blank tab titled "Untitled" with no error surfaced in the UI. The remote extension host log shows a PendingMigrationError: navigator is now a global in nodejs thrown from a bundled Zod schema during Module._compile, before activate() runs. The extension therefore never registers, and the CLI is never spawned.

Environment

  • OS: Windows 11 host + WSL2 (Ubuntu, x86_64), Linux 6.6.114.1-microsoft-standard-WSL2
  • VSCode build: 4fe60c8b1cdac1c4c174f2fb180d0d758272d713
  • Remote - WSL: ms-vscode-remote.remote-wsl 0.104.3 (current)
  • Claude Code extension: anthropic.claude-code 2.1.201 (installed on the WSL side)
  • Claude Code CLI: 2.1.201 at /home/swashko/in/claude
  • CLI works normally in a terminal (both a pode integrated terminal); only the extension

panel is broken.

Symptom

Opening the Claude Code panel shows a tab labeled "Untitled" with an empty body. No error toast, no prompt box, no
session list. New Chat / palette commands do

Log

Remote (WSL) Extension Host log at load time

[error] PendingMigrationError: navigator is e seehttps://aka.ms/vscode-extensions/navigator for additional info on this error.
at get (…/extensionHostProcess.js:852:72
at /home/swashko/.vscode-server/extensio201-linux-x64/extension.js:289:13498
at get value (…/extension.js:289:12218)
at /home/swashko/.vscode-server/extensio201-linux-x64/extension.js:315:198
at $ZodObject.i (…/extension.js:289:1002
at /home/swashko/.vscode-server/extensions/anthropic.claude-code-2.1.201-linux-x64/extension.js:317:17477
at i (…/extension.js:289:10023)
at new ZodObject (…/extension.js:289:10287)
at ti (…/extension.js:317:18363)
at Object.<anonymous> (…/extension.js:31
at Module._compile (node:internal/module
...

Interpretation: something in a bundled Zod s module load. In the Node runtime shippedwith current VSCode, navigator is now a global and VSCode's compat layer throws a PendingMigrationError on that
access, aborting the require.

Workaround

  • Downgrade the extension to 2.1.200 (Extense → Install Another Version → 2.1.200 → Linux

64 bit) with extension auto-update disabled.

  • Also downgrade the CLI to match:

npm install -g @anthropic-ai/claude-code@2.1

  • If the extension and CLI versions do not me CLI and the CLI dies immediately (visible

as [claude] <defunct> under the extension hohen hangs and prompts get no response.

Impact

The extension is unusable on current VSCode ed. The CLI is unaffected.

What Should Happen?

Suggested fix

The bundled Zod schema (or wrapper) should nload. Guard the access, drop it, or upgrade
to a Zod version that handles the Node navigtps://aka.ms/vscode-extensions/navigator.

Error Messages/Logs

Steps to Reproduce

Reproduction

  1. WSL2 Ubuntu, current VSCode, Remote - WSLon 2.1.201 installed on the WSL side.
  2. Open a folder in WSL, open the Claude Code panel.
  3. Panel shows "Untitled", empty. Remote extPendingMigrationError above.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.199

Claude Code Version

2.1.201

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗