VS Code extension v2.1.129: command 'claude-vscode.editor.openLast' not found on Windows

Resolved 💬 21 comments Opened May 6, 2026 by hardikd-ajmerainfotech Closed May 6, 2026
💡 Likely answer: A maintainer (claude[bot], contributor) responded on this thread — see the highlighted reply below.

Description

Clicking the Claude Code button in the VS Code sidebar produces the error:

command 'claude-vscode.editor.openLast' not found

The extension appears to fail to activate properly on Windows, making the VS Code UI unusable.

Environment

| Field | Value |
|-------|-------|
| Claude Code Extension | v2.1.129 (anthropic.claude-code) |
| VS Code | 1.118.1 (user setup) |
| Commit | 034f571df509819cc10b0c8129f66ef77a542f0e |
| Electron | 39.8.8 |
| OS | Windows 11 (Windows_NT x64 10.0.26200) |

Steps to Reproduce

  1. Install Claude Code extension v2.1.129 on VS Code 1.118.1 (Windows 11)
  2. Click the Claude Code icon/button in the VS Code sidebar or activity bar

Expected Behavior

Claude Code panel opens in VS Code.

Actual Behavior

Error notification appears:

command 'claude-vscode.editor.openLast' not found

Additional Notes

  • This error was previously reported for v2.1.51 (issues #28053, #28060, #28081) and is apparently still present or has regressed in v2.1.129
  • The CLI (claude in terminal) works fine — only the VS Code extension UI button is broken
  • Extension was updated 21 minutes before the error was observed (auto-update may have introduced the regression)

View original on GitHub ↗

21 Comments

danendral · 2 months ago

I encounter exactly the same issue on Claude v2.1.129. Works normally when I downgraded to 2.1.128. Im using Windows 11, VS Code 1.118.1

leonardassist · 2 months ago

downgrading to 2.1.128 resolves the issue.

hamza2026 · 2 months ago

@danendral @leonardassist How I will downgrade the claude from v2.1.129 to v2.1.128

Zack-Chong · 2 months ago

Hi @hamza2026, u can go to extension icon at the left sidebar and find claude code, then click on the drop down of uninstall button there and select install specific version, you can find the v2.1.128 there.

edwardkao6413 · 2 months ago

But you can't use your plugin if you downgrade to lower version. That's another annoying points

CStechgeek · 2 months ago

same issue bro. tired

danendral · 2 months ago

@edwardkao6413 Seems like I can still use my plugin in lower version v2.1.128?

I've disabled the auto update feature due to this issue.

edwardkao6413 · 2 months ago

@danendral What's your Claude code version ? I can still use my plugin in Terminal mode, but not in vscode chat mode.
Mine Claude code is v2.1.129, but extension is v2.1.128.

pixelbrain3d · 2 months ago

Same.

KevinllBin · 2 months ago

Same.why does Anthropic keep making the same mistakes?

haukino · 2 months ago

Downgrading to v2.1.128 fixed it for me.

ym-peach · 2 months ago

我使用ai对这个问题进行了分析修复,但是我不知道是否具有普遍性,不过我的这个bug确实已经好转,可以使用,目前没有发现有什么其他的问题

I used AI to analyze and fix this problem, but I don't know if it is universal. However, my bug has indeed improved and can be used, and no other issues have been found so far.

claude-code-v2.1.129-win-bug-report.md
claude-code-v2.1.129-win-bug-report-en.md

claude[bot] contributor · 2 months ago

This is a duplicate of #56501, which was fixed as of version 2.1.131.

hardikd-ajmerainfotech · 2 months ago

Thanks, it's working on version 2.1.131🎉

mikk73 · 2 months ago

Still broken in v2.1.136 on Windows 10.

Regression introduced between v2.1.133 and v2.1.136. Clicking the Claude Code sidebar button produces:
command 'claude-vscode.editor.openLast' not found

Rolling back to v2.1.133 restores functionality.

ozbrewer · 2 months ago

v2.1.136 still has this issue - rolled back to v2.1.135 on Win 11 and this version works.

markheath · 2 months ago

I've got this with 2.1.136 on Win 11 as well

Hicks59 · 2 months ago

Workaround for Windows users blocked by the createRequire polyfill bug (versions 2.1.135-136):

  1. Open the Claude Code extension page in VS Code
  2. Uncheck Auto Update
  3. Next to Uninstall, click the dropdown arrow → Install Specific Version
  4. Select 2.1.133
  5. Reload window

Extension activates normally again. Tested on Windows 11.

Error seen in DevTools console before downgrade:

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'
Sawtaytoes · 2 months ago

It was working for me the last week.

Today, it stopped working when I opened up my 3rd VSCode window. It stopped working even after a restart. I waited a bit, and now it's working again!

lintriclogix-code · 2 months ago

I'm getting this with 2.1.138 on Win 11 as well, but uninstalling then reinstalling the extension seemed to work.

github-actions[bot] · 18 days ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.