[BUG] Extension v2.1.129 fails to activate on Windows — Linux CI path baked into bundle

Resolved 💬 3 comments Opened May 6, 2026 by mysnubfighter 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?

Environment:

OS: Windows (win32-x64)
VS Code: latest
Claude Code CLI: 2.1.129 (npm-global)
Extension: anthropic.claude-code 2.1.129-win32-x64
Node runtime: Electron-bundled (VS Code extension host)

A Linux CI runner path (/home/runner/work/claude-cli-internal/...) is hardcoded into the bundled extension.js and passed to createRequire(). On Windows this rejects because it's not a valid Windows file URL or absolute path. The Windows build appears to have inherited a path resolved at build time on the Linux CI runner instead of being computed at runtime relative to the extension directory.

Workaround:
Roll back to 2.1.121 — activates normally.

Suggested fix:
Compute the SDK path relative to __dirname / __filename at runtime, or use pathToFileURL(path.join(__dirname, ...)) in the bundler config so the URL is generated from the install location rather than the build location.

What Should Happen?

claude activates

Error Messages/Logs

Symptom:
Extension hangs in "Activating..." state indefinitely in the Running Extensions tab. No commands register (e.g., claude-vscode.editor.openLast returns "command not found"). No IDE lock file is created in ~/.claude/ide/. Reinstalling, rebooting, and clearing extension state had no effect.
Root cause (from Extension Host log):
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\nate\.vscode\extensions\anthropic.claude-code-2.1.129-win32-x64\extension.js:102:5407)

Steps to Reproduce

use latest claude version Claude Code CLI: 2.1.129 (npm-global)

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.121

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 ↗