Expand description
RPC surface of the notification Router —
docs/specs/SPEC_OS_NOTIFICATIONS_SYSTEM_2026_09_24.md §3.3.
notify.emitrenderer → router: a pane event the renderer is the authority for (turn outcome, waiting-for-input).notify.focusrenderer → router: this window’s focus state.notify.ackpresenter → router: user clicked / dismissed a toast.notify.testSettings “Send test notification”.notify.takeactivationnew window → router: a click that arrived while no window was open.block.revealany 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§
- Block
Reveal Params - Block
Reveal Result - Block
Revealed Params block.revealed: the window named byblock:revealsays how it went.- Block
Revealed Result - Notify
AckParams - Notify
AckResult - Notify
Attention Result notify.attention: the calls to action srv holds open now (backend/user_attention.rs), each as itsuserattentionevent’s data.- Notify
Emit Params - Notify
Focus Params - Notify
NoArgs - Notify
Ok - Notify
Take Activation Params - Notify
Take Activation Result
Enums§
- Notify
Pane Event - Pane-level events the renderer reports.
questionaccompaniesinput_waitingonly; the router redacts it (§9.2).
Constants§
- REVEAL_
ACK_ 🔒WAIT - How long
block.revealwithawait_ackwaits 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 LayoutStackActivatethrough the reducer, then mstore — the same dispatch → apply → publish shape aspane.moveTab. Best-effort: the renderer switches the pane itself onblock:reveal, so a reducer that can’t apply it (no tree for the tab yet) only costs the head start.- block_
reveal 🔒 block.revealas 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 ablock:revealit 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_lateand cannot touch a newer request for the same block.Nonewhen 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).