The extension specstory opens and reads the Cursor sqlite files, and if Cursor itself happens to need to read/write those same files at the same time - it cannot - so spits out this error and exits:
2025-04-19 17:04:03.013 [error] [storage state.vscdb] transaction(): Error: SQLITE_BUSY: database is locked
2025-04-19 17:04:03.028 [error] [uncaught exception in main]: Error: SQLITE_BUSY: database is locked SQLITE_BUSY: database is locked
To confirm for yourself this is the reason for you - look in %APPDATA%\Cursor\logs for the most recent folder, and inspect the “main.log” file in there…
@gitcnd others: we just got to the root of the bug affecting some and were able to reproduce it and fix it. Thanks much @gitcnd for helping to sniff out a scenario we could finally repro!
The newest release 0.11.3 as of this morning fixes it.
Steps to reproduce on 0.11.2 and before running Cursor 0.49.6 (which are likely somewhat dependent on machine resources but I was able to repro consistently with a M4 Pro and 48gb of ram which is quite beefy). Others with less specc’ed machines might have experienced this with different below permutations.
Have auto-save in SpecStory turned on in settings
Have a state.vscdb in globalStorage that exceeds 500MB (mine for reference is ~800MB+)
Have a mix of v2 and v3 composerData in said state.vscdb
Open 8+ Cursor windows for projects simultaneously. I did this by turning off auto-save opening up the windows, turning on auto-save and force quitting Cursor so it would remember the workspace window sate.
On startup when SpecStory activates and Cursor runs its initial processes after ~30 seconds it will crash
The fix was ultimately quite simple in terms of delaying an initial autosave attempt on startup and letting the polling process work normally.
Finally, even in 0.11.2 and before if you opened 1 or 2 Cursor windows with auto-save on it would not crash which made it difficult to trace the root cause.
Would it be possible for you to provide some more details in a bug report here?
specifically around OS, etc. Also, are you just opening Cursor normally?