Skip to main content

Module mps_events

Module mps_events 

Source
Expand description

Broker events with a typed payload (docs/specs/SPEC_TYPED_EVENT_PAYLOADS_2026_10_13.md).

Each event is a marker type naming its wire name and its payload type, declared once in the events! list below. That list is also the schema: schema() (exported to frontend/types/rpc/event-schema.json) feeds the generated MuxEventPayloads map, so the frontend’s onMuxEvent(WpsEvent.X, (data) => …) gets data as the Rust type. Publish one with Broker::publish_event. An event not listed here is still published as a plain MuxEvent with untyped data.

An event sent under a name per id (agent:memory:changed:<agent id>) is a PerIdEvent, declared in the per_id_events! list by the name before the id, and published with Broker::publish_event_for.

Structs§

AccountAvailability
An account episode opened, changed or closed (server::account_episodes).
AgentApiRetry
A Claude CLI request is being retried, or no longer is.
AgentContentChanged
An agent’s stored content changed (setagentcontent).
AgentContextUsageChanged
Where an agent’s CLI auto-compacts.
AgentCredentialsRevoked
An agent’s provider login was unlinked (agentcredentials:revoked:<agent id>).
AgentEndpointNotice
An agent’s model server was changed through Agents env_set, or the change was undone: the agent’s pane and My Agents say so, with an Undo for a short while (backend::endpoint_notice).
AgentEventStream
An agent pane’s output, translated (agent_event:<block id>).
AgentFailed
An agent failed, classified (agents::failure).
AgentGrants
The agents the person said “Always” to, after a change (backend::agent_grants).
AgentHiddenChanged
An agent was hidden from, or shown to, the paired devices (viewer.agent-hidden).
AgentHistoryChanged
An entry was appended to an agent’s history.
AgentIdentitiesChanged
An agent’s identity links changed (agentidentities:changed:<agent id>).
AgentInputHistoryChanged
An agent’s input history or draft changed (app_api::input_history).
AgentInstancesChanged
A definition’s instances changed (agentinstances:changed:<definition id>).
AgentMemoryChanged
An agent’s native memory files changed (agent:memory:changed:<agent id>).
AgentMessageAccepted
A queued message reached the agent.
AgentMessageQueued
A message reached srv while the agent’s process was still alive, so it waits for it to end.
AgentNotice
An agent’s start of an agent (or another act the person may stop): a one-line notice or a countdown card, and its end (sagas::agent_notice).
AgentProcessAdded
A process joined an agent pane’s tree, or left it (process_tracker::registry).
AgentProcessExited
AgentProgress
An agent’s checklist and current tool (reactive::progress_watcher).
AgentProgressEvent
agent:progress: an agent’s checklist and the tool it is running.
AgentReactiveRegistered
A reactive agent pane registered, or went (the Swarm refreshes).
AgentReactiveUnregistered
AgentResumeRetry
A stale --resume is being retried, or the retry resolved.
AgentRuntime
What an agent process runs with, and whether a restart is pending.
AgentRuntimeChanged
An agent’s runtime state changed (agentruntime:changed:<agent id>), the whole row.
AgentShutdown
One line of a closing agent pane’s shutdown log (sagas::close_pane::publish_shutdown).
AgentShutdownPending
A shutdown waiting for the user to keep the agent, and its end (sagas::pending_shutdown).
AgentShutdownPendingCleared
AgentSkillsChanged
The skills installed for an agent changed.
AgentTurn
An agent’s turn ledger changed (blockcontroller::health::ledger_publisher).
AgentsChanged
The agents list changed.
AmbientNarration
A line of narration for an agent pane (the narrate route).
AmbientNarrationEvent
ambient-narration: a line to show in an agent pane.
AmbientSpent
What one ambient model call spent (ambient::spend).
AppDesktop
Agents’ requests to drive a native app, and the grants in force (desktop_gate).
AppServerOutput
One protocol frame from an app-server agent (app_server_controller).
AppUpdateStatusChanged
What srv knows about newer releases changed (update::check).
AppUpgradeRequests
Agents’ upgrade requests waiting for the user (upgrade_request).
AttachmentBatchDone
AttachmentFailed
AttachmentProgress
An attachment batch’s progress, per item (backend::attachments).
AttachmentReady
AuditChanged
An Audit row was written (audit_live): at most one event per 100 ms; a pane asks audit.query for the newest rows.
BackgroundTaskUpdated
A pane’s background tasks changed; the dashboard reads the list again.
BlockActivity
An agent pane’s activity, from its terminal title (mps::publish_block_activity).
BlockActivityEvent
block:activity: what an agent pane is doing, from its terminal title.
BlockFile
A block file changed: terminal output, an agent transcript append (blockcontroller).
BlockRefEvent
An event about one pane: background-task-updated, mcp:observed, agent:reactive-(un)registered.
BlockReveal
Tell a window’s renderer to reveal a block (notify::router).
BlockStats
One pane’s process-tree stats sample (sysinfo).
BrowserGrantsChanged
A standing browser grant was added, changed or revoked.
BrowserPauseAllChanged
“Pause all agent browsing” was turned on or off (browser_pause_all).
BrowserProfilesChanged
A browser profile was created, changed or deleted.
BtwAnswerChunk
One streamed piece of a side question’s answer (agent_handlers::side_question).
BtwAnswerChunkEvent
btw_answer_chunk: one event of a side question’s answer. done (not event.type) says the answer is complete.
CaptureMask
A UI window capture is about to take (begin) or has taken (end) its frame: every window answers with the rectangles of its private and secret panes, capture.mask.report (sagas::capture_mask).
CaptureMaskEvent
capture:mask: a UI window capture asks every window for the rectangles of its private and secret panes, once just before the frame (begin) and once just after (end) (docs/specs/SPEC_DEEP_LINKS_ONE_FRAMEWORK_2026_11_20.md §7, G5). Each window answers capture.mask.report.
ChecksFlow
The checks of a PR’s head commit passed or failed (pr_flow): ids, a state and times, never a log.
CompactionStarted
Claude Code began compacting (agentmux-bashwrap precompact).
Config
The full config, redacted for the renderer: on connect, and when it changes.
ConfigEvent
config: the full config, redacted for the renderer.
ConnChange
A connection’s status changed (backend::remote::status).
ConnectivityChanged
A service’s reachability changed (connectivity).
ContainerRuntimeChanged
The container runtime appeared, went away or changed (container_status).
ContainerStatusChanged
One of this machine’s agent containers changed (container_status): names and states, nothing from inside it.
ControllerStatus
A block controller’s runtime status (publish_controller_status).
CredentialsRevokedEvent
agentcredentials:revoked:<agent id>: the agent still holds the provider’s tokens until it restarts.
CronChanged
Scheduled jobs changed.
DeepLinkOpen
An agent’s deep-link open that srv’s guard let through, for the window that holds the caller’s tab to carry out; it answers with deeplink.open.done (sagas::deeplink_open).
DeepLinkOpenEvent
deeplink:open: an agent, or the operating system, asked to open a deep link and srv’s guard let it through (docs/specs/SPEC_DEEP_LINKS_ONE_FRAMEWORK_2026_11_20.md §4.2). The window named by window_id (or, with none, the one the person last used) carries it out with the app’s executor and answers deeplink.open.done. Every field is srv’s own: the link is the canonical form srv parsed, never the agent’s text.
DispatchActivity
A workflow dispatch’s coalesced new events.
DispatchUpdated
DockClear
muxspect dock clear removed a node from a pane’s dock.
DockClearEvent
dock:clear: the dock node to remove.
DroneRun
One step of a drone run (dronerun:<run id>).
DronesChanged
The drones changed.
EditorFileChanged
A file an editor pane shows changed on disk.
EventsDropped
srv dropped events for this window (its WebSocket lane was full): it re-fetches what it shows.
FileRenamed
A file or folder got a new name through fs.rename: documents open on it follow.
FileRenamedEvent
fs:renamed: a file or folder renamed through fs.rename, whoever asked (a document tab, the Editor’s tree, the Files pane). Sent to every window, so each Editor moves its tabs on the old path to the new one.
FilesChanged
A folder a Files pane lists changed.
FilesChangedEvent
files:changed: the folder that changed, as the Files pane shows it.
FilesOp
A copy/move/delete job’s progress (fs_ops::jobs).
FleetBroadcastProgress
One more delivery of a paced broadcast has ended (server::app_api::fleet_pacing).
FloaterPlace
What an agent asked for a floating pane (SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §2.1, §3). The window resolves it against the work area of its own monitor and answers with pane.floatplaced.
FolderOverlapAsks
The agents’ asks for the person’s go-ahead with a host agent that shares a folder with a container agent.
FolderOverlapAsksEvent
folderoverlapasks: the asks now waiting for the person.
GoogleNotice
An agent changed a Google account (a grant, a disconnect): a notice naming it, asking nothing.
HistorySessionsChanged
The History pane’s agent list may have changed: a transcript grew, a conversation was archived, or a fork took a copy of its parent’s (at most one per two seconds; backend/history_changed.rs).
IdentityAccountsChanged
The provider accounts changed.
IdentityNoDirectLinks
An agent instance’s identity has no direct links (identity::resolver::inject); a diagnostic.
IncidentEvent
incident:recorded: an incident, as agentmux_common::incidents::Incident and the window’s notice carry it.
IncidentRecorded
An incident srv recorded (backend::transcript::damage): the window shows its notice now.
InstallChunk
One line of an install’s output, or its end (install.start, system.install).
InstallProgress
A line of an agent CLI’s install progress, for its pane (mps::publish_install_progress).
InstallProgressEvent
install_progress: one line of install progress.
JektHeld
The messages held for agents changed in count (server::jekt_held_summary).
JobsChanged
The run ledger, or Pause all, changed (the Warden Jobs tab).
JobsChangedEvent
jobs:changed: the job whose runs changed, or "" when every job may have (Pause all), so an open history reloads only for its own job.
LanInstances
The LAN peers this instance sees (lan::discovery).
LanInstancesError
LAN discovery couldn’t start, or a daemon rebuild failed.
LanInstancesFirewall
The OS firewall’s verdict on LAN peers reaching this machine (lan::firewall).
LanInstancesHealth
Whether this instance is discoverable on every LAN interface (the mDNS watchdog).
LspMessage
One message from a language server (lsp::supervisor).
LspMessageEvent
lsp:message: one JSON-RPC message from a language server, as it sent it.
McpChanged
The MCP servers changed.
McpObserved
A pane’s reported MCP servers changed (mcp_observed).
MeasurePanes
Ask a window how big its docked panes are drawn, for Pane layout (server::pane_measure).
MeasurePanesEvent
measurepanes: Pane layout’s question how big a window draws its docked panes. Sent to that window, which answers with pane.floatplaced and sizes (SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §2.3).
MediaFileChanged
A file a media pane shows changed on disk.
MemoriesChanged
Memory entries changed.
MergeFlow
A PR was merged (pr_flow): ids, a state and times.
MessageFlow
A message between two agents was handled by this srv (message_flow): ids and times, never its text.
MuxObjBatchedUpdates
Several object updates from one atomic transition, applied in one flush (EventBus::broadcast_mux_obj_updates).
MuxObjUpdated
A wave object changed (wcore::event).
MuxbusStatus
Cloud delivery’s state changed (muxbus::delivery_status).
NamedAgentsChanged
A named agent was hidden.
NoDirectLinksEvent
identity:no-direct-links: the instance and the identity that has no direct links.
Notification
An OS notification to show, retract or act on (notify::router).
NotificationActivate
NotificationRetract
NotificationState
What the notification tray shows (notify::router).
OpenFloatingPane
Ask one window to open a pane as its own floating OS window (app_api::pane).
OpenFloatingPaneEvent
openfloatingpane: the pane to float, now alone in its own workspace.
PaneAgentOpened
An agent opened a pane; the person’s active window offers to show it (http_open).
PaneAgentOpenedEvent
pane:agentopened: an agent opened a pane without taking the person’s tab, focus or window. The window the person is in tells them, with a Show button (REPORT_ACTION_RESULTS_ALWAYS_VISIBLE_ACROSS_WINDOWS_2026_10_31.md §4, item 9).
PaneConfirm
A question srv asks the person in a pane, as a modal over that pane, and its end (sagas::pane_confirm).
PathChangedEvent
editor:file_changed / media:file_changed: the file that changed.
PinAsks
The agents’ asks to move or forget a pin, waiting for the person.
PinAsksEvent
pinasks: the asks now waiting for the person.
PinsChanged
A pinned sender was adopted or forgotten (pins.adopt, pins.forget).
PlaceFloatingPane
Ask a floating pane’s own window to move, resize or report where it is (server::pane_place).
PlaceFloatingPaneEvent
placefloatingpane: an agent’s resize, move or place of a floating pane it opened, or Pane layout’s question where the window is. Sent to the floating window itself, which answers with pane.floatplaced (SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §2.2, §2.3, §3).
ProcessAddedEvent
agent:process-added: a process joined an agent pane’s tree.
ProcessExitedEvent
agent:process-exited: a process left an agent pane’s tree.
ProcessStatusChanged
A pane’s process status changed (broker::process).
ProtocolFrame
output: one app-server protocol frame, as the agent sent it.
RecordFlags
What the record’s rules have flagged and still say (record_notice): rules, keys and numbers; no text of anyone’s.
RemotePaneChanged
A change of a remote agent this computer shows (remotepane:<computer id>:<agent>).
RemotesChanged
The configured remotes changed.
ResumeRetryEvent
The agent-resume-retry event’s payload (mps_events::AgentResumeRetry).
ReviewFlow
A review of a PR reached the agent it belongs to (pr_flow): ids, a state and times, never its text.
SensitiveCleared
SensitivePending
A sensitive request’s countdown, and its end (sagas::sensitive_window).
ShellChunk
One line a Shell command wrote, or its exit (backend::shell_node).
ShellNodeCreate
A Shell command started (server::http_shell).
SigninLink
A provider sign-in link to show as a notice with an Open action (server::signin_notice).
SingletonClaim
A window claimed or released a singleton modal (frontend/app/store/singleton-modal.ts).
SingletonClaimEvent
singleton:claim, to singleton:<kind> with persist: 1: the latest one names the window holding that kind of singleton modal.
SkillsChanged
The skill library changed.
SrvInfo
srv’s version and machine, sent once on every WebSocket connect.
SrvPanics
srv is panicking, or stopped (panic_watch): its level, counts and the places that panicked most; no message text.
SubagentAbandoned
SubagentActivity
New events from one subagent (subagent_watcher).
SubagentBackfillStatus
A resumed pane’s subagent backfill started or finished.
SubagentBlockPruned
SubagentCompleted
SubagentNamed
SubagentSpawned
SubagentUpdated
SysInfo
One sysinfo sample for a connection (sysinfo::run_sysinfo_loop).
TaskFlow
A task was filed, reassigned, started or handed back (task_flow): names and numbers, never its text.
ToolChunk
A line of a Bash call’s output, its exit, its pid or which call it is (agentmux-bashwrap).
TrackedBlocksChanged
The process broker’s set of tracked blocks changed.
UserAttention
A call to action srv holds open started, or ended (backend::user_attention).
Vault
The Vault changed, or its agents’ requests did; never an entry or a value.
VaultEvent
vault: the Vault changed (changed_ms), or its requests did. Any subscriber may read it, agents included, so it carries no entry: the pane asks the host for the list.
ViewerDevicesChanged
A paired device was revoked, or its send grant changed (pairing has viewer:paired).
ViewerPaired
A mobile viewer paired with this machine (http_viewer).
ViewerPairedEvent
viewer:paired: the device that just paired.
ViewerWatchingChanged
A paired device started or stopped watching an agent, or sent one a message (viewer.watching).
WidgetPackages
The installed widget packages.
WidgetPackagesEvent
widgetpackages: every installed widget package.
WidgetRequests
The agents’ widget install requests waiting for the user.
WidgetRequestsEvent
widgetrequests: the install requests waiting for the user.
WidgetStorage
A widget package’s storage changed: which keys, never their values.
WidgetStorageEvent
widgetstorage: the keys of a widget package’s storage that changed.
WorkQueueChanged
The work queue changed.
WorkspaceStop
A headless workspace will stop at a time, or will not after all (server::host_control).

Traits§

Event
A broker event with a typed payload.
PerIdEvent
A broker event sent under a name per id: its prefix, then the id.

Functions§

is_client_event
Whether name is one of the client events.
is_per_id_event
Whether name is a per-id event’s name: one of the prefixes above, then an id.
is_srv_event
Whether only srv publishes name: a declared event, or a per-id one, that isn’t a client event. Its subscribers read it as its payload type, so the relay doesn’t take it from outside.
is_typed_event
Whether name is one of the events above (not a per-id one: is_per_id_event).
payload_data
An event’s data: its payload as JSON, or none for an event that carries none ((), a pure “something changed” signal), so such an event goes out with no data field at all.
publish_client_event
Publishes an event a process outside srv sent (POST /agentmux/wps/publish) if it is a client event: None if name isn’t one, an error if data isn’t its payload type.