Describe the Bug
I use VsVim- dunno if that plays into this problem at all so I’m curious if others see problems along these lines too.
What’s bringing me here is that I didn’t even do an undo but the behavior was similar. I switched branches, wrote some Slack messages, went and followed up on some Gitlab issues, and switched into Cursor and it just started changing the file that was active back to the state it was in on the other branch. Of course I also had “live” changes that I hadn’t thought to stage yet, so those were gone as well.
At different times hitting U
to undo (as one does in vi) will undo what I just typed plus whatever Cursor did before, plus who knows what all… I find myself staging in Git a lot so that I can get back to where I was and usually I don’t lose too much work but sometimes I do lose a lot.
Sometimes also Cursor just decides that the file needs to be double-spaced after an undo. Like, it literally puts a blank line in between every existing line in the buffer. This is a total WTF moment because of course undo doesn’t undo that, this is the result of the undo. And redo doesn’t do anything.
It just feels like Undo state management is not well handled; there should be undo checkpoints after Cursor makes changes and after things are accepted and so forth because it’s crazy to hit undo and just lose a lot of work. Really when I hit undo I just want to undo the thing I just typed, not everything I’ve done since starting Cursor. Ok that’s hyperbole but again, I’m staging in Git a lot because it’s basically the only way to meaningfully recover from enthusiastic undo and it just drives me mad.
Does anyone else see bizarre undo behavior or is it somehow just me? It feels bad enough that it’s surprising that I can’t find any reports of this but it’s also crazy enough that it can’t be just me.
Steps to Reproduce
Press Undo, however you do it. Watch as Cursor backs out the changes you just made plus a lot of other stuff that you actually wanted to keep.
Expected Behavior
Cursor undoes last manual action and not everything that’s been done in the last ten minutes.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.0.0 (user setup)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:44:25.253Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100