Repository navigation
fix(update): clarify in-progress updates and snapshot warnings - #155188
Conversation
|
🦞👀 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 21, 2026, 5:30 PM ET / 21:30 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR clarifies active-update and background-handoff guidance, preserves snapshot inventory as informational diagnostics, and explains unfinished plugin upgrades. Merge readiness⛔ Blocked before merge - 1 item remains The prior diagnostic-loss finding is resolved, and no blocking patch defects remain. The change is still useful: current main and the latest release retain the misleading snapshot warnings. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s updater records progress, snapshot checks, and plugin upgrade outcomes in its update ledger. CLI status and report rendering turn those recorded facts into operator guidance. flowchart TD
A[Update command] --> B[Snapshot capacity check]
B --> C[Bounded update ledger]
D[Background helper progress] --> C
E[Pending plugin upgrades] --> F[Status and report rendering]
C --> F
F --> G[Progress guidance and JSON diagnostics]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +14, Tests +68, Docs +9. Total +91 across 21 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep update guidance tied to the existing ledger while retaining bounded inventory diagnostics and unchanged snapshot safety checks. Do we have a high-confidence way to reproduce the issue? Yes, from source: a successful snapshot preflight on current main emits inventory as warnings, and status advertises availability despite a recorded active update. This review did not execute the updater. Is this the best way to solve the issue? Yes. The patch uses existing snapshot, ledger, and report owners while preserving capacity refusals, JSON availability, and plugin migration semantics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b4f6bb9bfa61. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review The accepted diagnostic-loss finding is fixed in 8c74735: successful snapshot inventory now reaches the existing bounded/redacted ledger as informational The PR body now records passing single-worker timings, all local changed checks, fresh repair autoreview, and the passed published2026.9.4 → candidate → next-fixture packaged update cell with exact source-tree identity. It explicitly distinguishes the supervisor fixture from a native detached-service test and records the nonfatal EPERM evidence warning as an unresolved follow-up. Please reassess the current code and evidence; do not merge. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Data-model compatibility confirmation for the remaining checklist item:
The PR body retains the native-supervision limitation and the nonfatal EPERM follow-up; neither is represented as fixed. The PR remains open for review; no merge is requested. |
…law#155188) * fix(update): clarify in-progress updates and snapshot warnings * fix(update): retain snapshot inventory as informational diagnostics
What Problem This Solves
Fixes confusing update output: an unfinished background update repeats ordinary database sizes as warnings, advertises another update, buries the progress command, and gives opaque plugin migration advice.
User Impact
Operators see the active update and its phase, one final progress command after background handoff, and plugin guidance that explains preserved data/settings and waits for the current update before recommending repair. Successful snapshot sizing requires no database cleanup; bounded inventory remains accessible as non-warning diagnostic entries in
openclaw update status --json. Actual capacity failures retain their remedy.No configuration, schema, storage, snapshot-allocation, or plugin-completion semantics change. JSON availability remains factual. These output changes take effect once the updated CLI is installed; they cannot change an already-installed updater's first upgrade hop.
Why This Change Was Made
Snapshot preflight was putting informational inventory into the warning ledger, and availability rendering ignored the recorded active run. Handoff also printed generic health followups after the progress report. The existing snapshot producer, update ledger, report renderer, and plugin-warning formatter now provide consistent guidance without adding another lifecycle path. Producer-selected diagnostic messages now use the existing bounded/redacted step detail rows for both package and Git flows; raw stdout is not retained as diagnostics. Explicit handoff guidance replaces the generic running hint, and report locations appear before the final action.
The reported Git-pack size failure is already fixed by 81d1c56 and is not duplicated here. Why the original terminal update selected managed handoff, and the later
managed-service-handoff-already-runningattempt, remain separate investigations; this PR does not claim to repair helper ownership.Evidence
node scripts/check-changed.mjspassed, including formatting, core/test typechecks, lint, dead exports, plugin boundaries, storage guards, and runtime cycles. Both changed docs passed the MDX check;git diff --checkpassed.Published-driver × candidate proof passed on an isolated Blacksmith Testbox: run 35655153794. The canonical
update-first-hop-compat-docker.shlane installed published 2026.9.4, updated to this candidate, then ran the candidate's updater again. Both hops exited 0, matched the selected installed build, replaced the managed service PID, and left zero transaction residue. Canonical build and package integrity checks also passed. Total remote command wall: 15m39s. The task-owned worker was stopped.The complete tested source tree
31918c0463926ce8e9d8c40f7db4b5cfddbd51d9equals PR head8c747353310's tree. The build stamps synthetic capsule carrier81f48b0a8981; fixture metadata relabels the two targets as2026.9.99-first-hop.0and.1to force real hops without changing runtime code.Proof limits: this is an in-process packaged self-update with a systemd supervisor fixture, not a native detached launchd/systemd update. Native service supervision is unavailable in the selected Docker environment, and the operator's live Gateway was not changed. Handoff text, final-command ordering, and installation identity are covered at the real command/report boundaries with host spawning mocked. The original terminal's handoff selection remains the separate ownership investigation described above.
Observed follow-up: the first hop emitted a nonfatal
Post-core update evidence could not be saved: EPERM ... fchmodwarning from unchangedupdate-command-resume.ts; both hops and final service/residue assertions still passed. The fixture/environment versus product cause is not yet established; this pass must not be read as proof that warning is fixed.ClawSweeper finding addressed in
8c747353310: the stronger package-command regression failed in all four successful-capacity cases before the repair and now passes. Successful snapshot inventory is retained as bounded, redacteddiagnostic:step details, without warning rows. The shared converter test also protects the released reader shape, per-message bounds, and exclusion of raw stdout. The already-running helper now points to update status too.Single-worker timing (
node scripts/run-vitest.mjs ... --maxWorkers=1 --reporter=dot): 332 status/report/plugin/config/triage/step-key cases passed in 95.56s wrapper wall; 11 selected package-capacity, Git-snapshot, and ledger cases passed in 71.49s wrapper wall. Timings include compiler/worker setup; no new timers, polling, process fixtures, or worker restrictions were introduced in test code. Fresh local autoreview of the repair is clean at default P0 scope.Production delta: net +14, tests net +68, docs net +9. Growth connects recorded active-run state to guidance and preserves producer-selected inventory through the shared bounded diagnostic ledger. No config, schema, allocation, or migration-completion change.
Exact-head CI passed: run 35655390085. GitHub reports the PR mergeable, non-draft, and clean.
Representative CI case durations (not suite wall time): active-status 137–148ms and report ordering 2–3ms; snapshot capacity 490–1240ms and managed handoff 168–323ms.