Wait for idle
A ◌ Wait for idle gate holds the run until the inbound session is not busy, then passes text and session through.
Busy means running (generating) or waiting (blocked on input). live / idle / missing status count as ready.
Why it exists
Section titled “Why it exists”Injecting or handing off into a session that is still generating is a race. You already see live status in Sessions. This gate polls that same signal so the graph can wait without teaching users to poll by hand.
| Setting | Role |
|---|---|
| timeout | How long to wait (default 60s, hard cap 5m) |
| on miss | park · skip · abort when still busy at timeout |
- park. Splice dock (same UX as approval). Detached needs
--approve-all - skip. Starve downstream (node idle)
- abort. Fail the run
Needs an inbound session (session node, or an upstream agent that emitted one). Graph lint hints when none is wired.
threadle run wait-idle-gateReplace the placeholder session with one from your Sessions list before a real demo.
Related
Section titled “Related”- Gates. Approval, live handoff, park
- Live status. What “busy” means
- Examples.
wait-idle-gate