Extension v2.1.129 fails to activate on Windows — hardcoded Linux build path

Resolved 💬 2 comments Opened May 6, 2026 by BoomShankar-lab 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 VS Code extension v2.1.129 fails to activate on Windows 11. Clicking the spark icon shows "command 'claude-vscode.editor.openLast' not found".

Extension Host log shows the activation 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 Object.<anonymous> (extension.js:102:5407)

Activation event: onCommand:claude-vscode.editor.openLast

The path is a hardcoded Linux CI build path that does not exist on Windows.

What Should Happen?

The extension should activate successfully on Windows and open the Claude Code panel when clicking the spark icon.

Error Messages/Logs

2026-05-06 12:20:13.067 [info] ExtensionService#_doActivateExtension Anthropic.claude-code, startup: false, activationEvent: 'onCommand:claude-vscode.editor.openLast'
2026-05-06 12:20:13.143 [error] Activating extension Anthropic.claude-code failed due to an error:
2026-05-06 12:20:13.143 [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 Object.<anonymous> (extension.js:102:5407)

Steps to Reproduce

  1. Install Claude Code VS Code extension v2.1.129 on Windows 11
  2. Open VS Code
  3. Click the Anthropic spark icon in the top right of the editor
  4. Error appears: "command 'claude-vscode.editor.openLast' not found"
  5. Check Developer: Show Logs > Extension Host to see the TypeError above

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.114

Claude Code Version

2.1.129 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Workaround: Downgrading to v2.1.114 resolves the issue immediately.

The hardcoded path 'file:///home/runner/work/claude-cli-internal/...' appears to be a Linux CI build artifact path that was accidentally bundled into the Windows release.

VS Code version: 1.118.1

View original on GitHub ↗

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