undo
Undo reverses a supported action according to a defined history and lifetime.
Use this when A user needs to recover from an accidental reversible edit.
without the term
“Instead of 'are you sure?' popups, I want an undo button after archiving an email, like Gmail. Can you make that actually restore it?”
with the term · How do you ask a model for undo?
Implement undo for this action with an explicit lifetime. Verify the original state returns and repeated or expired undo requests behave correctly.
What is undo?
The app keeps enough history to reverse an action for a defined time, so 'undo' really restores the previous state instead of just hiding a message.
Why does undo matter when vibe coding?
A temporary message can promise recovery that persistence no longer supports.
How do you do undo?
Define which actions are reversible and test recovery across the supported lifecycle.
What goes wrong with undo?
Overwriting the only undo record when a second action happens.