Repository navigation
fix: preserve current update availability alongside update history - #139501
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: needs maintainer review before merge. Reviewed September 5, 2026, 10:01 PM ET / September 6, 2026, 02:01 UTC. ClawSweeper reviewWhat this changesThe PR keeps current update availability visible in CLI status reports while displaying update-run history and distinct restart outcomes in separate rows. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main still allows retained update history to obscure fresh availability. No actionable introduced defects were found, and the previous review recorded no findings. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s CLI status reports combine installation update checks with recorded update runs and restart results. These inputs become operator-facing availability, progress, and diagnostic rows. flowchart TD
A[Installation update check] --> B[Current Update row]
C[Recorded update runs] --> D[Select active or latest run]
D --> E[Update run row]
F[Restart result] --> G[Compare run identity]
D --> G
G --> H[Distinct Update restart row]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -1, Tests +91, Docs +3. Total +93 across 8 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep fresh availability and historical outcomes independently visible through the shared presentation owner, preserving legacy results unless run identity proves duplication. Do we have a high-confidence way to reproduce the issue? Yes, from source: provide retained update history alongside a newer registry version or Git lag, and current main substitutes the historical headline into the Update row. No runtime reproduction was executed during this review. Is this the best way to solve the issue? Yes. Separating historical rows at the shared presentation owner removes the conflicting override while reusing existing availability checks, report wording, and read-only storage APIs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4bb95eb02ced. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* commit '6c55a99226ed0611ca088004c81b00fb296f1f71': (182 commits) test(ui): scope dashboard settings setup to the top frame (openclaw#139618) refactor(skills): share pending proposal creation (openclaw#139617) fix(release): accept frozen targets before worker bundles (openclaw#136699) fix(gateway): preserve percent sequences in media filenames (openclaw#139508) fix: preserve current update availability alongside update history (openclaw#139501) feat(diagnostics): expose garbage collection duration metrics (openclaw#139592) fix(ui): keep Logbook timestamps clear of the activity stripe (openclaw#139539) fix(ui): keep Swarm outcomes visible after completion (openclaw#139490) test: check file accessibility without runtime-specific return values (openclaw#139590) refactor(sdk): keep helper types private (openclaw#139601) fix(cron): preserve current-session delivery intent (openclaw#139491) fix: prevent browser profile permission hangs in Doctor (openclaw#139612) fix(agents): repair storage-failure test fixture after failover owner move (openclaw#139531) fix(cli): keep note text with Windows and Unicode line endings (openclaw#139512) fix(agents): keep isolated completion context on its admitted generation (openclaw#139607) fix: avoid declaration builds during source-server updates (openclaw#139392) fix(models): keep discovered models after catalog refresh failures (openclaw#139357) fix(gateway): record a transcript notice when a run fails before replying (openclaw#139439) refactor(ios): reuse shared integer conversion (openclaw#139581) fix(sessions): prevent database lock failures during reclamation (openclaw#139469) ...
* commit 'refs/openclaw/tasks/pr-135167-main-latest': test(ui): scope dashboard settings setup to the top frame (#139618) refactor(skills): share pending proposal creation (#139617) fix(release): accept frozen targets before worker bundles (#136699) fix(gateway): preserve percent sequences in media filenames (#139508) fix: preserve current update availability alongside update history (#139501) feat(diagnostics): expose garbage collection duration metrics (#139592) fix(ui): keep Logbook timestamps clear of the activity stripe (#139539) fix(ui): keep Swarm outcomes visible after completion (#139490) test: check file accessibility without runtime-specific return values (#139590) refactor(sdk): keep helper types private (#139601) fix(cron): preserve current-session delivery intent (#139491) fix: prevent browser profile permission hangs in Doctor (#139612) fix(agents): repair storage-failure test fixture after failover owner move (#139531) fix(cli): keep note text with Windows and Unicode line endings (#139512) fix(agents): keep isolated completion context on its admitted generation (#139607) fix: avoid declaration builds during source-server updates (#139392) fix(models): keep discovered models after catalog refresh failures (#139357) fix(gateway): record a transcript notice when a run fails before replying (#139439)
What Problem This Solves
Fixes an issue where users running
openclaw status --allwould see a retained update outcome instead of current update availability when update history existed. A successful older update could therefore hide a newer available version or fresh Git/dependency status.Why This Change Was Made
Update availability and update history answer different questions. The status presentation owner now builds shared history rows for standard and all-status reports while leaving the fresh Update row intact. This removes duplicated history selection and scalar override plumbing.
Update run shows the active run, or otherwise the latest recorded run. Update restart separately preserves an update sentinel unless its authoritative
runIdmatches the selected run. Older updater versions can leave a sentinel without a run ID alongside retained history, so matching prose or timestamps must not erase a distinct result. Sentinel-only reports keep their existing label and diagnosis.No config, schema, protocol, or persistence semantics change. Standard footer, JSON, active-run precedence, no-history behavior, and detailed restart diagnosis remain covered.
Production: +30/-31 (net -1). Tests: +145/-54 (net +91). Docs: +3.
User Impact
Operators can see whether an update is available now and what happened during the previous or active update at the same time. A distinct restart failure remains visible even when an older recorded update succeeded.
Release-note context: Keep current update availability visible in status reports alongside update-run history, preserving distinct legacy restart outcomes and deduplicating only the same authoritative run.
Evidence
Captured the stale-availability regression before production changes, then verified the same real row/report builders after the fix. Compatibility coverage also checks mixed history/sentinel states, matching versus different run IDs, identical prose from separate occurrences, sentinel-only and non-update sentinel inputs.
All verification passed in a normal isolated checkout with its own dependencies installed using the pinned pnpm 12.3.4 and Node 24.20.0, ordinary
install --frozen-lockfile, and no dependency or guard overrides:node scripts/check-changed.mjs -- <all eight changed paths>: passed, including core/core-test typechecks, format/lint, all three Knip scans, and remaining guards.node scripts/run-vitest.mjs src/commands/status-all/report-data.test.ts src/commands/status-overview-rows.test.ts src/commands/status.command-report-data.test.ts src/commands/status-json-command.test.ts src/commands/status-all/diagnosis.test.ts src/commands/status.test.ts: 80 tests passed, six files, three shards.node scripts/run-node.mjs --versionbuild: passed.node openclaw.mjs status --timeout 1000runs with disposable synthetic config/state: passed; fixtures removed afterward.The real-process fixture uses standard status:
--allperforms a Git fetch. The actual all-status row/report builders are exercised by the regression tests; this is not a full--allsubprocess or live-provider/Gateway claim. Exact candidate source hashes were unchanged after verification and normal commit hooks. Current main was checked before publication: no changes in the affected status owners or ledger/sentinel contracts.