Reverse a prior action, absorbing the anxiety of mistakes and encouraging confident exploration.
Structure
- Trigger
- Feedback
- Scope
Levels: single-action vs. multiple levels of undo
Whether undo can be applied only once or successively.
Linear vs. non-linear undo
-
Single-action undo: Reverses only the most recent action.
-
Multi-action undo: Allows reversing multiple actions sequentially.
-
Selective undo: Allows to pick a specific action from a history to undo, without affecting subsequent actions.
-
Regional undo: Enables undoing operations within specific regions or contexts
-
Branching models: Creates tree-like structures where actors can explore alternative paths
Collaboration
TODO:
Consequences
- a reverse path that returns the structure to its prior state
Resources & references
Appears in
Making changes
- Making changes safe, step 3 — Provide undo
Related patterns
Enacts
- Temporality — lets the actor reverse an action after the fact, loosening commitment over time
Complements
- Case correction — “Support the smallest repair with undo or a one-off skip that leaves the standing behaviour untouched.”
- Change review — “Keep undo available after changes are accepted and applied, not only as rejection beforehand.”
- Transient feedback — the dismissal window doubles as the recovery window — transient feedback is the primary carrier for undo affordances
- Version history — “Automatic saving happens as work evolves across sessions, collaborators, or large agent runs, and undo only steps back through recent edits while the activity log records events without restoring past states.”
Alternatives
- Approval gate — consent before the act and recovery after it are the two ends of one safeguard ladder
- Branching — “The actor is working in a session, a conversation, or a version history where undo only moves along one sequence.”
- Inline confirmation — moves the safety net after the act instead of before it; prefer undo when the action reverses cleanly
Related to
- Action consequences — the strongest severity reducer — recovery after the act removes the need for confirmation before it
- Automatic saving — “Use this pattern as it is for open-ended work: report what was stored and when through status feedback, and rely on undo and version history to carry the recovery and milestone acts that left the Save button.”
- Reconciliation — “Treat the unpicked version as a removal and give it undo as recovery.”
- Status feedback — provides immediate feedback on the undo action
- Command menu — can be used to access undo options
- Activity log — displays a history of actions that can be undone
Preceded by
- Instructed revision — “Keep the replaced version one step back through undo, and where a revision rewrites several places at once, present it through change review against the last accepted version so the actor can accept or reject changes in parts.”
- Regeneration — “Keep the replaced result one step back through undo or version stepping on the turn.”
- Settings — “Confirm every saved change with status feedback and let undo walk back an override so exploratory configuration stays safe.”
- Wizard — “Make going back free, since the flow hides everything but the current step: give it a non-destructive undo and a Back that keeps every answer.”
- Abort — “changes applied before the halt stay applied; abort states them and does not reverse them, so each one still needs a way back”
- Deletion — “the data is gone; whether that holds is now a question of recovery — a completed deletion is exactly the state undo acts on”
- Editing in place — “changes commit one at a time — the short gap between act and effect is what makes the result feel caused by the gesture — so there is no assembled set to review and no pending state to cancel from; taking something back happens after the fact”