Chats vanish after closing and reopening cursor

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I close and reopen my cursor (in the same workspace, two repos that have the same parent directory), my chat history is empty as if I just freshly installed the app.

Steps to Reproduce

Create a chat thread
Once the chat is complete, wait a min or two
Close Cursor
Reopen cursor

Expected Behavior

The chats should persist in my chat history

Operating System

Linux

Version Information

Version: 3.1.15
VSCode Version: 1.105.1
Commit: 3a67af7b780e0bfc8d32aefa96b8ff1cb8817f80
Date: 2026-04-15T01:46:06.515Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Linux x64 6.19.12-200.fc43.x86_64

For AI issues: which model did you use?

Opus 4.7 + Codex 5.4

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, this is a known issue. A few threads on the same topic:

In short, chat data is saved to disk, but after a restart the UI may not load it. Your case with two repos in the same parent directory makes this more likely, because the workspace ID can change between sessions in a multi-root setup.

As a workaround, try saving a .code-workspace file via File > Save Workspace As and always open the workspace through it. This pins the workspace ID and lowers the chance of losing history.

The team is aware of the issue. Your report helps with prioritization, and it’s especially useful that you described a specific multi-root scenario.

Let me know if the workaround helps.