[BUG] Extension activation fils on Windows: hardcode Linux build in sdk.mjs

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

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

  1. Install Claude Code extension (v2.1.129) on Windows 11
  2. Open VS Code
  3. Press Ctrl+Shift+P and run any Claude Code command
  4. Error popup appears: "command not found"
  5. Open Help > Toggle Developer Tools > Console tab
  6. 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