Hey, @Teglgaard 24 GB is way out of proportion. If VACUUM didn’t shrink the file, it means it’s actually full of data, not just fragmented.
To figure out what’s taking up all that space, please do this:
- Fully close Cursor.
- Open
state.vscdbin DB Browser for SQLite. - Run this and share the results:
SELECT name, SUM(pgsize) as size_bytes
FROM dbstat
GROUP BY name
ORDER BY size_bytes DESC
LIMIT 10;
Also important, which state.vscdb is it exactly. The global one at %APPDATA%\Cursor\User\globalStorage\state.vscdb, or the one inside workspaceStorage\<some-id>\state.vscdb?
If you need free disk space right now, close Cursor, rename the file to state.vscdb.bak, and restart. Cursor will create a new file. Warning: if this is the global state.vscdb, renaming it can cause an infinite “Loading Chat…” in existing projects (known issue: Deleting global state.vscdb causes infinite 'Loading Chat' in projects, history not recoverable without corrupted backup). Your chats won’t be deleted (they’re in workspaceStorage), but they’ll be inaccessible until you restore the original file. Keep a backup.
Let me know what the request returns.