Skip to main content

Module viewer

Module viewer 

Source
Expand description

The desktop’s side of pairing a device with the viewer listener (backend::viewer, agentmux-mobile’s SPEC_AGENT_STATUS_AND_LIVE_PANE_FEED_2026_10_07 §13.2): the QR, the paired-devices list with Revoke, and an agent’s “hide from paired devices” flag. Reached over the full-key WebSocket only, like every RPC.

Constants§

NOT_LISTENING 🔒
Why there is no QR to show: the viewer listener is not up.

Functions§

can_send_impl 🔒
Turn a device’s send grant on or off. On needs a key on file: a device that paired without one can’t sign, so it must pair again first.
pair_start_impl 🔒
The agentmux://pair URL for a fresh code (cancelling the last one).
register
register_agent_hidden 🔒
register_can_send 🔒
register_devices 🔒
register_pair_start 🔒
register_revoke 🔒
register_stop_watching 🔒
register_watching 🔒
revoke_impl 🔒
Revoke a device: its token stops working on the next request, and every feed it has open is closed now.
stop_watching_impl 🔒
“Stop viewing”: end the device’s open feeds now, and refuse its next ones (stopped_by_host) until the person lets it watch again (resume). Its pairing and grants stay. Only a paired device can be stopped (the hold is cleared on revoke, so one for an unknown id would never be).
watching_impl 🔒
Who watches which agent now, each device named as it paired (for the “being viewed” strip and the status bar’s chip). A device no longer paired is left out: its feeds are closing.