Potential word of caution

I always thought Cursor kept an ongoing diff when it presented the “keep” lines (red and green highlights). I tend to not click on “Keep” right away as I like to keep around the more recent changes this way than the usual change indicators in the line gutters, and only when I’m happy with something do I “Keep” and commit it.

Anyway, I guess Cursor had a memory leak and next thing I know I’m presented with the Mac dialog telling me to kill some apps to free up memory. Cursor was eating up 58GB so I force-quit it and with it apparently the lines that I didn’t hit “Keep” on.

I haven’t encountered this before, should the IDE have presented a recovery diff on next load up?

Thankfully I remembered to use the VSCode/Cursor timeline feature which keeps track of changes periodically and was able to recover work. When I asked Cursor to recover the work it basically told me that it wasn’t possible (which obviously wasn’t the case, but maybe it doesn’t know the IDE context?). Maybe something Cursor agent can improve on is pointing users to that feature.

Hey, thanks for the report. Glad the timeline feature helped you get back to work.

About memory usage, 58 GB is definitely unusual. The team is working on fixes for a few memory leaks. To help us find the cause, could you share:

  • Your Cursor version (Help > About)
  • How long Cursor had been running before the leak
  • Which feature you were using the most
  • If it happens again, a screenshot from CMD/CTRL+Shift+P > Developer: Open Process Explorer

About “Keep” changes, unfortunately those changes stay in memory until you click “Keep” and save the file. If you force-quit, they are lost, and that is expected. Recommendation: click “Keep” as soon as you’re happy with the changes, and commit more often.

1 Like