Doesn't start extension in Cursor when cant find historic session.
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?
Bug: Extension crashes on startup with "command 'claude-vscode.editor.openLast' not found"
The extension fails to load when it can't find a previous session. Instead of gracefully handling this, it throws an unrecoverable error.
Expected behavior: If session restore fails, prompt "Previous session not found. Start fresh?" and continue normally.
Actual behavior: Extension is completely broken. User must manually delete globalStorage folder and reinstall.
Fix required: Delete %APPDATA%\Cursor\User\globalStorage\anthropic.claude-code and reinstall extension.
Environment: Claude Code 2.0.53, Cursor editor, Windows
This is a basic error handling failure. The extension should never hard-fail because of missing local state.
What Should Happen?
Claude Code should start
Error Messages/Logs
Bug: Extension crashes on startup with "command 'claude-vscode.editor.openLast' not found"
The extension fails to load when it can't find a previous session. Instead of gracefully handling this, it throws an unrecoverable error.
Expected behavior: If session restore fails, prompt "Previous session not found. Start fresh?" and continue normally.
Actual behavior: Extension is completely broken. User must manually delete globalStorage folder and reinstall.
Fix required: Delete %APPDATA%\Cursor\User\globalStorage\anthropic.claude-code and reinstall extension.
Environment: Claude Code 2.0.53, Cursor editor, Windows
This is a basic error handling failure. The extension should never hard-fail because of missing local state.
Steps to Reproduce
Try starting Claude Code. It refuses to start. Have to perform full uninstall..BULLSHIT!!
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
IDK should be latest
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
67 Comments
This is happened several times. your Curson extension should be more robust.
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Don't cancel my issue
It is recurring and a frustrating
Me too.
command 'claude-vscode.editor.openLast' not found
Me too.
me too
me too
A quick workaround that resolved this issue for me was to manually uninstall & reinstall the "claude-code" core package which is maintained by npm under node_modules.
npm uninstall -g @anthropic-ai/claude-codeorsudo rm -rf "$(npm config get prefix)/lib/node_modules/@anthropic-ai/claude-code"(to make sure it's removed).npm cache clean --force(to ensure npm pulls the latest build of claude-code)sudo npm install -g @anthropic-ai/claude-codeclaude --version. If you have a native Claude CLI installation (e.g., via standalone installer), you may need to run the npm-installed binary directly to confirm:"$(npm config get prefix)/bin/claude" --versionNotice: Although this might fix the issue, this is still a workaround — we are still waiting for the core maintainers or developers of Claude Code to respond to this issue.
Please do not close this issue. This is a serious problem affecting multiple users. We would appreciate it if you could immediately investigate the root cause, or at the very least, acknowledge this issue and keep us updated on the progress. Thank you.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
I got this issue after upgrading cursor to 2.4.14. I had to roll back my system to make it work again.
me too
same issue, On remote machine claude in terminal works fine but vscode extension not(command 'claude-vscode.editor.openLast' not found).
same here :(((
Facing the same
+1. Already update claude and vscode
I just got hit by this bug in VS Code with plugin version 2.1.51. I tried uninstalling, restarting VS Code, and reinstalling the plugin.
Got the same issue...
I also just the same issue "claude-vscode.editor.openLast is not found" on version 2.1.51
Got the same issue with the latest release (v2.1.51)
Having the same issue
Got the same issue in vs code(Version 2.1.51)
Downgrade to version:2.1.49 works for me.
I got to this thread by searching for the issue I got on vscode.
I was able to start it by installing the previous version of claude code, hope this helps someone for the time being.
Same recurrent issue with VS Code.
Also had to downgrade to 2.1.49
私も全く同じ症状が発生しました。コメントにある通り、vscodeでclaudecodeエクステンションのバージョンを固定して2.1.49をインストールしなおしたところ回復しました。いくつかのスレッドでは長文のjsonlが問題視されていましたが、今回のケースではそれは無関係のようでした。
Got the same issue...
Me too.
Also had to downgrade to 2.1.49
+1, the 2.1.51 extension has issue, dowgrade to 2.1.49 and works
i have the same error
i have the same error too
same 👎
Downgrade to 2.1.49 worked
Downgrade to 2.1.49 fixed it
thanks!
thank you, it works!
thank you, it works!
thank you!
just got this issue right now, seems many others did too lol
降级了到2.1.49,但是问题依旧
Thanks, fixed it for me. In VS Code go to Extensions -> hit the gear icon next to Claude Code -> Install a Specific Version -> 2.1.49 -> Restart Extensions.
This works for me. Downgrade the extension version instead of claude code version.
Thanks!
Thank You it's Worked
any update?
Has this bug really beend around for 2 months now? Really? I just bougt claude max 20 and then ran into this issue. Can't access Claude Code. Top tier extension.
Thank you
Go to VS Code Extentions => Claude Code for VS Code => Setting = >Install Specific Version => 2.1.49
Disable Auto Update for a while until they release next stable version
Experiencing the same issue on VS Code (not Cursor) — Windows
Environment:
Claude Code Extension: v2.1.51
VS Code: Latest version (fresh reinstall)
OS: Windows 11
CLI: claude --version → 2.1.51 (Claude Code)
What I tried:
✅ Reloaded VS Code window
✅ Disabled and re-enabled extension
✅ Full uninstall and reinstall of VS Code + extension
✅ Installed Claude Code CLI globally via npm install -g @anthropic-ai/claude-code
✅ Checked globalStorage — anthropic.claude-code folder never gets created even after fresh install
✅ Trusted the project folder via claude in terminal
Result: Error persists when clicking the Claude icon in VS Code. The globalStorage folder for the extension never gets created, so the session restore fails every time on startup.
F*** Just got the same issue, downgraded work like a charm for Visual Code!
Got the same error (command 'claude-vscode.editor.openLast' not found) on VSCode for Windows. Downgrading on 2.1.49 fixed it.
Yes its working now after downgrade
2.1.49 works
我理解错了,我以为是降级claude code的版本,没想到是降级claude code 插件的版本
claude code和claude code 插件同时升级到2.1.52也可以了
new Version 2.1.52 works now
Hi, sorry about the disruption. We just published v2.1.52 which should hopefully work better.
Hello,
On my end, the issue was related to the size of conversations stored as JSONL files in the folder:
C:\Users\[username]\.claude\projects\[your-project-directory]You simply need to delete the files that are too large... and that resolves the issue.
Chris
upgrade to latest version v2.1.52 and the issue will be solved
upgrade to 2.1.53, this command 'claude-vscode.editor.openLast' not found still exists
Is v2.1.55 also not working for anyone right now?
Can confirm - downgrading v2.1.52 fixes the "command 'claude-vscode.editor.openLast' not found" error.
v2.1.55 was not working in VSCode.
maybe test on a few machines next time before releasing an update to the users?
Same here!
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.