Too easy to accidentally click undo-all

Hi,

When the agent is running and making changes, the review is poped in real-time with the modification tab (that includes undo-all and keep-all buttons), which is helpful. I usually use it to roll down to the next change to review the changes. However, the tab length is changing when the agent adds more changes. Thus, I have accidentally clicked the undo-all multiple times and have to restore them by myself or let the agent run again. Maybe it would be helpful to add a confirmation after user click the undo-all and keep-all? Or separate the roll up and down button with the undo&keep buttion.

Thanks.

14 Likes

totally agree. ui fail

1 Like

I just clicked on undo-all. A confirmation popup would be really nice. ADD IT PLEASE

1 Like

It’s happened me a few times as well. But to be fair, you can just do Ctrl+Z (Undo) to make it as if you did not accidentally click “Undo All”

yea just chiming in here that the keep all and undo all button should never appear in place of each other… it’s happening also when the agent is done working, and i review the files.

the component sometimes gets shorter, i think when you’ve reviewed more then one file, and then the last one the file toggle disappears (1/2 files). when it disappears, the layout shifts.

this should be flagged as Support > Bug Reports since it’s a UI bug.

Hey! Looking into this - the screenshots here seem to be on slightly older Cursor versions? Is anyone on 2.2.44/2.3.x?

1 Like

it happened to me JUST NOW lol. It auto-updates, right?

Also, this guy had the same issue:

Notice how the buttons keep jumping all over the place relative to other UI elements

Version: 2.2.44 (user setup)
VSCode Version: 1.105.1
Commit: 20adc1003928b0f1b99305dbaf845656ff81f5d0
Date: 2025-12-24T21:41:47.598Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.19045

3 Likes

Please add a confirmation to the undo-all, just prompted my way to exactly what I wanted then undid it all :frowning:

3 Likes

Just happened to me… Super frustrating since there is no way to get the changes back!
Please adjust.

1 Like

This is absolute BS why was there no confirm button. Just lost an hour of work.

2 Likes

Same here guys… same thing happened this morning. Consider a confirmation before execution.

1 Like

just happened to me as well, pressed undo all while going for the chatbox to type a prompt, there should be at least some kind of protection, either a confirmation popup or a way to get go back

Same thing happened to me lol. pls add a confirm button

has anyone found a workaround for this? i’ve hit undo-all by accident when the tab shifted under my cursor mid-review. a confirmation dialog or even just moving the button further from the scroll area would help.

I just did same, and then i asked cursor prompt “I accidentally undoed all in cursor prompt, whatever you did, i lost it all” and guess what, cursor returned all the work correctly in next prompt

Please fix this UI, it’s way too easy to click UNDO ALL, what a crazy UI. Causing massive backtracking and token use. How can this be released? Any the suggestion that we should slow down and wait is totally at odds with the reason we sue tools like Cursor.

I agree I sometimes fear I am gonna undo all. It appears to be less of a problem when the undo/keep buttons are in the breadcrumb bar instead of overlayed. When in the breadcrumb bar they are right aligned so, the button positions never change.

image

If you are not seeing that, then you may need to click the double arrows in top right to leave editor classic layout

image

and also make sure breadcrumbs are enabled (default)

If you prefer the overlay look then there probably is not going to be a good solution because they are centered, so when the button group’s width is reduced the undo button appears to move around.

agreed

I accidentally clicked Undo All and lost all of my work. Ctrl+Z didn’t help either because multiple file changes didn’t appear, so I had to take some more time to complete the same task.

I heard there will be a checkpoint, but I’m not sure how to access it and revert to previous