Repository navigation
fix(mobile): show the build a managed server update reports, and read only while connected - #52848
Conversation
… only while connected "Updated to" took the server's build from the read after the update, so a failed read left the old build and the same offer. The update's own reply names the build; it is shown at once. After a lost reply the read waits for the next visit unless the computer's list says its SSH to the server is up, so the phone never makes the desktop dial.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
After the phone updated a server the computer installed over SSH, the row could say "Updated" and then offer the same update again. That happened when the phone's next check didn't come through. Now it shows the build the update itself reported. Also, after a lost reply, the phone no longer asks the computer to check a server the computer has lost its SSH link to, because that would make the computer reconnect.
What Changed
activeVersion), so the phone writes it straight away and clears the offer for that build. The read still follows, to refresh the rest.managedServer.status→resolveLinkedOrcadContext→connect, that can make the desktop dial a server whose SSH dropped.Why
Linked Issue
No GitHub issue. These are review follow-ups to #52332.
Visual Proof
N/A: no new screens or copy. It fixes which build and state an existing row shows after a failed read or lost reply, which a capture can't produce on demand. The store runs are below.
Testing
These were scripted runs of the real managed-server store against a fake desktop.
updated, build0.1.0+old, offer0.1.0+newstill listedupdated, build0.1.0+new, no offermanagedServer.statusfailedupdatedNo committed test: this is store wiring that the runs above prove, and a unit test here would test a fake desktop.
pnpm check:changedpasses.Performance
None, because only a lost reply adds work: one relay list read, shared with any in flight or served from the cache. A server listed as down then gets zero status reads. There are no new subscriptions, timers or polling.
Risk
Level: Low
activeVersionhas always been part of the outcome.AI Disclosure
Review
Agent skill upstream boundary
Notes
pastLiveTerminalsonmanagedServer.update, and the host refuses the desktop-only options (fix(mobile): keep a phone's managed server update to Update anyway #52610).Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)