This button in the IDE is terrible, a single missclick with no confirmation prompt can severely harm a project. Should be somewhere else AND have a confirmation prompt in my opinion.
Hey, thanks for the feedback. You’re not the only one running into this. Several users have reported accidentally clicking Undo All and losing work. For example, see this thread: Placement of the Keep/Undo file buttons with a broader discussion about button placement.
The team is aware of this. Your report helps with prioritization.
In the meantime, if you do accidentally click Undo All:
- Checkpoints: open the chat sidebar and roll back to the agent’s last checkpoint.
- Git: if your files were committed before the agent changes,
git restore .will bring them back. - Timeline: right-click the file in Explorer and check Timeline for local snapshots.
Let me know if you have any questions.