Skip to content

fix(update): show status refresh feedback and earlier disk warnings - #147883

Merged
steipete merged 1 commit into
mainfrom
codex/update-preflight-status-feedback
Sep 14, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/update-preflight-status-feedback

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Failed updates can show only generic npm-bypass advice, while Check status appears to do nothing and low disk space is reported only after registry and schema work.

Related: #147771 (improves diagnostics produced by invalid-config preflight).

User Impact

Operators get visible pending, success, error, and disconnected feedback when checking update status. New schema-preflight failures retain their causal diagnostic, and low-space warnings appear before registry lookups and database validation, including in update history and the Control UI.

Low-space estimates remain warnings rather than a hard stop. The installed 2026.9.4 updater runs these checks before replacing itself, so this candidate cannot repair that driver's initial attempt or reconstruct diagnostic text already discarded from saved history. The original incident still needs its full host log for attribution.

Why This Change Was Made

The failure summary kept the final output line, which is generic recovery advice for schema refusals. Preserve the leading diagnostic for that step while retaining other subprocess summaries. Move the existing package disk check to target resolution and retain its warning through the existing run ledger. The status controller now confirms whether it actually applied a response, so the dialog does not announce a refresh for a discarded or unavailable request.

Evidence

  • 139 focused tests pass across update reports, the CLI disk-warning regression, package/artifact helpers, and Control UI update flows. Regressions reproduced the original missing diagnostic, late warning, and absent status feedback before repair.
  • Core, UI, and affected test typechecks pass. Formatting, changed-file lint/style checks, i18n, unused exports, import cycles, and the selected repository guards pass.
  • Independent P2 review found no actionable issues.
  • Real Chrome proof uses the production dialog with a synthetic, unchanged historical failure record. The before/after difference is visible refresh acknowledgement; the retained old diagnostic is intentionally unchanged.
  • No live operator Gateway was modified. Published-driver qualification is now verified in the CI job below.

Published-driver upgrade qualification

The published-upgrade-survivor CI job passed in 197 seconds with published [email protected], scenario legacy-operator-state, and automatic authenticated restart. CI built candidate version 2026.9.4 at merge-test commit 91735501f058d004c1dce15e3cf3a0b55fdfa47c, combining this PR head 2ea566cf032e73ca6d65f58580f9ec9990a79e94 with base 28dd17e8a15efa4bd9d20402213798ea9a53c73f.

The registered lane installs the published baseline, seeds existing operator state, invokes its actual updater against the built candidate tarball, and checks installed version, service replacement, schemas and migration/preservation before standalone Doctor, Gateway health/readiness/RPC, cron ownership, a candidate agent turn, an already-current second update, and clean Doctor results. The overall CI gate for this PR head also passed.

This is 2026.9.3-to-candidate qualification, not a reproduction of the original 2026.9.4 low-disk incident. CI retained the job log but did not upload the per-scenario JSON, so individual phase timings and whether permitted fixture capability consent was needed are unavailable.

Before checking status After checking status
Before: status check has no visible acknowledgement After: status refreshed acknowledgement above the retained failure

Preserve the causal schema-preflight diagnostic instead of its generic npm
bypass footer. Check package disk space before registry and schema work and
retain low-space warnings in update history without introducing a hard stop.

Show pending, successful, failed, and disconnected status checks in the update
dialog. Only acknowledge refresh responses that the controller actually applies.
@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 docs Improvements or additions to documentation app: web-ui App: web-ui cli CLI command changes size: M maintainer Maintainer-authored PR labels Sep 14, 2026
@steipete
steipete marked this pull request as ready for review September 14, 2026 04:24
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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: blocked before merge. Reviewed September 14, 2026, 12:31 AM ET / 04:31 UTC.

ClawSweeper review

What this changes

The PR adds visible update-status feedback, moves package disk warnings earlier, and preserves the leading schema-failure diagnostic in update reports.

Merge readiness

⛔ Blocked before merge - 2 items remain

This remains useful, distinct work, and the maintainer label protects it from automated closure. No actionable patch defect was found; required upgrade qualification remains incomplete.

Priority: P2
Reviewed head: 2ea566cf032e73ca6d65f58580f9ec9990a79e94

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and has meaningful regression coverage, but required upgrade proof is incomplete.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 9 items Pinned source and introduction boundary: The checkout matches the supplied original head. The merge-base comparison confirms the introduced paths; unrelated base-branch changes were excluded. The working tree remained clean and diff whitespace checks passed.
Status acknowledgement follows the existing response owner: The refresher returns true only after applying a current response; disconnected, superseded, rejected, and revoked-access requests return false. The dialog consumes that result and disables check/retry controls while checking or disconnected.
Earlier advisory warning preserves existing ownership: Target resolution performs the existing disk check before registry metadata requests, records warnings through the existing ledger, and retains executor-fence validation. No new disk threshold, hard refusal, storage schema, or package execution source is introduced.
Findings None None.
Security None None.

