Can't load or click on chats

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I try to open my chat I can’t.

Steps to Reproduce

Try to open a chat but can’t.

Expected Behavior

Open the chat and history.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

2.3.35
cf8353edc265f5e46b798bfb276861d0bf3bf120
x64

Additional Information

Cursor version differs from cursor --version from Help → About as seen in my beautiful paint screen!

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This is a known issue after updating to versions 2.3.34+. Usually chat won’t load because the database is corrupted, but your data isn’t lost, it’s just not readable.

Try this workaround:

  1. Fully close Cursor (check Task Manager to make sure the process is stopped)
  2. Open %APPDATA%\Cursor\User\workspaceStorage
  3. Find the folder for your current project (each one has a workspace.json with the project path)
  4. Rename state.vscdb to state.vscdb.bak
  5. Start Cursor

This will delete the chat history for that project, but it should make chats open again.

If you need to recover the old history, there’s a more complex method using globalStorage. Details are here: Tutorial: How to Fix "Loading Chat" and Recover History (Cursor v2.3.x)

Let me know if it worked.

Hi Dean Rie,

Thanks for the update, appreciate it. I truely want to cry rn it’s ahrd to imagine i’ve lost it all…
There no corrupted file that’s why I find it really odd.

It didn’t worked. I can’t find corrupted file :frowning:

Looks like you checked the workspaceStorage folder, but .corrupted files are more often in a different folder, globalStorage.

Try this:

  1. Fully close Cursor (check in Task Manager)
  2. Open %APPDATA%\Cursor\User\globalStorage
  3. See if there are files like state.vscdb.corrupted.1767... (the number will be different)
  4. If yes, rename it to state.vscdb (you can temporarily move the old state.vscdb and state.vscdb.backup into a separate folder)

If there are no corrupted files in globalStorage either, send a screenshot of what’s inside both folders (workspaceStorage and globalStorage) and we’ll take a look.

Nothing in there, either in every folders no corrupted files…

You’re right, there are no .corrupted files.

In that case, the next thing to check is workspaceStorage. There are folders with different dates there (21/12, 26/12, 08/01, etc.). If the issue is only in one specific project, the data might be there:

  1. Open %APPDATA%\Cursor\User\workspaceStorage
  2. Find the folder for the project you need. Inside each one there’s a workspace.json with the path
  3. Check if there’s a state.vscdb.backup with an older date

If everything has recent dates and there are no backups, the data most likely wasn’t saved. This is a known issue in 2.3.34+ where, if the DB gets corrupted, the recovery files don’t get created correctly.

Can you also check Developer Tools Console and see what errors you get when you try to open the chat? At least we’ll know what exactly is breaking.

Thanks for the help.
Nothing happens, I tried the Recorder, Network but it’s like cursor do not register anything at all.

I don’t know if it’s related or not but now I have this error when I try to apply changes, I don’t want to lose all a second time haha. Failed to apply worktree to current branch: Unable to read file ‘###\scripts\deep_audit.py’ (Error: Unable to resolve nonexistent file ‘####\kyy\scripts\deep_audit.py’)

I just payed the 212 euros plan to help me but it starts to get a bit worrying :frowning:

Thanks for the extra info. If Developer Tools doesn’t show anything when you click on a chat, try this:

  • Open the chat panel
  • Press CMD+Shift+P, then choose Developer: Toggle Developer Tools
  • Go to the Console tab
  • Click any chat from your history
  • Send a screenshot of any errors (red messages) if they show up

About the worktree error (“Unable to read file”), that’s a separate bug. Can you share the full error text? It looks like the agent is trying to apply changes to a file that was deleted or renamed during the session.

when I click on the chat I want to open, and I insist on thanking you again for the help.
workbench.desktop.main.js:13003 [composer] No composer data handle found [handleDeselectingComposer]

handleDeselectingComposer @ workbench.desktop.main.js:13003
await in handleDeselectingComposer
(anonymous) @ workbench.desktop.main.js:52
Vdr @ workbench.desktop.main.js:52
hU @ workbench.desktop.main.js:52
n.value @ workbench.desktop.main.js:52
onChange @ workbench.desktop.main.js:12995
Fg.defer @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:122
Co @ workbench.desktop.main.js:122
(anonymous) @ workbench.desktop.main.js:122
yUa @ workbench.desktop.main.js:122
Trt @ workbench.desktop.main.js:122
TNt @ workbench.desktop.main.js:122
d4d @ workbench.desktop.main.js:122
(anonymous) @ workbench.desktop.main.js:122
Rj @ workbench.desktop.main.js:122
c4d @ workbench.desktop.main.js:122
Rj @ workbench.desktop.main.js:122
wR @ workbench.desktop.main.js:122
ie @ workbench.desktop.main.js:585
await in ie
consume @ workbench.desktop.main.js:50
(anonymous) @ workbench.desktop.main.js:50
queue @ workbench.desktop.main.js:50
onChange @ workbench.desktop.main.js:585
Fg.defer @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:122
Co @ workbench.desktop.main.js:122
(anonymous) @ workbench.desktop.main.js:122
yUa @ workbench.desktop.main.js:122
Trt @ workbench.desktop.main.js:122
TNt @ workbench.desktop.main.js:122
d4d @ workbench.desktop.main.js:122
(anonymous) @ workbench.desktop.main.js:122
Rj @ workbench.desktop.main.js:122
c4d @ workbench.desktop.main.js:122
Rj @ workbench.desktop.main.js:122
wR @ workbench.desktop.main.js:122
r @ workbench.desktop.main.js:122
openComposerImpl @ workbench.desktop.main.js:13003
await in openComposerImpl
openComposer @ workbench.desktop.main.js:13003
(anonymous) @ workbench.desktop.main.js:52
Vdr @ workbench.desktop.main.js:52
hU @ workbench.desktop.main.js:52
n.value @ workbench.desktop.main.js:52
openComposer @ workbench.desktop.main.js:12920
await in openComposer
h @ workbench.desktop.main.js:12886
onClick @ workbench.desktop.main.js:12886
ge @ workbench.desktop.main.js:12886
(anonymous) @ workbench.desktop.main.js:12886

