Cursor freezes when trying to switch to Agent layout

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I try to use the Agent view, Cursor freezes and macOS shows a “The window is not responding” dialog.

Steps to Reproduce

  1. Open any project.
  2. Click the Agent button in the header.
  3. Cursor stops responding.
  4. After a short time macOS shows the system dialog: “The window is not responding” with options to wait, reopen, or close. Waiting for several minutes does not help, I have to close the window.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.49
VSCode Version: 1.105.1
Commit: 21a2ed198584d56a91c0b996d1a09c93f8538440

Additional Information

It might be because I have a lot of chats, several thousand chats for sure. I’m heavy user of cursor since september '24. It doesn’t work in new empty projects too.

It never worked since the release of Agent layout, still hoping to try using it one day.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Just a quick followup, this is the size of state.vscdb = 6.8G. I really hope you will come up with solution that doesn’t involve deleting it.

Hey @Oleksandr_Erm

The way Cursor handles a large number of chats isn’t ideal. Archived or not, they remain in memory.

Taking inspiration from here, I asked Cursor to put together a script to let you bulk export chats.

Maybe then you’d be able to start fresh in Cursor and get back to work, while still preserving your chat history in the exported files. You should definitely take a backup of your existing state.vscdb in case you realize there’s more data to extract, the script needs adjusting, or you want to swap it back temporarily. Resetting state.vscdb will also clear other Cursor state like recent files, but your actual code/projects are untouched."

That said, noted that this isn’t ideal. I’m also not 100% sure it will fix your issue (there could be other causes), but it seems a good place to start. You can always restore your backup later if it doesn’t improve the performance.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.