Change project folder name without losing chats

Hi,

I was wondering if there’s a way to change the root folder name but retain all the Cursor chats associated to it.

I noticed that the chats are associated to the folder name. Moreover, if you delete a folder and in the future create a new one with the same name and path, Cursor will show the previous chats associated with that folder/path.

Is there some dot file somewhere that I can edit to customize this?

Thanks

2 Likes

I’ve seen a few posts about the workspaceStorage folder which allegedly contains all the chat data, but I can’t seem to change the path of any workspace…

I found a solution: How to move a Visual Studio Code workspace to a new location painlessly? - Stack Overflow

Bless this man.

5 Likes

I created a script that allows you to restore your chat history when the folder name is changed. You can try it.

https://github.com/SeLoRe/update_cursor_workspace_path

4 Likes

@SeLoRe This is amazing, thank you!

@SeLoRe thanks for this. It worked well for me today with latest Cursor version on a project on a Windows filesystem. Cursor should really have this as a native feature! Project folders get renamed all the time, especially as insight progresses at the speed of AI :person_running:

1 Like