Undoing an agent's changes deletes the chat history, but leaves the changes intact

I’ve repeatedly encountered a situation where I stop the agent during code generation, return to a previous message in the history, and restart it. In the dialog box, I select “Discard Changes.” This deletes the chat history, but the changes the agent made remain in my project. I can’t find these changes in the history, nor can I undo them by reverting to the agent’s previous message. These changes can no longer be rolled back unless I manually search for all the changes in all the files.

Is this normal? Or is it just me?

I think this is a Cursor issue. And it’s a terrible bug, as it can add hours of work out of nowhere.

Just encountered the same issue. Very nasty bug.

Hey there!

We’ve finished up some work on improved stability for rolling back to previous checkpoints in agent conversations. This should be released very soon.