[BUG] VS Code Extension v2.1.129 fails to activate on Windows: 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 Claude Code VS Code extension v2.1.129 (win32-x64) fails to activate on Windows. All claude-vscode.* commands report "command not found". The extension was auto-updated this morning and has been broken since.
Root Cause:
A hardcoded Linux CI build path (file:///home/runner/work/...) is baked into extension.js (line 102). This path is invalid on Windows and causes a TypeError during activation.
Environment:
- OS: Windows 11
- VS Code: latest
- Extension:
anthropic.claude-code-2.1.129-win32-x64
What Should Happen?
Expected: Extension activates and panel opens
Actual: Extension fails to activate; all claude-vscode.* commands report "not found"
Error Messages/Logs
2026-05-06 06:36:50.939 [info] ExtensionService#_doActivateExtension Anthropic.claude-code, startup: false, activationEvent: 'onWebviewPanel:claudeVSCodePanel'
2026-05-06 06:36:51.208 [error] Activating extension Anthropic.claude-code failed due to an error:
2026-05-06 06:36:51.208 [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\...\anthropic.claude-code-2.1.129-win32-x64\extension.js:102:5407)
Steps to Reproduce
Steps to Reproduce:
- Auto-update or install Claude Code VS Code extension v2.1.129 on Windows
- Open any workspace in VS Code
- Click the Claude Code icon in the activity bar
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.128
Claude Code Version
2.1.129 Claude Code VS Code extension
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