SOLVED - I renamed 3 project folder names and my composer and chat history is gone

Im on macos.

I think I still have the databases at Library/Application Support/Cursor/User/workspaceStorage

Is there anyway to relink them to the new project folders?

For whomever might have this problem:

The databases with your chats are likely still there. In macos: /Users/USER/Library/Application Support/Cursor/User/workspaceStorage

Close all folders and cursor. Ill make an example with just one folder.

You need to identify the databases from your old path which are esentially the workspace before you renamed the folder.

Then you need to identify the current paths of the current workspace. You can do that by checking the workspace.json path and double checking by deleting that folder. Cursor will re-create it with the same folder ID.

You need to copy the databases and the contents from the old folderID to the new one. Always check the workspace.json path to check if you’re moving the right things. After you done, you can delete the old folderID.

When you open cursor now, It will relink with the old databases and the history will appear. Its tedious, you have to be carefull but it works.

Hi, is it the same with a remote workspace? I was connected to my project that’s on a vps via ssh and I’m in the same situation where my chat and composer history disappeared. But I do have the workspace folder intact still on my server.

I have the same issue. Working on a SSH remote server and after a restart, lost all of my composer and chat history.

you should be able to locate by search for *.vscdb

Also – if anyone is interesed, “Everything Search” can be integrated into an MCP. I have an idea around this but havent gotten into it yet - but having an MCP search to point an agent at that can then read code and preview within…

Same happened to me. I found all the history related files still on my server including all the checkpoint files but couldn’t find information on how to re-link it to Cursor. Have you managed to restore it?