Repository navigation
fix(updates): withdraw a restart notice once its version runs - #112
Open
patrickjquinn wants to merge 1 commit into
Open
patrickjquinn wants to merge 1 commit into
patrickjquinn wants to merge 1 commit into
Conversation
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.
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.
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.