mirror of
https://github.com/pollen-robotics/microduck.git
synced 2026-12-03 02:47:45 +08:00
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