When I launch a cursor with a workspace that has many chats it starts the cursor, but after few seconds it hangs and shows a windows window “The window is not responding” (see screenshot #1). Depending on the chat count it takes some time for it to finally fully launch. I tried once deleting all the chats, and it worked, but I get many many of chats fast and its not nice UX to go into the files, search for that project somehow via uuid and remove them all.
See the screenshot #2, it shows how it looks while it loads. After some time it’s screenshot #3.
it does the same when launching via cursor --disable-extensions.
Steps to Reproduce
Get on windows 11, create many many of chats in a workspace. close and open cursor on it again.
Expected Behavior
It should load normally, no matter of chat count, that’s just rendering the tabs.
Hey, thanks for the detailed report and screenshots.
When a workspace opens, Cursor loads the saved chats for that workspace and reopens all chat tabs that were open when you last closed it. Until that finishes, the window stays busy. So the more chats and open tabs there are, the longer “The window is not responding” can last. Extensions don’t affect this, so the result with --disable-extensions is expected. I’ve passed this on to the team.
To speed up startup without deleting files manually, there are 2 ways:
Before quitting, close extra chat tabs: right-click the tab you want to keep, then choose Close Others.
You can delete old chats directly in Cursor: Ctrl+Shift+P > Developer: Delete Old Chats…, then choose the age threshold in days. Pinned chats will stay.
Could you also check one more thing? This will help us understand what’s slowing it down in your case:
Open this workspace and wait until it fully loads.
Leave only one chat tab open using Close Others.
Fully close Cursor via File > Exit.
Open Cursor again on the same workspace.
Did the freeze go away, get shorter, or stay the same? Also, please let me know about how many chats are in this workspace and how many chat tabs were open when the window was freezing.
By clicking on the chat tab and clicking “Close other tabs” only closes the tabs for current session. As soon as I reload the window, all the chats are back. I also did the “Delete old chats” in the command menu and I deleted all the chats older than 7 days. that made only 12 chats stay in my workspace, however as I counted my cursor still stays freezed for around 12 seconds. so basically when I launch cursor, it works for few second cuz its launching and then it freezes and then it fully works.
Hey, thanks for checking all of that. Your reply cleared up a lot.
Tabs closed with Close Others shouldn’t come back after reload. Your setting isn’t related here. This is a bug we’re tracking, and I’ve passed your case to the team. So for now, it looks like the first workaround just isn’t working in your case.
A 12-second freeze with 12 chats open suggests it isn’t only about the number of chats. Please try this:
Ctrl+Shift+P > Developer: GC Agent KV Blobs, then wait for the completion message.
Fully close Cursor through File > Exit. Reload Window won’t work here. Then open it again.
Delete Old Chats removes the chats themselves, but the database file on disk may not get smaller right away. GC and a full restart are what shrink it.
If the freeze still happens, please send:
The size of state.vscdb before and after cleanup. It’s in %APPDATA%\Cursor\User\globalStorage.
How many chat tabs open on startup now.
Whether the freeze still happens if you open Cursor in an empty folder or a different project with no chats. That’ll help us tell if this is tied to the workspace or to Cursor overall.
This does not happen and that is if you even get that far. I’ve left a cleanup running for 45 minutes and nothing happens to the file size. I’m sat at near 50 gig in that state.vscdb file now. This is an ongoing issue and some weeks ago it was a priority but still can’t remove/reduce it.
Hey @MrCheese, on large databases, GC Agent KV Blobs can take a very long time. In a similar case, a 34 GB database took about 35 minutes, so for 50 GB, 45 minutes may realistically not be enough. The file size only changes after the cleanup fully finishes and you completely close Cursor.
To understand what’s happening in your case:
Wait for the completion notification (GC complete in ...) and send the full text. The main things there are how many records were deleted (deleted) and whether it says (N errors).
If it shows 0 deleted and there are errors, that means cleanup hit a record it can’t read, so nothing was deleted. More details in this thread: GC Agent KV Blobs silently skips all deletion forever because of one corrupt blob (and never logs which one). You can find the errors like this: Ctrl/Cmd+Shift+P > Developer: Open Logs Folder, then in the folders whose names start with window, open renderer.log and search for [AgentKvGC].
Check your free disk space. The final rewrite needs about as much free space as the file size, and sometimes up to 2x that. If there isn’t enough space, the file won’t shrink.
Please don’t edit state.vscdb manually or delete it while Cursor is open.
This thread is about slow startup, so to avoid mixing topics, please post the results in your own thread: Excessive Storage in MacBook. Also include your OS and Cursor version, and we’ll continue there.