Skip to main content

Module notify_handlers

Module notify_handlers 

Source
Expand description

RPC surface of the notification Router — docs/specs/SPEC_OS_NOTIFICATIONS_SYSTEM_2026_09_24.md §3.3.

  • notify.emit renderer → router: a pane event the renderer is the authority for (turn outcome, waiting-for-input).
  • notify.focus renderer → router: this window’s focus state.
  • notify.ack presenter → router: user clicked / dismissed a toast.
  • notify.test Settings “Send test notification”.
  • notify.takeactivation new window → router: a click that arrived while no window was open.
  • block.reveal any renderer → router: reveal a block that lives in ANOTHER window. Same target resolution as a toast click, so it lives with the Router, which knows which windows are open (SPEC_REVEAL_BLOCK_ONE_PATH_2026_09_27.md §4.3).

conn_id is captured per connection so focus reports are keyed by window and dropped on disconnect (see websocket.rs’s disconnect path).

Structs§

BlockRevealParams
BlockRevealResult
BlockRevealedParams
block.revealed: the window named by block:reveal says how it went.
BlockRevealedResult
NotifyAckParams
NotifyAckResult
NotifyAttentionResult
notify.attention: the calls to action srv holds open now (backend/user_attention.rs), each as its userattention event’s data.
NotifyEmitParams
NotifyFocusParams
NotifyNoArgs
NotifyOk
NotifyTakeActivationParams
NotifyTakeActivationResult

Enums§

NotifyPaneEvent
Pane-level events the renderer reports. question accompanies input_waiting only; the router redacts it (§9.2).

Constants§

REVEAL_ACK_WAIT 🔒
How long block.reveal with await_ack waits for the window. Less than the renderer’s own deadline for a hand-over, so the caller hears a named failure rather than its own timeout.

Functions§

activate_in_stored_layout 🔒
LayoutStackActivate through the reducer, then mstore — the same dispatch → apply → publish shape as pane.moveTab. Best-effort: the renderer switches the pane itself on block:reveal, so a reducer that can’t apply it (no tree for the tab yet) only costs the head start.
block_reveal 🔒
block.reveal as called: reveal_block, and for a block whose workspace is open in no window, when the caller asked (open_if_closed), the workspace to open a window on.
block_revealed 🔒
block.revealed: the renderer’s answer to a block:reveal it was sent.
launcher_proven 🔒
Whether a press carries the launcher’s proof: the host registration secret the launcher made for srv, which agents never see. Every agent holds the instance key, so the key proves nothing here.
notify_ack 🔒
notify.ack: a toast was clicked, dismissed, or one of its buttons pressed.
notify_attention 🔒
notify.attention: the calls to action srv holds open now (backend/user_attention.rs), for a window that starts while one is.
notify_emit 🔒
notify.emit.
notify_focus 🔒
notify.focus: this connection’s window focus state.
notify_take_activation 🔒
notify.takeactivation: a click that arrived while no window was open.
notify_test 🔒
notify.test: Settings’ “Send test notification”.
press_for 🔒
The press on a pending shutdown toast’s cancel (keep) or do-it-now (now) button.
press_from_toast 🔒
A button on a pending shutdown’s toast (or a sensitive operation’s): the same calls the pane banner’s RPCs make, so exactly one of this and the window running out wins. Which request it is about comes from srv’s own record of the notification, never from the press, and is the request the toast was raised for: a press on a toast whose request already ended finds too_late and cannot touch a newer request for the same block. None when the id is no live shutdown notification.
register_notify_handlers
reveal_block 🔒
block.reveal: resolve the block’s tab and open window like a toast click, make the block its pane’s visible tab in the STORED layout (so a window that loads the tab fresh already shows it), then tell only that window’s renderer to reveal it (block:reveal). A workspace open in no window is out of scope: found: false, nothing changed.
router_for 🔒
shutdown_now 🔒
The banner’s “Close now”: ends the wait early, so it is the AgentMux window’s alone, proven (keeping is the safe direction and is open to any caller).