When a workflow fails — a validation error, a timeout, an agent that wandered off — recovery lets the next run resume from the exact frame just before the failure, with prior state attached. No re-doing the first 18 steps.Documentation Index
Fetch the complete documentation index at: https://docs.nusomi.com/llms.txt
Use this file to discover all available pages before exploring further.
How it works
Every session is indexed into a memory graph keyed by workflow shape. When a session ends inerror (tagged or detected), its frames before the error are eligible recovery points.
To recover:
- Find the failed session.
- Pick a recovery frame (the SDK does this for you by default).
- Spawn a partial replay from that frame.
Choosing the recovery frame
By default, recovery picks the frame immediately before the first event whose type iserror or validation_error. You can override:
What gets carried over
A recovery starts from the recovery frame with this state restored:- Browser surfaces: cookies, localStorage, sessionStorage, open tabs, scroll position.
- Native desktop: open windows + foreground app are restored when the workflow specifies (most apps don’t expose deterministic state restoration; Nusomi will warn rather than silently lose state).
- Server-side state: Nusomi does not rewind anything outside the captured surface. If your workflow created a half-submitted invoice in your ERP, that record still exists. Recovery resumes from the UI state — server state is whatever it currently is.
Failure budgets
A recovery itself can fail. Set a retry budget:max_attempts: 1 for “try once, escalate to human.”