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://pairURL 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.