claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

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

Open georgebrunner opened this issue 2 months ago • 9 comments

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

georgebrunner avatar Nov 26 '25 04:11 georgebrunner

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

georgebrunner avatar Nov 26 '25 04:11 georgebrunner

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

github-actions[bot] avatar Nov 26 '25 04:11 github-actions[bot]

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

georgebrunner avatar Nov 26 '25 04:11 georgebrunner

Me too.

a3894281 avatar Nov 27 '25 10:11 a3894281

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

pprogg avatar Dec 15 '25 07:12 pprogg

Me too.

wdawfsef avatar Dec 15 '25 08:12 wdawfsef

me too

Wylabb avatar Dec 15 '25 22:12 Wylabb

me too

rajat43 avatar Dec 18 '25 09:12 rajat43

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.

kingdom84521 avatar Dec 20 '25 10:12 kingdom84521