Skip to content

fix(updates): withdraw a restart notice once its version runs - #112

Open
patrickjquinn wants to merge 1 commit into
mainfrom
fix/updates-stale-restart
Open

patrickjquinn wants to merge 1 commit into
mainfrom
fix/updates-stale-restart

Conversation

@patrickjquinn

Copy link
Copy Markdown
Owner

Found on the Q25 (reports/Q25 e2e 2026-11-28.md): 26112801 was running, yet the lock screen and Hub still showed "Restart to finish updating – 26112801 is ready" with a Restart now button. The notice was posted during a fallback boot into 26112501; the later boot into 26112801 had nothing to replace it, because its Updated notice had already been spent on an earlier boot.

When the probed state is Idle and the saved Restart notice names the running version, the notice row is closed once and its record dropped. A restart notice for another version is left alone.

Tests: updates:: unit tests pass (14), including the new running_the_version_a_restart_notice_asked_for_withdraws_it.

A fallback boot posts "restart to finish updating" for the newer
version. When the phone then boots that version, the Updated notice may
already have been spent, so nothing replaced the restart row and its
Restart now button stayed on the lock screen.
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