Expand description
The shutdown events an agent pane’s close and its pending window publish, and the cleaner for the text
they show. They live in the core so backend/ names them without reaching up into sagas/; the sagas
re-export them under their old paths. The wire shape is pinned by sagas/shutdown_events_tests.rs.
Structs§
- Batch
Block - An agent of a batch.
- Block
Outcome - What became of one agent of a batch.
- Pending
Cleared Event agent:shutdown-pending-cleared: the request ended, and how.- Pending
View - A request as the caller and the frontend see it (§12.2).
- Shutdown
Extra - What a shutdown line can add beyond its step and text. Each is omitted when absent.
- Shutdown
Line Event - One
agent:shutdownline (mps_events::AgentShutdown): its order, step and text, and what the step adds. - Shutdown
Process - Workspace
Stop View - A workspace stop as the page shows it:
pendingwith the stop time and why, orcleared.
Constants§
- EVENT_
AGENT_ SHUTDOWN agent:shutdown— the shutdown log a closing pane shows (SPEC_AGENT_SELF_QUIT_2026_09_24.md §5.5, §12.1).- EVENT_
SHUTDOWN_ PENDING - EVENT_
SHUTDOWN_ PENDING_ CLEARED - EVENT_
WORKSPACE_ STOP workspace:stop— a headless workspace is going to stop at a time, or is not any more (server::host_control, which the registered external host calls). It carries no words of a person’s or an agent’s:reasonis one of a fixed set of phrases.- REASON_
HIDDEN - Shown in place of a reason that looks like it holds a credential or asks for something destructive.
- REASON_
MAX - The longest reason the banner shows.
Functions§
- clean_
line - One line for display: bidi-override characters removed, control characters
turned into spaces, whitespace collapsed, cut at
maxcharacters. - clean_
reason - A caller’s reason, cleaned for the user to read (spec §3.11). Replaced
wholesale by
REASON_HIDDENwhen it trips the keyword list the jekt tier gate and notification previews use; otherwise its first line, control and bidi-override characters removed, whitespace collapsed, cut atREASON_MAX. Markup is not interpreted here: the banner renders it as text and a toast never carries it.