Repository navigation
fix(update): avoid stale retry advice after a newer update - #146982
Conversation
Keep legacy admission history visible after another update succeeds or becomes active. Only the selected expired run keeps retry instructions; historical notices describe the recorded outcome without prescribing another update. Related: #144739
|
🦞👀 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 15, 2026, 4:24 AM ET / 08:24 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR distinguishes historical abandoned updates from the current run in CLI status advice, with matching documentation and regression coverage. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main and v2026.9.4 still emit unconditional retry advice for historical expired runs. No actionable patch defects were found; the linked recovery incidents concern separate behavior. Priority: P2 Review scores
Verification
How this fits togetherUpdate status reads the durable update ledger and selects the active or latest run. Its shared projection supplies human-readable and JSON status output while retaining notices about older expired attempts. flowchart TD
A[Update run history] --> B[Existing legacy expiry reconciliation]
B --> C[Select active or latest run]
C --> D{Expired attempt is current?}
D -->|Yes| E[Retry guidance]
D -->|No| F[Historical notice]
E --> G[CLI status and JSON output]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Tests +25, Docs +1. Total +30 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep historical outcomes visible while reserving retry advice for the selected expired run, using the existing shared status projection. Do we have a high-confidence way to reproduce the issue? Yes, from source: an expired legacy record plus a newer successful or active run still produces retry advice on current main. Runtime reproduction was not executed in this read-only review. Is this the best way to solve the issue? Yes. Changing the shared advisory projection addresses all affected status outputs without changing stored history, expiry eligibility, or detailed per-run recovery guidance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 04400e289e10. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Merged via squash.
|
* commit '0cd944c01416c4f9c1f6dc9d1dea9670c5b99cab': improve: speed up session search for restricted operators (#148826) fix(update): avoid retry guidance for historical abandoned runs (#146982) fix(android): reduce queued-message send overhead (#148899) refactor(slack): count table cells only for native output (#148872) fix: correct update status and apply saved model keys (#148830) refactor(nostr): share doctor state migration flow (#148647) refactor(gateway): centralize device token denial responses (#148644) test: make kitchen sink assertions runtime portable (#148891) refactor(agents): share preferred block chunk boundaries (#148391) fix(ui): use the selected timezone for Usage date shortcuts (#148277) test: probe active Node in release preflight (#148892) fix(test): restore services typecheck shard headroom (#148889)
…claw#146982) Keep legacy admission history visible after another update succeeds or becomes active. Only the selected expired run keeps retry instructions; historical notices describe the recorded outcome without prescribing another update. Related: openclaw#144739
Related: #143774
Related audit context: #144739, #144742
Additional instructions
This branch is in the upstream repository and is editable by maintainers.
What Problem This Solves
Fixes an issue where users checking update status would still be told to retry an expired 2026.9.2-era attempt after a newer update had succeeded or while another update was active. The old attempt's advisory was displayed alongside the current run without distinguishing history from current recovery guidance.
Why This Change Was Made
The shared status projection now compares the expired attempt's ID with the active or latest run. It labels an older attempt as historical and offers retry guidance when the expired attempt is current. This applies consistently to
openclaw update status, its JSON output, and the update rows inopenclaw status.The abandonment record and detailed per-run recovery guidance remain intact. The existing 24-hour expiry rules and recovery protections are unchanged. This follow-up corrects status wording; the separate schema-owner and retained-handoff incidents linked above remain outside its scope.
User Impact
Operators can distinguish an old abandoned attempt from the update they are currently inspecting. A later successful update no longer carries an unnecessary retry prompt, while the historical outcome remains visible.
Evidence
Source:
0d71e62899b512f14e1791f4fbaf8ade5229cf65.v2026.9.4source.pnpm buildpassed in 289.556 seconds, including declarations, SDK, UI, bootstrap, and postbuild steps. The continuation finished on September 13, 2026 at 11:30:26 UTC; all 41,618 source files matched the original manifest afterward.Proof used an isolated source capsule through the local fallback after remote backend failures. It covers status/reporting and the normal build, not a published-driver upgrade or the separate recovery incidents. The retained 57 local tests, 30 selected checks, and 289.556-second normal build remain the qualification evidence for this change.
0d71e62899b512f14e1791f4fbaf8ade5229cf65. The requiredopenclaw/ci-gatepassed: https://github.com/openclaw/openclaw/actions/runs/34924956974/job/104244815228.