[BUG] [Windows] VS Code extension v2.1.129 fails to activate - hardcoded Linux CI path in extension.js
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 VS Code extension (anthropic.claude-code v2.1.129) fails to activate on Windows 11. When trying to open Claude Code, the command 'claude-vscode.terminal.open' is not found.
The exthost log shows 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'
This causes the extension to fail to activate entirely.
What Should Happen?
The extension should activate successfully on Windows 11 without any errors, and the command 'claude-vscode.terminal.open' should be available to open Claude Code.
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'
This error originates from extension.js line 102:
var y20 = Ai.createRequire("file:///home/runner/work/claude-cli-internal/...")
Subsequent error:
command 'claude-vscode.terminal.open' not found
Steps to Reproduce
- Install the VS Code extension anthropic.claude-code v2.1.129 on Windows 11.
- Open VS Code.
- 3. Attempt to open Claude Code via the command palette or the Claude Code button.
- 4. The extension fails to activate and the command 'claude-vscode.terminal.open' is not found.
- 5. Check the exthost log and observe the TypeError about the hardcoded Linux CI path.
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
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Root Cause:
In extension.js line 102, a Linux CI build path is hardcoded:var y20 = Ai.createRequire("file:///home/runner/work/claude-cli-internal/...")
Windows Node.js rejects this as an invalid file URL (requires a drive letter like file:///C:/...). Note: y20 is defined but never used — this appears to be dead code from the build process.
Workaround:
Replacing the hardcoded Linux file URL with a valid Windows file URL in extension.js resolves the issue.
Please fix the build pipeline to prevent this CI path from being embedded in production releases.
This is a recurring regression that has affected multiple versions (v2.1.51, v2.1.53, v2.1.55, and now v2.1.129).
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