Expand description
Teardown budgets shared by every session host (values copied from
agent-tui/src/tui/signals.rs; signals.rs re-exports these on day 2).
SAVE_TIMEOUT_SECS— session save + index end record (data safety first)HOOKS_TIMEOUT_SECS—on_session_endhook emit (concurrent, fail-open)TEARDOWN_TIMEOUT_SECS= their sum.
Constants§
- CANCEL_
DRAIN_ TIMEOUT - CANCEL_
DRAIN_ TIMEOUT_ MS SessionActor::cancel_turn: how long a cancelled turn’s stream is drained for the engine’s cancel-path history, final Usage and any in-flight context-head checkpoint. The engine’s provider/tool awaits are cancellation-first, so the tail normally arrives in milliseconds; on expiry the actor keeps its last adopted (valid) history. Also the grace a driver-revoked turn gets (revoked_turn_deadline).- CANCEL_
DRAIN_ TIMEOUT_ SECS - Whole-second ceiling of the drain, for the budget sums below/elsewhere.
- CANCEL_
TURN_ TIMEOUT_ SECS - Worst case of
cancel_turn: the drain, then the bounded wait for the interrupted turn’s save before it announcesIdle(announce_idle). - EXTENSIONS_
READY_ TIMEOUT - EXTENSIONS_
READY_ TIMEOUT_ SECS SessionActor::createbound onEngineHost::extensions_ready(): the loader guard should make this unreachable; it exists so a session can never hang on a loader that never reports (warns, then proceeds).- HOOKS_
TIMEOUT - HOOKS_
TIMEOUT_ SECS - OBSERVABILITY_
FLUSH_ TIMEOUT_ SECS - Session end’s bounded observability flush (
finishSTEP 3). - SAVE_
TIMEOUT - SAVE_
TIMEOUT_ SECS - SESSION_
END_ TIMEOUT_ SECS - Worst case of
SessionActor::finish: cancel a running turn, one bounded save, theon_session_endhooks, the observability flush. - TEARDOWN_
TIMEOUT_ SECS - UNPARK_
TIMEOUT - UNPARK_
TIMEOUT_ SECS SessionActor::unparkbound (B3): journal load + runtime rebuild. Transports waitATTACH_TIMEOUT_PARKED(25 s) for a parked attach.