Skip to content

fix(ui): tell checking for updates apart from updating - #147724

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
fix/updates-page-checking-copy
Sep 14, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
fix/updates-page-checking-copy

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Closes #147503

What Problem This Solves

Opening Settings → Updates said “Updating…” while only checking for an update. A failed check was labeled as an update failure and offered recovery for an installation that never started.

User Impact

The page now says “Checking for updates…” while checking. “Update now” keeps its label and is disabled with an explanatory tooltip. A failed check shows a warning with its reason and offers “Check for updates” again; a previously known update remains available to install.

Why This Change Was Made

The view now receives checking separately from update execution. Check failures have their own banner, so they cannot replace a recorded update result or create a false update attempt. Existing update, restart, configuration, hold, retry, and reporting interlocks remain in place. A failed recheck keeps the actual failure visible even without a run record, reaches the update dialog that initiated it, and preserves a confirmed Git checkout update.

State Status row Primary button
Initial or manual check pending Checking for updates… (muted) Update now; disabled; title “Checking for updates…”
Update running or reconciliation pending Existing run/campaign status Updating…; disabled
Check failed, update previously known Could not check for updates: {error} (warning) Update now; enabled when permitted
Check failed, Git diverged with known remote commits (checks disabled; no target) Could not check for updates: {error} (warning) Update now; enabled when permitted
Check failed, no known update Could not check for updates: {error} (warning) Update now; disabled; title explains that a successful check is required
Up to date Unchanged Unchanged
Update available Unchanged Unchanged
Real update failure Existing failure/report Existing retry behavior
Restart pending Existing restart status Updating…; disabled

Evidence

Final head 5440e34bd0e39d48d9cfbc77b464214961168a52 retains the production code from the full-suite and screenshot evidence below. The final test-only follow-ups align the status-refresh mock with its boolean result and update the existing stale-Git-refresh browser proof to expect the checking state while its response is deferred.

Fresh regression proof: the same Dev checkout (1 local commit, 3 remote commits, checks disabled, no advertised target) and rejected status request on 5117090024855196bc525962bd10abfbaa902072 and repaired head 2a3cbbaf365e0d3ce08134c4d4ef3e34fa5d886e. The warning remains visible; Update now changes from disabled to enabled. Both captures were inspected, use synthetic data, and show the real route at 1440 × 1300 in dark English.

Before the diverged-checkout fixAfter
Diverged checkout after failed status check: beforeDiverged checkout after failed status check: after

Earlier evidence for the checking/copy changes follows. These captures predate the diverged-checkout repair.

The real /settings/updates route was captured in Chromium at 1440 × 1300, dark theme, English, with identical synthetic Gateway data. Before is parent be0494ea666d2267c7814dc2e7f9b86e88144776. Pending responses were held; timeout captures use the actual 5,000 ms request timeout. Each image was inspected. The resolved-availability control images are byte-identical.

StateBeforeAfter
Check pendingCheck pending: beforeCheck pending: after
Check timed outCheck timed out: beforeCheck timed out: after
Update available (control)Update available (control): beforeUpdate available (control): after
Real failure retained after check timeoutReal failure retained after check timeout: beforeReal failure retained after check timeout: after
Check timeout inside the update dialogCheck timeout inside the update dialog: beforeCheck timeout inside the update dialog: after

The recovery pairs use actual dialog actions with the same synthetic responses on the parent and candidate: a failed update without a run record followed by a status timeout, and a retained running report followed by a timeout from the dialog’s “Check status” action.

Validation of the repaired candidate:

  • Before the repair, the new renderer and page-integration regressions both failed on the disabled Update now button (2 failures, 87 passes).
  • node scripts/run-vitest.mjs run --config ui/vitest.config.ts ui/src/pages/config ui/src/app — 154 files, 2,547 tests passed on 2a3cbbaf365e0d3ce08134c4d4ef3e34fa5d886e, including the configuration browser tests.
  • node scripts/check-changed.mjs -- <all 15 PR files> on 512fc47af0cb081bb6d0cc047e3f713ccce689f1 — passed, exit 0: core/UI types, i18n, guards, dead exports, formatting, and lint. No baseline or generated translation changes.
  • Final focused rerun on 512fc47af0cb081bb6d0cc047e3f713ccce689f1 — 3 files, 113 tests passed: Updates renderer, routed configuration page, and update confirmation runtime. This head only aligns a test mock with the boolean status-refresh result introduced on main; its production code matches the full-suite and screenshot head above.
  • Bundled Chromium E2E: stale Git refresh, Updates settings, and shared update confirmation — 3 files, 14 tests passed. The old pending-state assertion first failed by waiting for stale availability; the repaired test requires “Checking for updates…” while pending, then “Up to date” and zero stale availability after the response.
  • node scripts/check-changed.mjs -- ui/src/e2e/update-stale-git-refresh-proof.e2e.test.ts — passed, exit 0, including the UI E2E type graph, guards, formatting, dead exports, and lint. Combined with the unchanged 15-file validation above, this covers all 16 PR files.
  • oxfmt on all repair files and git diff --check — passed.
  • Fresh routed browser proof: after a rejected status request, known Git behind and diverged commits keep Update now enabled; unknown availability keeps it disabled with the explanatory title. Manual retry blocks actions while pending, clears the warning on success, and restores availability. These checks sent no update.run request.
  • Source review found no actionable regression across the full PR and affected consumers; both follow-up test findings are resolved. Installation and restart were not executed.
  • Full CI run passed on reviewed head 5440e34bd0e39d48d9cfbc77b464214961168a52. All effective checks completed successfully; superseded contexts were accounted for. No CI rerun was needed.

