Macos globalStorage 61.1gb

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

state.vscdb along is 52gb.

Steps to Reproduce

Constant state on macos

Expected Behavior

Pruning

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.19.19
VS Code Extension API: 1.128.0
Commit: 6496ea8a068aebfcd21990e70ff522e9abf10c80
Date: 2026-09-08T16:25:33.352Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @rinchen,
This is an issue we’re tracking, and you can bring it back down without losing any chats.

1. Delete the stale backup. state.vscdb.backup (5.2 GB) is a leftover that’s no longer updated. Fully quit Cursor (Cmd+Q), then delete just that one file from ~/Library/Application Support/Cursor/User/globalStorage. This won’t touch your chats.

2. Compact the main DB. Reopen Cursor, open the Command Palette (Cmd+Shift+P), and run GC Agent KV Blobs. It clears orphaned data and rewrites state.vscdb into a compact file while keeping your chats. On a 52 GB file it takes a while and temporarily needs free space roughly equal to the current size, so let it finish, then quit fully with Cmd+Q (a reload isn’t enough; the quit can look like a brief hang, don’t force it).

Heads up: on older databases the freed space isn’t always returned to the OS, so the on-disk size may not drop as much as expected even though the buildup is cleared. Let me know the before/after size and I’ll dig in if it barely moves.

Thank you. And thank you especially for the detailed instructions; they were easy to follow.

  • backup deleted
  • GC: 4103 items processed
  • Bubbles: 513,509
  • Orphans: 336,192
  • State DB dropped to 32gb

For fun, I ran it a second time. Completed much faster naturally but did not gain any further size reductions on disk that are noticeable.

@rinchen nice, 52gb down to 32gb is a solid drop, and that cleared the orphaned data. Thanks for reporting the numbers back.

The 32gb that’s left is mostly your actual chat history rather than orphans, so a second GC won’t shrink it further. If you want to reclaim more, run “Developer: Delete Old Chats…” from the Command Palette and pick an age cutoff (say 60 or 90 days), then run GC Agent KV Blobs once more and fully quit with Cmd+Q. Export any older chats you want to keep first via “Export Chat”, since Delete Old Chats permanently removes chats past the cutoff. The underlying growth is an issue we’re tracking.

Deleted after 30 days. It appears to have auto-executed blobs.

  • 3162 deleted
  • 958 Composer blobs
  • 94,986 bubbles
  • 820,057 orphans
  • new size 8.1GB