Repository navigation
feat(mobile): keep the route through gateway updates - #370
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 8, 2026 20:40
nixuuu
added a commit
that referenced
this pull request
Nov 8, 2026
Background refreshes changed a successful peer snapshot from fresh to
stale and back on every poll. The waiting message became a transient
disclosure on mobile and a changing status line on web. Keep the cached
snapshot fresh during refreshes; failed reads still expose stale status
and retain details.
Manual checks from mobile and web now reach the desktop app that owns
the gateway through the existing app-control channel. Linked checks use
the same path at their home. Requests coalesce, have a 10-second
cooldown, and wait up to 30 seconds for a newer completed check report.
Older desktops receive the existing check command without waiting for
unsupported fields. Owner checks remain enforced; checking the app does
not grant permission to replace gateway binaries.
Canopy rows show the app's actual check time, including the phone's OTA
check time. Older apps show `Check time unavailable`. Browser clients of
a desktop gateway also show its local app row.
Validation:
- `bun install`, `bun run gen:check`, `bun run typecheck`, `bun run
lint`, `bun run format:check`, `bun run check:tmp`, and the web build.
- Focused peer-cache regression coverage plus linked update/control and
timeout integration checks, one test file at a time. Includes completion
waiting, throttling, older desktops, non-admin owner checks, and
rejection of an unlinked owner.
- Browser review on an isolated port: light/dark, desktop/phone widths,
short/typical/long names, downloaded/error/offline states and check
timestamps. No UI test suites added.
- EAS CLI 27.4.1 production fingerprint generation before/after for both
platforms: iOS `2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3`, Android
`c5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d`; unchanged. Mobile edits are
JS/TS only. No native builds or publication.
Copy audit (`docs/copy.md` §8):
- Missing freshness information → `Checked {time}` / `Check time
unavailable`; short sentence-case labels distinguish app checks from
gateway polling.
- Browser omission → `Canopy on this computer`; uses the existing
product and computer terms. Local update guidance uses the existing
compact information control.
- No new errors, confirmations, jargon, repeated facts, or humor.
Existing action names remain verbs. Checked labels and long names at
desktop and phone widths; meaning remains visible without color or icon
shape.
The stale/fresh flip originates in #348; #369–#371 expose or share the
affected data. The local manual-check omission predates them. Release
publishing scripts/workflows and the frozen update protocol are
unchanged. Signed macOS installation/restart remains outside this
check-only verification.
Fixes: #348
Related: #369, #370, #371
This was referenced Nov 13, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 21, 2026
## Change The mobile client retires a pending restart when GetUpdates reports the running target version. Expired announcements and replays of a completed attempt can no longer restore the restart banner or footer status. The update result has one 15-second deadline across screens, and a late response without a checkpoint cannot settle a newer attempt. ## Verification - 21 tests passed in `mobile-routes.test.ts` and `paired-app-updates.test.ts` through `check:tmp`. Coverage includes replay on a new WatchOverview subscription and reconnection after gateway replacement. - Mobile typecheck, lint on the edited files and diff checks passed. - The Android emulator had no Canopy development build installed. Native verification remains outstanding. Fixes: #370
nixuuu
added a commit
that referenced
this pull request
Nov 22, 2026
## Change - Clear a same-version restart notice when a fresh read confirms that the standalone binary gateway is ready. Keep the notice during shutdown and startup, and ignore replays of a dismissed restart. - Close the restart details sheet when the notice is dismissed and let the sidebar show the current connection status. ## Verification - All 22 tests in `mobile-routes.test.ts` and `paired-app-updates.test.ts` passed through `check:tmp`. The regression test covers a delayed read, the restart phases, and replay after dismissal. - On the Android emulator, a test gateway kept serving the old announcement after reporting readiness. The details sheet closed, the banner cleared, and the footer changed from “Restarting…” to “Connected”. - Mobile typecheck, scoped formatting and lint, and the diff check passed. CI runs the repository-wide checks. The native check covered Android. ## Copy audit The existing status labels and Details action stay in use. “Restarting…” remains visible during the restart and “Connected” appears when the live connection is restored. Fixes: #370 Related: #1095
nixuuu
added a commit
that referenced
this pull request
Nov 24, 2026
Backport #1101 and #1125 to the open 0.7.0 beta series. The published beta.1 encountered a required Back-merge failure after publication. The new beta will run Release for the hotfix revision. - Clear the mobile restart notice when a fresh read confirms the standalone gateway is ready, and ignore replays of the completed restart. - Pass the release deploy key to the reusable Back-merge workflow. The environment key takes precedence. - Record the selected source revision on OCI image indexes and manifests. The mobile source and regression test match #1101. On this branch 22 focused tests passed through check:tmp, including the same-version restart regression. The diff check passed. The Android emulator scenario passed in #1101. CI runs the repository checks for this backport. A local squash-merge simulation against the current next and dev branches verified the return merge into dev. The merged tree adds one backport note in each of the two domain documents. The implementation and tests already match dev. The backport retains the existing mobile status text. Only its dismissal conditions change. Fixes: #370 Related: #1101 Related: #1125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
During an announced gateway update, the phone shows the computer and target version instead of a generic outage. It persists the pending announcement with the existing pairing, probes only the last working pinned route and retries foreground subscriptions on a 2.5-second cadence for the announced window, capped at five minutes. After expiry, ordinary route racing, backoff and error guidance resume.
Returning gateways show a brief success, failure or rollback with details. Peer announcements do not pin the phone's gateway route. Background/network pauses and the phone Tailscale guidance remain intact; sent RPCs are never replayed. This layer is rebased on the composer and Tailscale improvements already on
dev.Verification
bun run check:tmp(1837 pass, 161 skip, 0 fail across 326 files; no test-owned temp entries remained). Opt-in live tests were skipped.Copy audit — docs/copy.md §8: “Reconnecting…” / “Gateway unavailable” → “Updating Canopy on …”, “Restarting Canopy on …” and “Updated to …”, so a planned interruption names its cause and outcome. Failure/rollback notices offer Details and Open updates; raw reasons live in details. Sentence case, active short instructions, glossary, imperative buttons, no repeated empty facts, no humour, and accessible live statuses checked. Native short/typical/long visual checks remain a device verification gap.
Mobile runtime fingerprint:
bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactivebefore → after the stack: iOS2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3→ identical; Androidc5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d→ identical. JS/TS only; no dependencies, native changes or builds.Device follow-up: start a gateway update from another device while this phone is foregrounded, close/reopen the phone during the gap, and check the retained route, outcome and expiry back to normal/Tailscale guidance.