Human-in-the-Loop Escalation for Long-Running Agents: Designing Async Voice/Push Interrupts Without Losing Execution State
We're building a long-horizon computer-use / DevOps agent that runs 15–45 minute tasks in the background.
Inevitably, the agent hits a blocking human gate:
- A vendor dashboard asks for an SMS 2FA code.
- A migration script touches a production table and needs explicit sign-off.
- Two valid pricing tiers exist and the user didn't specify one.
Right now, keeping a Python asyncio coroutine + Playwright browser session open waiting on an HTTP webhook times out our worker pods or wastes idle container memory if the user takes 30 minutes to reply to a Slack push or phone call.
How are teams architecting durable suspend-and-resume for async human-in-the-loop escalations?