How this fits together

OpenClaw’s updater records installation progress and failures in update history. The Control UI reads that history through the Gateway and offers status checks and confirmed retries.

flowchart TD
  A[Operator requests update] --> B[Package target resolution]
  B --> C[Advisory disk check]
  C --> D[Registry and schema checks]
  D --> E[Update history]
  F[Operator checks status] --> G[Gateway status response]
  E --> G
  G --> H[Dialog feedback and retained report]
Loading

Before merge

  • Resolve merge risk (P1) - Published-updater-to-candidate qualification remains unrun; the supplied screenshots do not establish package-upgrade behavior.
  • Complete next step (P2) - Add the repository-required published-driver × candidate upgrade evidence to the PR body, with private details redacted. Updating the body should trigger re-review; otherwise ask a maintainer to comment @clawsweeper re-review.
Agent review details

Security

None.

PR surface

Source +80, Tests +86, Docs +6. Total +172 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 14 115 35 +80
Tests 9 102 16 +86
Docs 2 7 1 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 25 224 52 +172

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the existing updater and status-controller ownership, with advisory warnings and truthful feedback, backed by the required published-driver upgrade qualification.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the existing updater and status-controller ownership, with advisory warnings and truthful feedback, backed by the required published-driver upgrade qualification.

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

Yes, source establishes the late disk warning, final-line diagnostic selection, and missing dialog acknowledgement on the reviewed main snapshot; the supplied screenshots demonstrate the visible feedback difference. This review did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes, the patch extends the existing owners and preserves advisory behavior, response freshness, and historical records; upgrade qualification is still needed before landing.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs update diagnostics and recovery feedback without changing installation policy or demonstrating an urgent runtime regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Label justifications:

  • P2: This repairs update diagnostics and recovery feedback without changing installation policy or demonstrating an urgent runtime regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • jalehman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add published-driver × candidate qualification evidence, preserving the stated limitation that candidate code cannot repair the old driver's initial checks.

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.

