Skip to main content

workflows/approval.tsx

Synthetic example: workflows/approval.tsx doesn’t exist in the repo. It’s a standalone illustration of needsApproval for human-in-the-loop workflows.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 persists to SQLite, and approval is recorded durably; --resume true continues from the gate.