suddenly noticed that my macbookpro was running out of diskspace. then found that the state.vscdb.backup is 49.8gb and state.vscdb is 50gb. surely this is some sort of a leak?
Steps to Reproduce
i just kept using cursor and suddenly 50gb+50gb state.vscdb.
Expected Behavior
diskspace is not supposed to be eaten up like this
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Hey, thanks for the report. The issue where state.vscdb grows to 50+ GB is a known system-level issue in VS Code, and it can also affect Cursor since it’s a fork of VS Code.
This usually happens because of:
Multiple workspace caches in workspaceStorage (each new window creates a new folder)
Extensions creating huge index databases
Junk building up in global settings
Before deleting anything, please export your Cursor profile:
Important: Your chats will NOT be lost. They’re stored per project in workspaceStorage/<workspace-id>/state.vscdb. Deleting globalStorage/state.vscdb only resets global UI settings, which you already exported.
After restart, Cursor will create a new clean global settings database.
I’ll pass this to the team. We likely need an automatic cleanup for old data and a disk usage warning.