Extension fails to activate on Windows — hardcoded Linux path in 2.1.129

Resolved 💬 3 comments Opened May 6, 2026 by Gunjan2619 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) fails to activate on Windows with the following error in the Extension Host log:

2026-05-06 11:50:19.719 [error] Activating extension Anthropic.claude-code failed due to an 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\gunjan\.vscode\extensions\anthropic.claude-code-2.1.129-win32-x64\extension.js:102:5407)

Root Cause:

The extension bundle (extension.js) contains a hardcoded Linux CI build path (/home/runner/work/claude-cli-internal/...) that does not exist on Windows. This causes Module.createRequire to throw a
TypeError during activation, preventing all extension commands from registering — including claude-vscode.editor.openLast.

Steps to Reproduce:

  1. Install Claude Code extension version 2.1.129 on Windows
  2. Open any VS Code workspace
  3. Try to use any Claude Code command (e.g. open last conversation)
  4. Observe: command 'claude-vscode.editor.openLast' not found
  5. Check Developer → Show Logs → Extension Host to see the activation error

Expected Behavior:

Extension activates successfully and all commands are registered.

Actual Behavior:

Extension fails to activate silently. All commands return "not found". No visible error to the user — only discoverable via Extension Host logs.

Environment:

  • OS: Windows 10 Pro (10.0.19045), x64
  • VS Code: 1.118.1
  • Extension: anthropic.claude-code 2.1.129 (win32-x64)
  • Released: ~4 hours before this report

What Should Happen?

The latest version should work on windows all versions

Error Messages/Logs

Steps to Reproduce

no

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.129 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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