Skip to content

fix(mobile): retire stale gateway restart notices - #1095

Merged
nixuuu merged 1 commit into
devfrom
fix/restarting-banner-persistence
Nov 21, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/restarting-banner-persistence

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 21, 2026

Copy link
Copy Markdown
Member

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
nixuuu enabled auto-merge (squash) November 21, 2026 21:45
@nixuuu
nixuuu merged commit 310afd1 into dev Nov 21, 2026
16 checks passed
@nixuuu
nixuuu deleted the fix/restarting-banner-persistence branch November 21, 2026 21:54
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant