Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
After working on a project for a while and having long conversations with the Agent, the entire Cursor UI becomes incredibly laggy and unresponsive. Buttons have huge delays, and typing/scrolling freezes. The rest of Cursor (other windows/projects) works perfectly fine, the lag is isolated to the specific project workspace.
Starting a new chat or deleting the index does NOT fix the issue. The ONLY workaround that temporarily solves the lag is renaming the project folder in Windows. When I rename the folder and open it again, Cursor treats it as a new project, and the UI becomes extremely fast and responsive again. This heavily implies that there is a severe memory leak or storage bloat issue related to workspaceStorage or the AI chat history database for that specific path.
Steps to Reproduce
Open a project and have long, extensive interactions with the Cursor Agent over several days/weeks.
Observe the UI becoming progressively slower and freezing.
Try to start a new chat (doesn’t help).
Rename the project directory in the OS and open it in Cursor.
Observe that the lag is completely gone.
Expected Behavior
The IDE UI should remain responsive regardless of how long the project has been worked on or how long the Agent chat history is. Cursor should properly garbage collect or archive old workspace data so it doesn’t choke the renderer process.
Operating System
Windows 10/11
Version Information
Latest Version
For AI issues: which model did you use?
All models
For AI issues: add Request ID with privacy disabled
Not applicable because this is a UI performance issue not a request error
Additional Information
I emphasize that simply starting a new chat does not fix the lag. The database seems to remain loaded in memory. I absolutely do not want to delete my old chats to fix this because I need my project history. Renaming the folder constantly is a terrible workaround. Please investigate the workspaceStorage bloat.
Does this stop you from using Cursor
Yes - Cursor is unusable
