Where Do You Put the await When Approval Comes a Deploy Later?
dr_renner · reddit · 2026-12-02
A TypeScript agent developer poses a core durable-workflow puzzle: an agent posts "Approve $312.40" to Slack, the user clicks the next morning, and a deploy happened in between — you need to record the amount the user actually saw, not re-extract it with a fresh agent that may disagree.
His first-pass design: a Postgres row holding the extracted invoice with pending status, row ID attached to the Slack button. The sticking point is edits: someone corrects the amount and sends a second approval request, both buttons point to the same row, and clicking yesterday's button could approve a different amount.
He asks the community: if you've shipped this in Node/TypeScript, are you still happy with table + worker? If you switched to built-in pause/resume, what finally made it worth it?
More from coding & agent
- Prime Agent v0.10.7 ships System 1/2 decision models and durable inboxes — a1zhang · 2026-12-02
- Claude's programmatic tool calling: one field turns tool calls into code — EricBuess · 2026-12-02
- Grok Imagine + Suno workflow generates lip-synced AI music videos — tetsuoai · 2026-12-02
- Tobi Lütke's AI-autoresearched Rust inference engine beats vLLM by 50%+ — ccerrato147 · 2026-12-02
- One prompt makes your Docker builds faster, dev claims with receipts — DanielLockyer · 2026-12-02
- Gemini 4 Neon stuns with 3D racing game built via /swarm in 2h46m — jason_mayes · 2026-12-02