Skip to content

OS update control keeps its pre-reboot check after a terminal verdict (reopen offers the installed version again) #3430

Open

Description

@VijitSingh97

What's the problem

On an appliance, the OS update control keeps its pre-reboot update check after the host delivers a terminal reboot verdict (updated or rolled_back). After Check, Download, Install and Reboot, reopening the update dialog in the same tab can show both "Running v2.0.0" and "Update v2.0.0 is available", with Download offered again. A page reload clears it. The cause is in dashboard/mining_dashboard/web/static/system/osupdate.mjs: when the host answers after a reboot, the control closes its dialog and resets only the phase and the typed confirmation, not check. targetVersion() and download() then reuse that stale check.

Scope, 2026-11-01: this is fixed in the current control for v2.0.3. The owner ruled on 2026-10-31 that bugs in code that 2.0.x ships go into the next patch release, and that real current-UI bugs get patch fixes, with features and redesign staying deferred. The 2026-10-27 scope, which fixed this only in the future Settings > Updates dialog (#2530), is kept below as superseded. #2530 must still meet the same requirement on its own, because that dialog replaces this control in 2.1.0.

What it impacts

  • Appliance users who update the OS from the dashboard and reopen the update dialog in the same tab. They see a false "update available" for the version they already run, together with a Download button. The control renders only on an appliance with the control channel on.
  • The fixed code runs in the release that is installed when the update starts, so the fix takes effect from the update after 2.0.3 onward. An update from 2.0.2 to 2.0.3 still shows the defect once.
  • Workaround until then: reload the page after an update before using System update again.

How I found it

Static review of the frozen 2.0.0 RC5 commit c59e5ad, during RC testing. The defect was introduced by the #3415 fix (PR #3419). That PR's mounted test starts at reboot-pending with check: null, so it never exercises a populated check. The defect was recorded as a 2.0.0 Known issue under the owner's 2026-10-12 "ship if serviceable" direction. It was re-read on develop-v2.1.0 at 7cb22666 and is still present. Nothing was run.

How important is it

Medium-high. The lean roadmap lists it as P1 (Fix what users hit on 2.0.0), area Appliance/OS. A home user sees a false status right after updating. The reload workaround mitigates it and no data is lost, so it does not block a release. Under the 2.0.3 rule, it ships in 2.0.3 if it has a passing exact-head proof by Thu 2026-11-05 EOD; otherwise it moves to 2.0.4.

Acceptance criteria

  • On an appliance fixture with the control channel on, start the current OS update control from a populated pre-reboot check (Check, Download, Install, Reboot). Deliver the updated verdict in the same tab, without a reload, and reopen it. The control shows the running version as current, with no "available" text and no Download offer, until a fresh check finds a newer version.
  • Repeat with the rolled_back verdict. The pre-reboot check is discarded, and reopening runs a fresh check (or shows the up-to-date state) and offers only what that fresh check returns.
  • The same holds across the reboot's disconnected and reconnected states of the same tab.
  • The regression test starts from a populated check, not check: null. It runs under node --test and Playwright, and it fails when the clearing is reverted locally.
  • The change is limited to the current control. The typed confirmations, host validation and secret handling are unchanged, and no new control is added.
  • Documentation that describes post-update behavior is updated, and the 2.0.x Known issue entry for this defect is resolved in the changelog. No explanatory code comments are added.

Possible solutions

  • Discard the cached check when the control accepts a terminal verdict, then run a fresh check on the next open.
  • Do not cache the check at all: derive the offer from the host's current state each time the control opens.
  • Tie the cached check to the running version, and drop it when the running version changes.
Scope of 2026-10-27, superseded 2026-11-01 (fix only in Settings > Updates, #2530)

Acceptance criteria

  • On an appliance fixture with the editor on, start the Update Pithead dialog from a populated pre-reboot check (Check, Download, Install, Reboot). Deliver the updated verdict in the same tab, without a reload, and reopen the dialog: the card shows the running version as current, with no "available" text, no Update Pithead button and no Download offer until a fresh check finds a newer version.
  • Repeat with the rolled_back verdict: the earlier pre-reboot check is discarded, and reopening runs a fresh check (or shows the up-to-date state) and offers only what that fresh check returns.
  • The same holds across the reboot's disconnected and reconnected states of the same tab.
  • The regression test starts from a populated check, not check: null. It runs under node --test and Playwright, and fails when the dialog is changed to keep the pre-reboot check (shown by reverting the clearing locally).
  • The change lives only in Settings > Updates (Sovereign: organize mining and advanced settings without losing fields #2530) and adds no counted control. It leaves the typed confirmations, host validation and secret handling of the dialog unchanged, and the dialog's post-verdict state is covered by Sovereign: organize mining and advanced settings without losing fields #2530's 375 px and contrast checks.
  • Matching documentation is updated where it describes post-update behavior, and no explanatory code comments are added.

Possible solutions

  • Discard the cached check at the moment the dialog accepts a terminal verdict, then run a fresh check on the next open.
  • Do not cache the check in the dialog at all: derive the offer from the host's current state each time the dialog opens.
  • Tie the cached check to the running version, and drop it when the running version changes.

Prerequisite: Settings > Updates (#2530) lands first. This issue stays blocked until it closes, and the runner resumes it then.

Earlier scope, kept as evidence only (superseded 2026-10-27; do not implement from it)

What's the problem

Found by static review of frozen RC5 c59e5ad during 2.0.0 RC testing. It was introduced by the #3415 fix (PR #3419).

Problem

dashboard/mining_dashboard/web/static/system/osupdate.mjs:151-152: when a terminal reboot verdict (updated / rolled_back) closes the update dialog, the control keeps its pre-reboot state.check. After Check → Download → Install → Reboot, reopening System update in the same tab can show both "Running v2.0.0" and "Update v2.0.0 is available", with Download offered again. targetVersion() and download() reuse that stale check. A page reload clears it.

The new mounted test (#3419) starts at reboot-pending with check: null, so it misses this path.

Test

Playwright and node --test: start from a populated pre-reboot check (Check → Download → Install → Reboot), deliver the terminal verdict, then reopen the control. It must show no stale "available" or Download, and must be red on c59e5ad.

2.0.0 disposition

A Known issue (operator, under the owner's 2026-10-12 "ship if serviceable" direction; RC5 is not re-frozen). Workaround: reload the page after an update before using System update again. The fix lands in 2.0.1. Because this code runs in the OLD release's page during an update, the 2.0.1 fix takes effect from the 2.0.1 → next update onward.

what it impacts

Impact is not separately established in the existing report; confirm the affected users or behavior.

How I found it

Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Expected

Accepting a terminal verdict clears the cached check. Reopening the control runs a fresh check, or shows the up-to-date state.

possible solutions

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. added this to the v2.x - post-GA milestone on Oct 12, 2026
  2. added
    bug
    dashboard
    on Oct 12, 2026
  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Moved to v2.1.0 (owner, 2026-10-21): all work on the current dashboard UI is deferred until the lean 4-page UI, which must not repeat this problem.

  4. added a commit that references this issue on Oct 23, 2026
  5. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    Contributor

    Blocked on #2530. Blocked on pithead#2530: the accepted lean UI spec assigns OS updates to its new Settings page, while the standing ruling forbids further work on the current dashboard UI. Read-only reconnaissance confirmed the stale-check defect remains on develop-v2.1.0; no files changed, tests ran, bench jobs or PR were created. Resume after Settings lands, then fix and test the populated-check reboot/reopen flow in the replacement control.

    The runner resumes this issue when that one closes.

  6. added
    blocked
    on Oct 27, 2026
  7. removed this from the v2.1.0 milestone on Oct 31, 2026
  8. 2 remaining items

  9. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    Contributor

    Operator: re-scoped for v2.0.3 under the owner's 2026-10-31 ruling that real current-UI bugs get patch fixes. The fix now goes into the current OS update control (system/osupdate.mjs), not only into the future Settings > Updates dialog. The previous body is kept in the collapsed sections. #2530 still has to meet the same requirement, because that dialog replaces this control in 2.1.0. The runner's wait on #2530 is released.

  10. pithead-developer commented on Nov 7, 2026

    @pithead-developer
    Contributor

    Operator, 2026-11-07: moved to v2.0.4 by the owner's 2.0.3 scope ruling today. It has no passing exact-head proof and its branch needs a rebuild, so it will not hold the 2.0.3 cut. It is picked up again when v2.0.4 opens after the cut.

  11. pithead-developer commented on Nov 13, 2026

    @pithead-developer
    Contributor

    Moved to v2.0.5 (owner-approved backlog groom, 2026-11-13): a reload clears it, and #4057/#4058 largely cover it.

  12. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): removed the blocked-by link to #2530. The 11-01 comment moved the fix into the current OS update control and released the wait on the 2.1.0 redesign, so the link only held a shipped-code bug behind a later release.

  13. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v2.0.6 to v2.0.5. Current-UI bug on the 2.0.x OS update control; real current-UI bugs get patch fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedbugdashboard

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions