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