[BUG] VS Code extension 2.1.129 fails to activate on Windows — hardcoded Linux path in createRequire

Resolved 💬 2 comments Opened May 6, 2026 by teeto Closed May 6, 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?

The Claude Code VS Code extension version 2.1.129 (win32-x64) fails to activate on Windows with the following error:

TypeError: The argument 'filename' must be a file URL object, file URL string, or absolute path string.
Received 'file:///home/runner/work/claude-cli-internal/claude-cli-internal/build-agent-sdk/sdk.mjs'
at Module.createRequire (node:internal/modules/cjs/loader:1922:13)
at Object.<anonymous> (c:\Users\..\.vscode\extensions\anthropic.claude-code-2.1.129-win32-x64\extension.js:102:5407)

The bundled extension.js contains a hardcoded Linux path from the CI build environment (/home/runner/work/...). On
Windows, createRequire rejects this path because it is not a valid file URL or absolute path for the current platform.

What Should Happen?

Extension activates normally.

Actual behavior :

Extension fails to activate. All commands throw command 'claude-vscode.editor.openLast' not found.

Error Messages/Logs

TypeError: The argument 'filename' must be a file URL object, file URL string, or absolute path string.
  Received 'file:///home/runner/work/claude-cli-internal/claude-cli-internal/build-agent-sdk/sdk.mjs'
      at Module.createRequire (node:internal/modules/cjs/loader:1922:13)
      at Object.<anonymous> (c:\Users\..\.vscode\extensions\anthropic.claude-code-2.1.129-win32-x64\extension.js:102:5407)

  The bundled extension.js contains a hardcoded Linux path from the CI build environment (/home/runner/work/...). On
  Windows, createRequire rejects this path because it is not a valid file URL or absolute path for the current platform.

Steps to Reproduce

  1. Install Claude Code VS Code extension version 2.1.129 on Windows
  2. Open VS Code
  3. Trigger any Claude Code command (e.g. claude-vscode.editor.openLast)

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.126

Claude Code Version

2.1.129

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

Environment

  • OS: Windows 11 Home 10.0.26200
  • VS Code extension: anthropic.claude-code-2.1.129-win32-x64
  • Claude CLI: 2.1.129

Workaround

Downgrade the VS Code extension to 2.1.126 via "Install Another Version..." in the Extensions panel. The CLI version can
remain at 2.1.129.

View original on GitHub ↗

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