Doesn't start extension in Cursor when cant find historic session.

Resolved 💬 67 comments Opened Nov 26, 2025 by georgebrunner 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?

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_

View original on GitHub ↗

67 Comments

georgebrunner · 7 months ago

This is happened several times. your Curson extension should be more robust.

github-actions[bot] · 7 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3080
  2. https://github.com/anthropics/claude-code/issues/11236

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

georgebrunner · 7 months ago

Don't cancel my issue
It is recurring and a frustrating

a3894281 · 7 months ago

Me too.

pprogg · 7 months ago

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

wdawfsef · 7 months ago

Me too.

Wylabb · 7 months ago

me too

rajat43 · 7 months ago

me too

kingdom84521 · 6 months ago

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.

  1. run npm uninstall -g @anthropic-ai/claude-code or sudo rm -rf "$(npm config get prefix)/lib/node_modules/@anthropic-ai/claude-code" (to make sure it's removed).
  2. run npm cache clean --force (to ensure npm pulls the latest build of claude-code)
  3. run sudo npm install -g @anthropic-ai/claude-code
  4. check if available through claude --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" --version

Notice: 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.

github-actions[bot] · 5 months ago

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.

onattech · 5 months ago

I got this issue after upgrading cursor to 2.4.14. I had to roll back my system to make it work again.

victorzhu30 · 5 months ago

me too

hy522 · 5 months ago

same issue, On remote machine claude in terminal works fine but vscode extension not(command 'claude-vscode.editor.openLast' not found).

capritora · 5 months ago

same here :(((

hrshtv · 5 months ago

Facing the same

nMusacchio · 4 months ago

+1. Already update claude and vscode

rlorenzo · 4 months ago

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.

sugaxx1 · 4 months ago

Got the same issue...

CPR03 · 4 months ago

I also just the same issue "claude-vscode.editor.openLast is not found" on version 2.1.51

pawmanaloto · 4 months ago

Got the same issue with the latest release (v2.1.51)

ctetro · 4 months ago

Having the same issue

BetrC · 4 months ago

Got the same issue in vs code(Version 2.1.51)
Downgrade to version:2.1.49 works for me.

tmilanov · 4 months ago

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.

clhereistian · 4 months ago

Same recurrent issue with VS Code.

omdathetkan · 4 months ago

Also had to downgrade to 2.1.49

TakemotoTakahiko · 4 months ago

私も全く同じ症状が発生しました。コメントにある通り、vscodeでclaudecodeエクステンションのバージョンを固定して2.1.49をインストールしなおしたところ回復しました。いくつかのスレッドでは長文のjsonlが問題視されていましたが、今回のケースではそれは無関係のようでした。

linliyuan · 4 months ago

Got the same issue...

ytzry · 4 months ago

Me too.

Swiftnc · 4 months ago

Also had to downgrade to 2.1.49

lchaoer · 4 months ago

+1, the 2.1.51 extension has issue, dowgrade to 2.1.49 and works

Marcelobarreira · 4 months ago

i have the same error

fishool · 4 months ago

i have the same error too

beyagency · 4 months ago

same 👎

OddMerchantStudios · 4 months ago

Downgrade to 2.1.49 worked

AneeshNadgouda · 4 months ago

Downgrade to 2.1.49 fixed it

beyagency · 4 months ago
Downgrade to 2.1.49 worked

thanks!

vanhieuhp · 4 months ago

thank you, it works!

Downgrade to 2.1.49 fixed it
KhanhBui02 · 4 months ago
Downgrade to 2.1.49 worked

thank you, it works!

SirGinshi · 4 months ago
2.1.49

thank you!

bgoulet777 · 4 months ago
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 2.1.479 version fixed the issue.
keccakdog · 4 months ago

just got this issue right now, seems many others did too lol

deathgod8885-cloud · 4 months ago

降级了到2.1.49,但是问题依旧

BenAttanasio · 4 months ago
Also had to downgrade to 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.

Issac250 · 4 months ago
> Also had to downgrade to 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.

moonsanglee · 4 months ago
Downgrade to 2.1.49 worked

Thanks!

Ibrahemdh7 · 4 months ago
Downgrade to 2.1.49 worked

Thank You it's Worked

zhimin-z · 4 months ago

any update?

anphex · 4 months ago

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.

rayyanlakhani · 4 months ago
Downgrade to 2.1.49 worked

Thank you

ga7188 · 4 months ago

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

jesu-ship-it · 4 months ago

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.

hanker0x · 4 months ago

F*** Just got the same issue, downgraded work like a charm for Visual Code!

Letsamsiyu · 4 months ago

Got the same error (command 'claude-vscode.editor.openLast' not found) on VSCode for Windows. Downgrading on 2.1.49 fixed it.

Jatinvaish · 4 months ago
F*** Just got the same issue, downgraded work like a charm for Visual Code!

Yes its working now after downgrade

ninew0000 · 4 months ago

2.1.49 works

deathgod8885-cloud · 4 months ago
降级了到2.1.49,但是问题依旧

我理解错了,我以为是降级claude code的版本,没想到是降级claude code 插件的版本

bodstersll · 4 months ago

claude code和claude code 插件同时升级到2.1.52也可以了

chincherpa · 4 months ago

new Version 2.1.52 works now

shawnm-anthropic · 4 months ago

Hi, sorry about the disruption. We just published v2.1.52 which should hopefully work better.

capritora · 4 months ago

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

Sadiqur057 · 4 months ago

upgrade to latest version v2.1.52 and the issue will be solved

indrabagus · 4 months ago

upgrade to 2.1.53, this command 'claude-vscode.editor.openLast' not found still exists

briandean03 · 4 months ago

Is v2.1.55 also not working for anyone right now?

Meerav29 · 4 months ago

Can confirm - downgrading v2.1.52 fixes the "command 'claude-vscode.editor.openLast' not found" error.
v2.1.55 was not working in VSCode.

shahabafshar · 4 months ago

maybe test on a few machines next time before releasing an update to the users?

xXonartjuhXx · 4 months ago

Same here!

github-actions[bot] · 4 months 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.