Files
microduck/robotd/tests
Pierre Rouanet 830fa5e398 updater: the remote-session check counts mediad's WebRTC peers
The preflight's "no remote session" check asked robotd, which answered a
constant false from before mediad existed. So an update started over BLE
or duckctl rebooted the robot under a live call, and with os.apply now
permitted over WebRTC, one peer could reboot it under another's.

updaterd now reads the peer count mediad already publishes every second
(camera.json's consumers) through duck_ipc_proto::read_webrtc_peers. A
missing or stale file passes, as unknown always did. camera.json is now
written aside and renamed, so a torn read cannot say "nobody".

A WebRTC session asking for os.apply or os.switch is itself a peer, so
mediad sets interrupt_sessions on the request when no other peer is
connected (session::Seat). The rendezvous control lane carries no media
and is not counted.

robot.remoteSessionActive is removed. API_VERSION 50.

Assisted-by: Claude:claude-opus-5-5
2026-11-05 16:26:12 +01:00
..