Skip to main content

workflows/approval.tsx

Synthetic example: workflows/approval.tsx does not exist in the repo. This is a standalone illustration of needsApproval for human-in-the-loop workflows, not a copy of a real file.For a richer approval flow with custom request summaries and an <Approval> component, see Approval Gate.

Source

Running

The workflow pauses at the approval gate:
Approve and resume:

Notes

  • needsApproval — Pauses execution until a human approves. Core human-in-the-loop primitive.
  • Resumable — Workflow state is persisted to SQLite. Approval is recorded durably; --resume true continues from the gate.