Skip to main content

Module subagent

Module subagent 

Source

Structs§

AuthorizationDiagnostic
CarriedWorker
A worker carried across a daemon reload (ReloadSession::workers).
SubagentArchiveMeta
What subagent_resume needs to relaunch a worker when only its archive is left.
SubagentDisplayRow
Snapshot row produced by SubagentRegistry::display_rows(). Used by the TUI reconcile path as the registry’s liveness authority. Serde: travels in SessionEventWire::SubagentRows (phase 3).
SubagentHandle
SubagentRegistry
SubagentResult
SubagentState
All mutable state shared between the subagent thread and its handle. Collapsed behind a single RwLock so a status poll takes exactly one lock.
TerminalDiagnostic

Enums§

SubagentStatus
TerminalCategory
WorkerCancelScope
Which running workers an interruption cancels.

Constants§

FINISHED_HANDLE_TTL
Finished-but-uncollected handles are retained this long before GC.
MAX_CARRIED_ARCHIVES
At most this many reaped archives ride along a reload (paths only).
TOMBSTONE_OUTPUT_MAX_BYTES
Maximum terminal text retained by a transport-free tombstone.

Functions§

handle_number
sa_12 → 12 (handle ids from subagent_start/resume/subagent).
reap_finished
safe_failure_message