claude-code - 💡(How to fix) Fix [BUG] claude-code v2.1.136 (win32-x64) fails to activate — hardcoded Linux CI build path in extension bundle

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

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.136-win32-x64\extension.js:103:5579)

Root Cause

Root Cause Extension host log shows activation failing with: 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.136-win32-x64\extension.js:103:5579) A Linux CI runner path (/home/runner/work/...) was baked into the win32 extension bundle at build time. This path does not exist on Windows and causes createRequire to throw on extension load, preventing all command registration. Additional Notes

Fix Action

Fix / Workaround

Workaround: Roll back to v2.1.133 via "Install Another Version" and disable auto-update

Auto install/upgrade to .136

Code Example

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.136-win32-x64\extension.js:103:5579)
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Extension: anthropic.claude-code v2.1.136 Platform: Windows (win32-x64) VS Code Version: latest stable Symptoms

All claude-vscode.* commands fail with "command not found" Extension silently fails to register any commands Disable/re-enable and full VS Code restart have no effect

Root Cause Extension host log shows activation failing with: 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.136-win32-x64\extension.js:103:5579) A Linux CI runner path (/home/runner/work/...) was baked into the win32 extension bundle at build time. This path does not exist on Windows and causes createRequire to throw on extension load, preventing all command registration. Additional Notes

Workaround: Roll back to v2.1.133 via "Install Another Version" and disable auto-update

What Should Happen?

The VS Code extension should activate successfully on Windows, registering all commands (e.g. claude-vscode.editor.openLast) and functioning normally without any dependency on build-time CI runner paths.

Rolling back to .133 functions as expected.

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.136-win32-x64\extension.js:103:5579)

Steps to Reproduce

Auto install/upgrade to .136

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.133

Claude Code Version

4.7 but not relevant, no claude functions load.

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] claude-code v2.1.136 (win32-x64) fails to activate — hardcoded Linux CI build path in extension bundle