[BUG] VS Code extension v2.1.51 fails to activate on Windows (hardcoded CI path in extension.js)

Resolved 💬 2 comments Opened Feb 24, 2026 by ucuc Closed Feb 24, 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?

VS Code extension fails to activate on Windows. Clicking the Claude Code icon in the editor title bar shows: "command 'claude-vscode.editor.openLast' not found"

Root cause: extension.js contains a hardcoded GitHub Actions runner path passed to module.createRequire(), which fails on Windows:

var eG = require("node:module")
var H1 = eG.createRequire(
"file:///home/runner/work/claude-cli-internal/claude-cli-internal/build-agent-sdk/sdk.mjs"
)

What Should Happen?

Extension activates successfully and Claude Code panel opens.

Error Messages/Logs

[error] Activating extension Anthropic.claude-code failed due to an 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:45:4602)
* from %APPDATA%\Code\logs\<timestamp>\window1\exthost\exthost.log

Steps to Reproduce

  1. Install Claude Code VS Code extension v2.1.51 on Windows
  2. Open VS Code
  3. Click the Claude Code icon in the editor title bar

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.49

Claude Code Version

2.1.51

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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