From time to time, the cursor application freezes (Windows). It gets stuck in a “thinking” state, saying it’s taking longer than expected, and doesn’t give me any feedback. I’ve restarted it several times and it doesn’t help. When this happens, I can’t do anything else.
Steps to Reproduce
What I’ve noticed is that whenever the chat is long, he loses track, but I always stick with the same agent so as not to lose the history. Another detail is that from time to time I have to remind him about actions and tasks that have already been defined.
Hey, thanks for the report. This is a known issue. Long chat sessions slowly put load on the renderer and eventually can cause freezes.
You mentioned you try to stay in one agent chat so you don’t lose history. That’s actually the main trigger. The longer the chat, the more context the client has to process, and at some point the UI just hangs.
Two workarounds:
Start a new chat when the current one gets big. Previous agent transcripts are saved in ~/.cursor/projects/, so the history isn’t fully lost. You can use .cursorrules or project rules to describe the current tasks and context, so you don’t have to remind the agent about previous decisions.
Check and clean up the state.vscdb file. With heavy usage it may have grown a lot. Check the file size here:
%APPDATA%\Cursor\User\globalStorage\state.vscdb
If it’s over 500 MB, that’s very likely the issue. Fully close Cursor, make a backup, then clean it with sqlite3:
sqlite3 "%APPDATA%\Cursor\User\globalStorage\state.vscdb" "PRAGMA journal_mode=DELETE; BEGIN IMMEDIATE; DELETE FROM cursorDiskKV WHERE key LIKE 'agentKv:%'; DELETE FROM cursorDiskKV WHERE key LIKE 'bubbleId:%'; DELETE FROM cursorDiskKV WHERE key LIKE 'checkpointId:%'; COMMIT; VACUUM;"
You can install sqlite3 via winget install SQLite.SQLite. The downside is your chat history will disappear in the UI, but agent transcripts in ~/.cursor/projects/ will remain.
The team is aware of this issue. Let me know if the cleanup helps.
Hey @Fernando_Faria,
The IDE freeze during long agent sessions has been addressed and the fix should be available on the nightly release channel. If you’d like to try it out before it hits stable: open Cursor Settings > About and switch the Release Track to Nightly, then restart Cursor. Let me know if that resolves it!