Consumer coverage (source trace plus the application/configuration suite unless stated otherwise):

  • createApplicationUpdateOverlays → ConfigPage and createUpdateProgressWatcher: status errors retain availability, schedule, run, and actual failure. Success, context reset, and a new update request clear the separate check warning. Request/connection/admin fencing remains intact.
  • ConfigPage.isUpdateBusy → renderUpdates: only execution/reconciliation drives “Updating…”. isCuratedConfigMutationDisabled, sessionObserverBusy, and ConfigProps.updating explicitly retain updateStatusRefreshing. This preserves policy, meeting capture, session storage, memory, Talk, security, generic configuration (view/session-sources), and observer (view-appearance-preferences) locks.
  • renderUpdates: primary update, Hold 1 h, Check status, Retry update, and Report update failure retain their checking interlocks. Check-failure retry uses the same refresher. Known package targets and Git behind/diverged commits remain actionable after a failed check; unknown availability stays disabled with an explanatory title.
  • app-shell-view and sidebar-issue-item → sidebar-update-card: their existing running/reconciliation busy projections and confirmation flow remain unchanged. sidebar-attention-update and sidebar-menus-render retain the existing shared isUpdateActionable policy. The Settings Apply/save-indicator projection also remains unchanged.
  • Shared watcher path: app-shell-view → app-sidebar-base → app-sidebar-render → sidebar-attention → sidebar-attention-panel.runtime → sidebar-issue-item → sidebar-update-card → confirmAndStartUpdateRuntime. Settings uses the same watcher directly. Both dialog entry modes retain real run/admission failures while showing check errors and clearing them after recovery.
  • settings-sidebar receives updateBusy and watchUpdateProgress but currently does not read either prop. navigation-surface forwards them to its floating card, whose current visibility requires UI refresh and uses the reload action. These inactive paths were checked by source.
  • custodian-alert-card retains a dormant target.kind === "update" call to confirmation, watcher, and status refresh. Current producers in update-triage.runtime and sidebar-attention-items emit navigation to Updates or Model Providers; the alert store does not hydrate external update actions. The former producer was removed by @vyctorbrzezowski in improve(ui): unify sidebar footer and issues panel #125070. Source/history checked; no active Custodian update flow is claimed or introduced.
  • chat.updating: Settings now uses updates.page.updating; the remaining shared dialog use represents an actual update request. Warning color is scoped to the failed-check status row.

Risk and coverage

The main risk is confusing an in-flight or failed read with an update outcome. Renderer state tests, the routed initial-check/timeout/retry flow, retained-run and admission-failure tests, Git checkout availability (including diverged with retained remote commits), and the application suite cover that boundary. Warning text color is scoped only to the new check-failure state. No updater, service, protocol, configuration, or stored-state contract changes.

No live installation or Gateway restart was performed. Browser evidence uses the mock Gateway and synthetic data. Foreign translations follow the existing post-merge localization workflow. Exact-head CI and native landing gates passed. Merged as 66d697c958dffd64f53706eab78c24db9b6271e0.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 1:03 PM ET / 17:03 UTC (Revision 3).

ClawSweeper review

What this changes

The Control UI distinguishes update checks from installation progress, shows check failures as warnings, and preserves recorded outcomes and previously known updates.

Merge readiness

✅ Ready for maintainer review

The fix remains necessary on current main. Both previous review findings are resolved, and no new blocking defect was found. The inspected before/after screenshots support the changed UI behavior.

