If a project in Cursor freezes due to long assistant chats or overloaded memory, you can safely reset its workspace data without affecting your code.
This guide helps you:
- π Locate the Cursor workspace folder tied to your project
- π§Ό Delete just that folder to remove chat history and context
- β Reopen the project cleanly in Cursor
cd ~/Library/Application\ Support/cursor/User/workspaceStorage/Replace your-folder-name with the actual folder name of your project (e.g. c1a1, sales-tool-server, etc.)
grep -r "your-folder-name" ~/Library/Application\ Support/cursor/User/workspaceStorage/*/workspace.jsonβ This will return a path like:
/Users/your-name/Library/Application Support/cursor/User/workspaceStorage/<workspace-id>/workspace.json: "folder": "file:///Users/your-name/repos/your-folder-name"Copy the "workspace-id" from that result.
This deletes only the Cursor session data for that project. Your actual code is untouched.
rm -rf ~/Library/Application\ Support/cursor/User/workspaceStorage/<workspace-id>open -a CursorThen manually open your project folder again.
It will now load as a clean session β no AI chat history, no freeze.
To avoid future freezes:
Go to Cursor Settings > Cursor Assistant
Turn off:
-
"Auto context injection"
-
"Restore previous chat"