Chat history folder

Hi all, where is the chat history stored?
I love Cursor but I just changed PC, while working on a same project, same folder but chat history is gone.

Thanks!

6 Likes

Hi @rudeevelops ,

Hopefully someone can give you a more satisfying/useful answer, but in previous posts on the topic of exporting chat history, I have seen this post referred to, which refers to a location where chat history is saved:

In response to that post, one user asked if there was a way to move data from one computer to another but hasn’t received a response yet:

Another user has put up a GitHub Repo that has this explanation:

Cursor’s chat history is stored in sqlite3 databases using state.vscdb files. One such file is for one workspace. All the chats for a workspace are saved here in so called tabs , one tab means a single chat.

Their post announcing the repo is here:

For reference, the Cursor team have noted the ‘export chat history’ feature request:

5 Likes

Thanks a lot!
Would be great if a centralized/synced approach based on user account is implemented so Cursor usage is not dependent on a local workstation.
Are you aware if core team are working on anything similar?

1 Like

I made a cursor chat log browser which lets you browse and download your logs.
cursor-chat-browser on github…

Hi @rudeevelops

This SpecStory Cursor Extension lets you view and save your Chat & Composer history as Markdown, or get a URL so you can share the log with someone else.

(I made this alongside a small team — SpecStory. We just launched today in Showcase!)

I really like your idea about a centralized / synced approach. We’re working on authentication, so we can eventually tackle that!

1 Like

A useless extension does not work at all Failed to read workspace storage:

I’ve just installed your extension. Had to move the project folder which is a nuisance. One thing to improve is to be able to prefix the .specstory history folders per developer, otherwise I have to .gitignore it.

Hey @CK-iRonin.IT, what would you like to prefix .specstory with? Can you open an issue GitHub - specstoryai/getspecstory: Install our VSCode extension for Cursor. File issues and requests.?

I just had Cursor write a chat history exporter in .md format here:

Specstory just saved me form loosing all the chat history in open Cursor instances after upgrading to 0.48.x today - I’m not the only one Lost entire chat history with 0.48.4 update - #7 by CK-iRonin.IT

1 Like

Glad to hear it!

Is there a version of this for macOS?

Hey, this extension works on macOS!

I created gist with scripts to extract the history on a markdown file. Either use python on git bash or wsl to extract from the folder of dbs:

1 Like

Thank you for mentioning. This is great…