Repository navigation
fix(update): show status refresh feedback and earlier disk warnings - #147883
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 14, 2026, 12:31 AM ET / 04:31 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherOpenClaw’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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +80, Tests +86, Docs +6. Total +172 across 25 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
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.
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
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.
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.
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]>
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.
* 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
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.
* 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.
…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.
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]>
* 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
* 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.
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
Published-driver upgrade qualification
The published-upgrade-survivor CI job passed in 197 seconds with published
[email protected], scenariolegacy-operator-state, and automatic authenticated restart. CI built candidate version2026.9.4at merge-test commit91735501f058d004c1dce15e3cf3a0b55fdfa47c, combining this PR head2ea566cf032e73ca6d65f58580f9ec9990a79e94with base28dd17e8a15efa4bd9d20402213798ea9a53c73f.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.