Conventional software fails in tidy ways. A form doesn’t submit, a page doesn’t load, and the person tries again. Agents fail untidily. They finish three steps of five, publish part of a batch, lose a connection halfway through a change, or report success on work they didn’t check. The interface has to tell people exactly where things stand and give them a safe way forward.
This article covers the kinds of failure agents produce, how to describe them, when to retry and when to resume, how checkpoints and rollback fit in, and what honest completion looks like. It goes deeper than the recovery section in the guide to agentic UI design, and includes a failed task you can resume.
Why agent failures are different
Three things make agent errors harder than form errors:
- The work has side effects. By the time something fails, files may have changed, messages may have been sent, records may be live. Trying again isn’t automatically safe.
- Failure is often partial. A task is rarely all done or all undone. People need to know which parts happened.
- The agent may not know it failed. A tool can return something that looks fine but isn’t, and a model can describe work as done without checking.
Google’s People + AI Guidebook notes that what people consider an error depends on what they expected the system to do, and that the most important thing after a failure is a path forward (Google PAIR). For agents, that path depends on knowing precisely what state the work is in.
Kinds of failure
| Failure | Example | What people need to know |
|---|---|---|
| Tool failure | The shop’s API returned an error | Which step, whether anything changed, whether retrying is safe |
| Partial completion | 31 of 48 pages published | Exactly what was done and what wasn’t |
| Timeout | No response after 30 seconds | That the outcome may be unknown, and how it will be checked |
| Interruption | The person stopped the task, or the session closed | What finished before it stopped, and how to continue |
| Wrong result | The task “succeeded” but the output is wrong | What was checked, and how to correct it |
Tool failures
Most agent failures start in a tool: an API, a file system, a browser. The article on tool call UI covers how to show a single failed call. At the task level, the question becomes what the failure means for the work as a whole:
- Did the agent continue with other steps, or stop? Say which. A failed lookup that the agent worked around is a note; a failed publish is a stop.
- Does the failure block everything after it? Mark later steps as not started, not as failed.
- Is the cause something the person can fix, such as an expired connection or a missing permission? Then the recovery action should be that fix, not Retry.
Partial completion
Partial completion is the failure that most needs precise language. “Publishing failed” is misleading if 31 pages went live. “31 of 48 pages went live before the shop stopped responding” tells people what to check and what remains.
Task Progress makes this the default shape. When a step fails, the working line is replaced by that step’s error in plain words, with Retry beside it when you pass a retry handler. Write the error to include what was done, as in the example below, so a failed task never looks like it didn’t start, and never looks finished.
Timeouts and interruptions
A timeout is different from an error, because the outcome is unknown. The request may have succeeded after the agent stopped waiting. Stripe’s API guidance makes the same point for payments: treat a server error as indeterminate and find out what happened before repeating the operation (Stripe docs).
For the interface, that means:
- Say the outcome is unknown, rather than calling it a failure.
- Check before acting again, and show the check: “Checking which pages went live”.
- Report what the check found before offering to continue.
Interruptions, whether the person pressed Stop or the window closed, should leave a clear record of where the work stopped. When people come back, the task should show as stopped, with what finished and an option to continue, not as if it never ran.
Retry or resume
These are often presented as the same button. They aren’t.
| Retry | Resume | |
|---|---|---|
| What runs | The failed step, or the whole task, again | Only what hasn’t finished, from the point of failure |
| Safe when | The step had no side effects, or repeating it is harmless | Progress was saved and completed work can be skipped |
| Risk | Doing something twice: two emails, two charges | Building on a state that changed in the meantime |
| Label | “Try again” | “Resume from step 4” |
Resuming depends on the runtime having saved progress. LangGraph, for example, lets a workflow resume from its last recorded state after a failure, and asks developers to make workflows deterministic and idempotent, with side effects wrapped so they aren’t repeated (LangChain docs). Idempotency is what makes a retry safe: Stripe’s idempotency keys mean that repeating a request returns the original result instead of performing the operation again (Stripe docs).
The interface can only promise what the system guarantees. Offer “Resume” when the runtime can skip completed work, and say why it’s safe. Where it can’t, say what a retry will repeat.
A failed task, resumed safely
Here a five step task fails during publishing. Resume it, or restore the checkpoint saved before publishing began:
The shop stopped responding. 31 of 48 pages went live before it did.
Steps 1 to 3 are done and saved. Resuming sends only the 17 pages that didn’t go live.
What the example gets right:
- The failure is specific: which step, and that 31 of 48 pages went live.
- The technical details sit behind a disclosure, and explain why resuming won’t publish anything twice.
- Resuming sends only the 17 pages that didn’t go live.
- Restoring the checkpoint is honest about its reach: it restores the workspace, not the pages already on the shop.
- Completion is reported as checked, with a count and a time.
Checkpoints and rollback
A checkpoint is a saved state people can return to. It turns a risky step into a reversible one, which is often better than asking for approval, as the article on human-in-the-loop UX argues.
- Save before consequential steps, and name checkpoints by what they capture: “Before publishing”, not “Checkpoint 3”.
- Show what restoring changes, and what it doesn’t. A checkpoint of files can’t unsend an email. If an action reached outside the workspace, say that restoring won’t undo it, and offer a separate way to reverse it if one exists.
- Make restoring itself safe. Checkpoint shows Restoring and then Restored, and if it fails, says “Couldn’t restore this version. Your current work is unchanged.”
- Let people look before they restore, with a preview of the saved version where you can.
Verified completion
The most damaging failure is the one reported as success. An agent that says “Done” when the work isn’t teaches people to check everything, which defeats the point of delegating.
Make completion claims specific and checked:
- Say what was verified, and how: “48 of 48 pages live, checked on the shop”, not “Published successfully”.
- Separate “the agent finished its steps” from “the outcome was confirmed”. If the agent couldn’t check, say so.
- Keep the evidence one click away: test results, the changed files, links to what was published.
Technical details people can use
Error messages should be human-readable, precise about the problem, constructive about what to do, and never blame the person (Nielsen Norman Group). WCAG makes the same point for forms: when an error is detected and a fix is known, suggest it (WCAG 3.3.3).
Agents add a second audience. Developers and technical users often need the raw detail: the request, the status code, the request ID. Keep both:
- One plain sentence first: what happened and what it means.
- The technical detail behind a disclosure, such as an expandable Tool Call, written so it can be copied into a support ticket.
- Never put secrets, tokens or personal data in either, even when the raw response contains them.
Clear recovery actions
Every failure state should end in an action, and the actions should be specific to the failure. Microsoft’s guidelines for human-AI interaction ask systems to support efficient correction and to scope services when in doubt (Microsoft Research). In practice:
- Name the action after its effect: “Resume from step 4”, “Reconnect the shop”, “Restore before publishing”.
- Offer one primary path and keep the others available but quieter.
- Always include a way out that leaves things as they are: “Leave it for now” is a valid choice when the state is safe.
- Keep the record. Run History can filter to failed runs and offer Continue, so a failure isn’t lost when people move on.
When to hand over to a person
Some failures shouldn’t be retried by the agent at all. Hand over to a person, with the context needed to act, when:
- The same step has failed more than once for the same reason.
- The outcome is unknown and the action involves money or other people.
- Recovering would need permissions the agent doesn’t have, or a judgement it shouldn’t make.
- The person asks for one. That request should always be honoured.
Escalation is a handoff, and the same rules apply: say who will pick it up, what they will see, and what has already been tried. The article on agent handoffs covers that transition in detail.