Agent chat history gone

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I can’t access the agent chat history. The history button is not there, and if I search for a chat I had yesterday it doesn’t show up.

I need help accessing past conversations, what can I do?

Steps to Reproduce

Have a chat with an agent, close the IDE, open it up, the chats are gone.

Expected Behavior

I expected to have a chat history where I could resume sessions I had before.

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.40 (user setup)
VSCode Version: 1.105.1
Commit: 230922a103262db3487b753c8d1e0a7111c2d780
Date: 2026-01-16T04:42:17.525Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.19045

Additional Information

I’m using Ubuntu 24.04.1 LTS on WSL2 Windows 10.

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, try clicking F1 and searching for “Show chat history” in the command bar. Then check whether the history shows up.

You can also try writing chat:in a command bar:

If not, try to export it with SpecStory - Visual Studio Marketplace

Hey, this is a known issue with saving chat history in WSL, and the team is aware.

@Ra.in shared good tips above. Try F1 > “Show Chat History” or type chat: in the Command Palette.

Also, can you confirm:

  • Are you launching Cursor on Windows and connecting to WSL, or did you install it directly in Ubuntu?
  • Do you have any files in %APPDATA%\Cursor\User\workspaceStorage (Windows) or ~/.cursor/ (WSL)?

That’ll help us narrow down your specific case.

Pressing F1 > “Show Chat History“ doesn’t do anything :confused:

On the “Agents“ tab I can see some of my most recent chats, but the ones that I had earlier are still not there.

I’m launching Cursor from Windows and connecting to WSL.
I do have files in %APPDATA%\Cursor\User\workspaceStorage. 3 folders with state.vscdb, state.vscdb.backup and workspace.json. One of the folders also have another folder called `anysphere.cursor-retrieval` with embeddable_files and high_level_folder_description.

One thing that might be important that I found out is that Cursor auto-updated on my second day of usage, and the lost chats were all made on my first day. Chats made after the update are still here.

Thanks for sending the extra info.

The issue is that when Cursor updates, it migrates chat data to a new format. If something goes wrong during that process, like not enough disk space or a migration error, the data can get lost. Chats created after the update still work because they’re already in the new format.

Let’s try to recover them:

Check the backup file:

  • Go to %APPDATA%\Cursor\User\globalStorage\ (Windows)
  • Find state.vscdb.backup
  • Check the modified date. If it’s close to the day you had those chats, it might still contain the data
  • Fully close Cursor
  • Copy state.vscdb somewhere safe first, in case it has newer chats you want to keep
  • Rename state.vscdb.backup to state.vscdb
  • Open Cursor and check

If the backup is empty or missing, sadly it’s most likely not possible to get those chats back. The team knows about this WSL issue and data migrations during updates, but there’s no fix yet.

For next time:

  • Keep an eye on free disk space. This is a common cause of data loss during updates
  • You can install SpecStory. It lets you export chats

Let me know if the backup helped. Also tell me if you want help recovering chats from the DB, I can help.