[BUG]

Resolved 💬 2 comments Opened Jun 8, 2026 by Ludwig1979 Closed Jun 12, 2026

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?

Bug Report: Claude Code extension broken in VS Code with WSL2

Environment:

  • OS: Windows 11 + WSL2 (Ubuntu)
  • VS Code: 1.123.0
  • VS Code Server: 6a44c352bd24569c417e530095901b649960f9f8
  • Claude Code extension: 2.1.168 (also reproduced with 2.1.128)
  • Claude Code CLI: 2.1.168

Symptoms:

  • The Claude Code panel in VS Code shows only one conversation named "entitled"
  • The prompt input area is not displayed
  • Conversation history is lost on every restart

Error in VS Code Developer Console:

PendingMigrationError: navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator for additional info on this error.
    at get (extensionHostProcess.js:833:7243)
    at Object.<anonymous> (anthropic.claude-code-2.1.168-linux-x64/extension.js:82:12292)

This error appears multiple times at extension load time, for both versions 2.1.128 and 2.1.168.

Additional observations:

  • The CLI works correctly in the WSL terminal (claude command)
  • Lock files in ~/.claude/ide/ are created correctly but without a port field
  • The CLAUDE_CODE_SSE_PORT is set in terminal environment but the UI fails to connect (ERR_INVALID_HTTP_RESPONSE)
  • The error is present in both the latest and previous versions of the extension

Root cause hypothesis:
The extension uses navigator as a browser global, which conflicts with the recent Node.js version embedded in VS Code Server, where navigator is now a built-in global. This causes a PendingMigrationError that prevents the extension UI from initializing correctly.

Workaround:
None found. Using the CLI in the terminal as a temporary workaround.

Expected behavior:
The Claude Code panel should display the full UI with prompt input and conversation history when using VS Code with WSL2.

What Should Happen?

Oui, pour ce champ mettez :

The Claude Code panel should display the full UI with the prompt input area and the full conversation history when using VS Code 1.123.0 with WSL2.

Error Messages/Logs

Collez ceci :


PendingMigrationError: navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator for additional info on this error.
    at get (extensionHostProcess.js:833:7243)
    at Object.<anonymous> (anthropic.claude-code-2.1.168-linux-x64/extension.js:82:12292)

[Extension Host] Created lock file at /home/ldenis8/.claude/ide/53669.lock
[Extension Host] Set CLAUDE_CODE_SSE_PORT=53669 in terminal environment (in-memory)
Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE

Steps to Reproduce

Collez ceci :

1. Install VS Code 1.123.0 on Windows
2. Install WSL2 with Ubuntu
3. Open a folder in VS Code with WSL2 (remote connection)
4. Install Claude Code extension 2.1.168 (or 2.1.128) in WSL
5. Install Claude Code CLI in WSL: npm install -g @anthropic-ai/claude-code
6. Open the Claude Code panel in VS Code sidebar

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

claude-sonnet-4-20250514

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