Skip to main content

Module shutdown_events

Module shutdown_events 

Source
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§

BatchBlock
An agent of a batch.
BlockOutcome
What became of one agent of a batch.
PendingClearedEvent
agent:shutdown-pending-cleared: the request ended, and how.
PendingView
A request as the caller and the frontend see it (§12.2).
ShutdownExtra
What a shutdown line can add beyond its step and text. Each is omitted when absent.
ShutdownLineEvent
One agent:shutdown line (mps_events::AgentShutdown): its order, step and text, and what the step adds.
ShutdownProcess
WorkspaceStopView
A workspace stop as the page shows it: pending with the stop time and why, or cleared.

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: reason is 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 max characters.
clean_reason
A caller’s reason, cleaned for the user to read (spec §3.11). Replaced wholesale by REASON_HIDDEN when 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 at REASON_MAX. Markup is not interpreted here: the banner renders it as text and a toast never carries it.