I just moved all my Cursor files from an old Windows 10 laptop to a new Windows 11 laptop. The folder paths and usernames are exactly the same. The weird part is that the separate Agents window shows all my old chats perfectly, but the actual IDE chat sidebar is completely blank and won’t load anything. How can this be?
Steps to Reproduce
Copy the %APPDATA%\Cursor and %USERPROFILE%\.cursor folders from an old Windows 10 PC to a new Windows 11 PC.
Move the project folders to the new PC, keeping the exact same usernames and folder paths.
Open Cursor on the new PC.
Open a project folder and try to open the standard IDE chat sidebar (Ctrl + L) or click “Show Chat History.”
Expected Behavior
The IDE chat sidebar should load and display the historical project chats transferred from the old computer, just like the standalone Agents window does.
Hey, thanks for the detailed report. Good news first: your chats are still there, and the Agents window confirms it. I’ll explain why the chat sidebar is empty and share two ways to restore it.
The IDE chat sidebar links history to a specific project folder using an internal ID. On Windows, that ID is calculated from the folder path and its creation time. The Agents window works differently. It scans the whole storage without relying on that ID, so it can still see everything. When you copy folders to a new machine, Windows gives them a new creation time, even if the path and username are identical. Cursor then calculates a new empty ID for the project, so the sidebar looks blank. This is not data loss and not something you misconfigured.
Before trying either option, back up %APPDATA%\Cursor\User\workspaceStorage\.
Option 1: restore the folders’ creation time (no DB edits, reversible)
On the old laptop, for each project folder, get the original value in PowerShell:
Reopen the project. The ID will be recalculated to the old one and the history should show up. Repeat for each project folder since they’ll have different values.
Option 2: relink workspace storage directly
Open the project in Cursor on the new PC once, so it creates a new workspace folder.
In %APPDATA%\Cursor\User\workspaceStorage\, find the old folder for that project. It will usually have a much larger state.vscdb with your history. You can confirm it’s the right project by checking workspace.json inside.
Copy the contents of the old folder into the new one created in step 1, replacing files.
Fully quit Cursor, then reopen it. The sidebar should load the history.
Both options work, so pick what’s easier. The one thing I’d avoid is manually editing or merging the global state.vscdb, it’s risky. In this thread Bug Report: The REASON why Cursor keeps losing our chats and agents - and how to fix it! there are also community scripts to automate it, but they do edit the database, so use them only at your own risk and only after a backup.
Hey, thanks for the detailed workaround, and I’m glad it worked.
You got it right, the chats didn’t disappear. The issue is that the same folder ends up with different workspace IDs. On Windows, that ID is calculated from the folder path and its creation time, so after moving to a new PC the folder gets a new creation time and Cursor creates a new empty workspace, while the old history stays in a separate workspaceStorage folder. The Agents window scans all folders without relying on that ID, so everything still shows up there.
Your approach of copying the contents of the old workspace directory into the new one works, and restoring the original folder CreationTime via PowerShell also works. The only thing to keep in mind is to back up %APPDATA%\Cursor\User\workspaceStorage\ before doing anything like this, which you did.
If another user runs into the same thing after a migration, your steps are a solid temporary fix. Thanks for writing it up.