[BUG] Extension activation fils on Windows: hardcode Linux build in sdk.mjs
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 fails to activate on Windows.
All commands (sidebar.open, showLogs, etc.) result in "command not found" errors.
Error from Developer Console:
Activating extension 'Anthropic.claude-code' failed:
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'.
What Should Happen?
The extension should activate successfully and all Claude Code commands
(Open in Side Bar, Show Logs, etc.) should be available and functional.
Error Messages/Logs
command 'claude-vscode.sidebar.open' not found
command 'claude-vscode.showLogs' not found
command 'claude-vscode.editor.openLast' not found
Activating extension 'Anthropic.claude-code' failed:
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'.
Steps to Reproduce
- Install Claude Code extension (v2.1.129) on Windows 11
- Open VS Code
- Press Ctrl+Shift+P and run any Claude Code command
- Error popup appears: "command not found"
- Open Help > Toggle Developer Tools > Console tab
- See activation failure error with hardcoded Linux path
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.33(claude code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
The extension bundle appears to contain a hardcoded Linux CI build path
('/home/runner/work/...') instead of a relative path to sdk.mjs.
This path does not exist on Windows, causing silent activation failure.
Workaround: using 'claude' command directly in terminal.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