Repository navigation
fix(mobile): retire stale gateway restart notices - #1095
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 21, 2026 21:45
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
This was referenced Nov 22, 2026
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
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
mobile-routes.test.tsandpaired-app-updates.test.tsthroughcheck:tmp. Coverage includes replay on a new WatchOverview subscription and reconnection after gateway replacement.Fixes: #370