I got the almost same problem, I pasted my console error here Tutorial: How to Fix "Loading Chat" and Recover History (Cursor v2.3.x) - #3 by David7 looking forward to any solution, thanks sooo much

Great, the No composer data handle found error is exactly what we needed to see. This is a known issue in 2.3.x, and the team is aware.

Since the usual fixes for corrupted files didn’t work, try this instead:

  1. Export your profile.
  2. Fully close Cursor (double-check in Task Manager).
  3. Open %APPDATA%\Cursor\User\globalStorage.
  4. Find state.vscdb and rename it to state.vscdb.old.
  5. Start Cursor.
  6. Go through the Cursor setup again and import your profile.

This should reset the global chat state.

About the worktree error (“Unable to read file”), that’s a separate bug. It happens when the agent tries to apply changes to a file that was deleted or renamed during the session. Usually it helps to start a new chat and avoid renaming or deleting files while the agent is working.

Let me know if the globalStorage workaround helped.

Also for you @David7

Sorry but I don’t get how to do that is cursor is closed. Can you explain please

Sorry for the confusion in my previous post. The order was wrong. You need to export the profile FIRST, while Cursor is still open.

This does not work, I’ve lost my new chat now I’m gonna cry I re-did everything yesterday after the loss this is non-sense… Can you help? Is there any way to retrieve the data?

Sorry but I’m getting a bit emotionnal to be honest.
workbench.desktop.main.js:13003 [composer] No composer data handle found [handleDeselectingComposer]

handleDeselectingComposer @ workbench.desktop.main.js:13003
await in handleDeselectingComposer
(anonymous) @ workbench.desktop.main.js:52
Vdr @ workbench.desktop.main.js:52
hU @ workbench.desktop.main.js:52
n.value @ workbench.desktop.main.js:52
onChange @ workbench.desktop.main.js:12995
Fg.defer @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:122
Co @ workbench.desktop.main.js:122
(anonymous) @ workbench.desktop.main.js:122
yUa @ workbench.desktop.main.js:122
Trt @ workbench.desktop.main.js:122
TNt @ workbench.desktop.main.js:122
d4d @ workbench.desktop.main.js:122
(anonymous) @ workbench.desktop.main.js:122
Rj @ workbench.desktop.main.js:122
c4d @ workbench.desktop.main.js:122
Rj @ workbench.desktop.main.js:122
wR @ workbench.desktop.main.js:122
ie @ workbench.desktop.main.js:585
await in ie
consume @ workbench.desktop.main.js:50
(anonymous) @ workbench.desktop.main.js:50
queue @ workbench.desktop.main.js:50
onChange @ workbench.desktop.main.js:585
Fg.defer @ workbench.desktop.main.js:452
(anonymous) @ workbench.desktop.main.js:122
Co @ workbench.desktop.main.js:122
(anonymous) @ workbench.desktop.main.js:122
yUa @ workbench.desktop.main.js:122
Trt @ workbench.desktop.main.js:122
TNt @ workbench.desktop.main.js:122
d4d @ workbench.desktop.main.js:122
(anonymous) @ workbench.desktop.main.js:122
Rj @ workbench.desktop.main.js:122
c4d @ workbench.desktop.main.js:122
Rj @ workbench.desktop.main.js:122
wR @ workbench.desktop.main.js:122
r @ workbench.desktop.main.js:122
openComposerImpl @ workbench.desktop.main.js:13003
await in openComposerImpl
openComposer @ workbench.desktop.main.js:13003
(anonymous) @ workbench.desktop.main.js:52
Vdr @ workbench.desktop.main.js:52
hU @ workbench.desktop.main.js:52
n.value @ workbench.desktop.main.js:52
openComposer @ workbench.desktop.main.js:12920
await in openComposer
h @ workbench.desktop.main.js:12886
onClick @ workbench.desktop.main.js:12886
ge @ workbench.desktop.main.js:12886
(anonymous) @ workbench.desktop.main.js:12886

Today my Cursor (on Windows) got stuck in white screen while loading, this workaround solved my case.

Although, I haven’t any .corrupted file even in \globalStorage.

PS: I lost my chat history, but I can deal with it.

I try but nothing changes, still same error… could i downgrade a lower version to fix it

Dean Rie really helped in in DM to retrieve the chats, a true goat.

1 Like