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
This is happened several times. your Curson extension should be more robust.
Found 2 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/3080
- 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
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.
- run
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). - run
npm cache clean --force(to ensure npm pulls the latest build of claude-code) - run
sudo npm install -g @anthropic-ai/claude-code - 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.