Priority: P2
Reviewed head: 5440e34bd0e39d48d9cfbc77b464214961168a52

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-supported UI repair with both previous blockers resolved and no remaining actionable finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected production-route Chromium screenshots show corrected checking copy and retained warning with an enabled known-update action; the verified body documents timeout and recovery observations using synthetic Gateway data. Production code is unchanged since the repaired proof revision. No live installation or restart is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected production-route Chromium screenshots show corrected checking copy and retained warning with an enabled known-update action; the verified body documents timeout and recovery observations using synthetic Gateway data. Production code is unchanged since the repaired proof revision. No live installation or restart is claimed.
Evidence reviewed 8 items Current main still contains the reported cause: The fetched main revision still includes updateStatusRefreshing in isUpdateBusy, which supplies installation-busy presentation to Settings. The related merged status-feedback PR does not replace this page-level repair.
Latest release retains the same conflation: The v2026.9.4 source also folds status refreshing into update busy. GitHub resolves the annotated release tag to commit 3a9d69d.
Separate presentation state preserves outcome ownership: Status errors populate updateStatusCheckBanner without replacing the run or outcome banner; successful reads, context changes, and new update requests clear it. The existing refresher retains connection, generation, revision, and administrator checks.
Findings None None.
Security None None.

How this fits together

Settings → Updates receives availability, campaign, and installation status from the Gateway through the application overlay controller. That controller feeds the settings page and shared update dialog while retaining authoritative update outcomes.

flowchart TD
  A[Gateway status and events] --> B[Update overlay controller]
  B --> C[Check progress and warnings]
  B --> D[Recorded update outcome]
  C --> E[Settings Updates page]
  D --> E
  C --> F[Shared update dialog]
  D --> F
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +81, Tests +273. Total +354 across 16 files.

View PR surface stats
Area Files Added Removed Net
Source 10 100 19 +81
Tests 6 282 9 +273
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 382 28 +354

Review metrics

Metric Value Why it matters
Production versus regression coverage production net +81 lines; tests net +273 lines Production growth separates check feedback from update outcomes; most added lines exercise the affected state and recovery contracts.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #147503
Summary: This PR directly addresses the linked checking-versus-updating report; the merged status-feedback work is complementary.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep checking feedback separate within the existing overlay owner while preserving update outcomes, known availability, and shared action interlocks.

Do we have a high-confidence way to reproduce the issue?

Yes: current main visibly maps a pending status check to installation-busy presentation, and the supplied before/after browser captures demonstrate the distinction. This review did not execute a reproduction.

Is this the best way to solve the issue?

Yes: the patch uses the existing overlay and confirmation owners, preserves their interlocks, and fixes both previously identified test-contract mismatches without changing updater or persisted-state contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against cb5c760d943e.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected production-route Chromium screenshots show corrected checking copy and retained warning with an enabled known-update action; the verified body documents timeout and recovery observations using synthetic Gateway data. Production code is unchanged since the repaired proof revision. No live installation or restart is claimed.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This corrects misleading update-state feedback in an existing settings flow without changing installation machinery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected production-route Chromium screenshots show corrected checking copy and retained warning with an enabled known-update action; the verified body documents timeout and recovery observations using synthetic Gateway data. Production code is unchanged since the repaired proof revision. No live installation or restart is claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected production-route Chromium screenshots show corrected checking copy and retained warning with an enabled known-update action; the verified body documents timeout and recovery observations using synthetic Gateway data. Production code is unchanged since the repaired proof revision. No live installation or restart is claimed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected production-route Chromium screenshots show corrected checking copy and retained warning with an enabled known-update action; the verified body documents timeout and recovery observations using synthetic Gateway data. Production code is unchanged since the repaired proof revision. No live installation or restart is claimed.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-14T02:20:31.075Z sha 5117090 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T16:36:27.135Z sha 2a3cbba :: needs changes before merge. :: [P2] Return a boolean from the status-check test callback | [P2] Update the deferred-status browser test for the checking state

@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/updates-page-checking-copy branch from c4c902e to 2a3cbba Compare September 14, 2026 15:42
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review September 14, 2026 15:42
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the fix/updates-page-checking-copy branch from 512fc47 to a933acd Compare September 14, 2026 16:39
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 14, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 66d697c into main Sep 14, 2026
134 of 135 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the fix/updates-page-checking-copy branch September 14, 2026 17:54
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
* fix(ui): tell checking for updates apart from updating

* fix(ui): preserve diverged checkout updates after check errors

* test(ui): align update status mock with boolean result

* test(ui): align stale update refresh proof with checking state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Updates page says "Updating…" while it is only checking for updates

1 participant