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
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 truecontinues from the gate.