[BUG]

Resolved 💬 3 comments Opened May 6, 2026 by JanoLorente 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 extension fails to activate on Windows with a TypeError caused by a hardcoded Linux path (file:///home/runner/work/claude-cli-internal/build-agent-sdk/sdk.mjs) that was embedded during the CI build process. This path is invalid on Windows, causing Node.js to reject it and making all claude-vscode.* commands unavailable (e.g. command 'claude-vscode.editor.openLast' not found).

What Should Happen?

The extension should activate correctly on Windows and all claude-vscode.* commands should be registered and functional.

Error Messages/Logs

[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/build-agent-sdk/sdk.mjs'
    at Module.createRequire (node:internal/modules/cjs/Loader:1922:13)
    at Object.<anonymous> (c:\Users\Jano\.vscode\extensions\anthropic.claude-code-2.1.129-win32-x64\extension.js:102:5407)
    at Module._compile (node:internal/modules/cjs/Loader:1713:14)

Extension version: 2.1.129 (12.793.150)
VS Code version: 1.118.1 (user setup)
OS: Windows

Steps to Reproduce

<img width="1550" height="943" alt="Image" src="https://github.com/user-attachments/assets/c28ed33a-e605-49bc-b184-07bbaeb872c1" />

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.129

Platform

Other

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 ↗