@steipete steipete self-assigned this Sep 14, 2026
@steipete
steipete merged commit e7f19d4 into main Sep 14, 2026
276 checks passed
@steipete
steipete deleted the codex/update-preflight-status-feedback branch September 14, 2026 05:43
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 14, 2026
Build on the target-resolution warning checkpoint from #147883. Reuse the snapshot owner’s known SQLite-family budget and placement policy; refuse only a known shortfall at every eligible destination and record warnings otherwise. Preserve no-op updates and the complete post-staging check.
obviyus added a commit that referenced this pull request Sep 14, 2026
Main fails its startup check: 362,012 B exceeds 361,938 B. Use the approved
1 KiB cap increase for scoped catalog invalidation (#147845), remote
workspaces (#147773), and update-status feedback (#147883). Deferring the new
workspace labels saved only 64 B and still failed at 361,952 B. Baseline
362,012 B; the 512 B growth and 64 B variance allowances are unchanged.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QnwfB1PDNraoifmaDYPBPJ
obviyus added a commit that referenced this pull request Sep 14, 2026
Main fails its startup check: 362,012 B exceeds 361,938 B. Use the approved
1 KiB cap increase for scoped catalog invalidation (#147845), remote
workspaces (#147773), and update-status feedback (#147883). Deferring the new
workspace labels saved only 64 B and still failed at 361,952 B. Baseline
362,012 B; the 512 B growth and 64 B variance allowances are unchanged.
steipete added a commit that referenced this pull request Sep 14, 2026
Keep connection and read-error facts in the progress snapshot, represent status checks with one request state, and reuse the recovery predicate. Remove redundant test waits and the warning assertion covered before registry lookup. Preserve the behavior introduced in #147883.
obviyus added a commit that referenced this pull request Sep 14, 2026
AI-assisted.

## What Problem This Solves
Main fails its own structural checks, so every open PR is red: `check-lint-core-2` (the sidebar session-ownership test helper is over the 700-line rule since #147610), the chat transcript controller test (over the 1,000-line rule since #147612), and `control-ui-performance` (startup JS gzip 362,012 B exceeds the 361,938 B limit after #147845, #147773 and #147883).

## Why This Change Was Made
These repairs belong on main, in one PR.

- Lint: the avatar cases move from `session-ownership.ts` into a sibling case file in the directory's existing pattern (610 lines remain). Assertions and registration are unchanged.
- Chat lint: the four deferred-message-reveal cases move into a sibling test file. Their assertions, names and shared setup/cleanup remain unchanged, and the canonical test list preserves their isolated runner.
- Budget: the smallest whole-KiB cap step, 353 → 354 KiB, with the baseline refreshed to the measured 362,012 B. Deferring the new workspace labels saved only 64 B and still failed at 361,952 B, so a reduction was not available; the immediate Home and diagnostic frames stay intact. Follows #147574 and #146526.

## User Impact
None. No product behavior or asset changes.

## Evidence
- Lint: the max-lines check fails on main and passes here; 426 sidebar tests pass.
- Chat lint: pinned main fails at 1,010 counted lines; the candidate merge passes the same lint rule. All 146 affected chat tests pass, including the four moved cases in the isolated runner. The local preflight and test-root partition checks pass.
- Budget: same-toolchain comparison, last passing source 361,718 B, main 362,016 B (+298 B), fresh main and this candidate both 362,012 B (0 B asset delta). `pnpm ui:check-performance:base <main>` fails before the policy refresh and passes afterward. 552 focused tests pass.

## Compatibility
Cap 353 → 354 KiB; baseline 362,012 B; the 512 B growth and 64 B variance allowances are unchanged.

## Consumers
The performance check and the build size report read the same policy; the sidebar test suite registers the moved cases from the new file, and both UI test runners retain isolated chat-test registration.

Co-authored-by: Ayaan Zaidi <[email protected]>
steipete added a commit that referenced this pull request Sep 14, 2026
Keep connection and read-error facts in the progress snapshot, represent status checks with one request state, and reuse the recovery predicate. Remove redundant test waits and the warning assertion covered before registry lookup. Preserve the behavior introduced in #147883.
steipete added a commit that referenced this pull request Sep 14, 2026
* fix(update): refuse staging below the known disk-space bound

Estimate installation, config-copy, and initial canary snapshot costs on their actual filesystems before staging. Preserve the full post-staging inventory and warn when capacity estimates are incomplete.

* wip: L326 disk preflight

* fix(update): limit preflight refusal to state snapshots

Build on the target-resolution warning checkpoint from #147883. Reuse the snapshot owner’s known SQLite-family budget and placement policy; refuse only a known shortfall at every eligible destination and record warnings otherwise. Preserve no-op updates and the complete post-staging check.

* chore: refresh update snapshot CI

* chore: refresh update snapshot CI after main repair
steipete added a commit that referenced this pull request Sep 14, 2026
Keep connection and read-error facts in the progress snapshot, represent status checks with one request state, and reuse the recovery predicate. Remove redundant test waits and the warning assertion covered before registry lookup. Preserve the behavior introduced in #147883.
steipete added a commit that referenced this pull request Sep 14, 2026
* refactor(update): consolidate status check state

Keep connection and read-error facts in the progress snapshot, represent status checks with one request state, and reuse the recovery predicate. Remove redundant test waits and the warning assertion covered before registry lookup. Preserve the behavior introduced in #147883.

* test(ui): reuse shared server for accent selection

Keep the existing accent and persistence assertions while replacing the private mock-dev subprocess with the suite-owned server and a signed-in mock Gateway.

* test(ui): keep cloud recovery history consistent

Use the same durable assistant reply and producer run identity in history and live events. Preserve cloud recovery assertions and deadlines when terminal delivery precedes the persisted reply.

* test(wizard): run recovery integration in the broker host

Route the real shared-state consumer through the existing isolated infra forks and exclude it from the wizard thread pool. Preserve recovery assertions and broker admission guards after the metadata-worker migration.

* chore(test): drop routing changes already landed on main

Main now routes wizard recovery through the database forks and excludes it
from the wizard thread pool (#148337). Remove this PR's duplicate changes
so the final merged list contains the test exactly once.

* fix(test): remove duplicate wizard recovery registration

The independent routing additions in #148337 and #147684 registered the
same test twice and stopped CI shard planning. Retain the canonical entry
after setup.test.ts and remove the duplicate before it.

* test(custodian): follow immediate wizard choices

Choose Twitch through the current two-option button instead of the retired
radio and Continue controls. Preserve the typed answer, single session
rotation, and no-replay assertions after the UI change in #148300.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
…penclaw#147883)

Preserve the causal schema-preflight diagnostic instead of its generic npm
bypass footer. Check package disk space before registry and schema work and
retain low-space warnings in update history without introducing a hard stop.

Show pending, successful, failed, and disconnected status checks in the update
dialog. Only acknowledge refresh responses that the controller actually applies.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
AI-assisted.

## What Problem This Solves
Main fails its own structural checks, so every open PR is red: `check-lint-core-2` (the sidebar session-ownership test helper is over the 700-line rule since openclaw#147610), the chat transcript controller test (over the 1,000-line rule since openclaw#147612), and `control-ui-performance` (startup JS gzip 362,012 B exceeds the 361,938 B limit after openclaw#147845, openclaw#147773 and openclaw#147883).

## Why This Change Was Made
These repairs belong on main, in one PR.

- Lint: the avatar cases move from `session-ownership.ts` into a sibling case file in the directory's existing pattern (610 lines remain). Assertions and registration are unchanged.
- Chat lint: the four deferred-message-reveal cases move into a sibling test file. Their assertions, names and shared setup/cleanup remain unchanged, and the canonical test list preserves their isolated runner.
- Budget: the smallest whole-KiB cap step, 353 → 354 KiB, with the baseline refreshed to the measured 362,012 B. Deferring the new workspace labels saved only 64 B and still failed at 361,952 B, so a reduction was not available; the immediate Home and diagnostic frames stay intact. Follows openclaw#147574 and openclaw#146526.

## User Impact
None. No product behavior or asset changes.

## Evidence
- Lint: the max-lines check fails on main and passes here; 426 sidebar tests pass.
- Chat lint: pinned main fails at 1,010 counted lines; the candidate merge passes the same lint rule. All 146 affected chat tests pass, including the four moved cases in the isolated runner. The local preflight and test-root partition checks pass.
- Budget: same-toolchain comparison, last passing source 361,718 B, main 362,016 B (+298 B), fresh main and this candidate both 362,012 B (0 B asset delta). `pnpm ui:check-performance:base <main>` fails before the policy refresh and passes afterward. 552 focused tests pass.

## Compatibility
Cap 353 → 354 KiB; baseline 362,012 B; the 512 B growth and 64 B variance allowances are unchanged.

## Consumers
The performance check and the build size report read the same policy; the sidebar test suite registers the moved cases from the new file, and both UI test runners retain isolated chat-test registration.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
* fix(update): refuse staging below the known disk-space bound

Estimate installation, config-copy, and initial canary snapshot costs on their actual filesystems before staging. Preserve the full post-staging inventory and warn when capacity estimates are incomplete.

* wip: L326 disk preflight

* fix(update): limit preflight refusal to state snapshots

Build on the target-resolution warning checkpoint from openclaw#147883. Reuse the snapshot owner’s known SQLite-family budget and placement policy; refuse only a known shortfall at every eligible destination and record warnings otherwise. Preserve no-op updates and the complete post-staging check.

* chore: refresh update snapshot CI

* chore: refresh update snapshot CI after main repair
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
* refactor(update): consolidate status check state

Keep connection and read-error facts in the progress snapshot, represent status checks with one request state, and reuse the recovery predicate. Remove redundant test waits and the warning assertion covered before registry lookup. Preserve the behavior introduced in openclaw#147883.

* test(ui): reuse shared server for accent selection

Keep the existing accent and persistence assertions while replacing the private mock-dev subprocess with the suite-owned server and a signed-in mock Gateway.

* test(ui): keep cloud recovery history consistent

Use the same durable assistant reply and producer run identity in history and live events. Preserve cloud recovery assertions and deadlines when terminal delivery precedes the persisted reply.

* test(wizard): run recovery integration in the broker host

Route the real shared-state consumer through the existing isolated infra forks and exclude it from the wizard thread pool. Preserve recovery assertions and broker admission guards after the metadata-worker migration.

* chore(test): drop routing changes already landed on main

Main now routes wizard recovery through the database forks and excludes it
from the wizard thread pool (openclaw#148337). Remove this PR's duplicate changes
so the final merged list contains the test exactly once.

* fix(test): remove duplicate wizard recovery registration

The independent routing additions in openclaw#148337 and openclaw#147684 registered the
same test twice and stopped CI shard planning. Retain the canonical entry
after setup.test.ts and remove the duplicate before it.

* test(custodian): follow immediate wizard choices

Choose Twitch through the current two-option button instead of the retired
radio and Continue controls. Preserve the typed answer, single session
rotation, and no-replay assertions after the UI change in openclaw#148300.
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 cli CLI command changes docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

1 participant