Repository navigation
fix(update): correct backup guidance and cover incident regressions - #147023
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 13, 2026, 9:11 AM ET / 13:11 UTC (Revision 3). ClawSweeper reviewWhat this changesCorrects backup commands in recovery guidance and extends regression coverage for MCP initialization timeouts and Feishu/Discord security warnings. Merge readiness⛔ Blocked before merge - 1 item remains The PR remains useful and has no actionable correctness findings. The earlier migration-proof blocker was a classification error: the production diff changes diagnostic wording, not storage or recovery semantics. Priority: P2 Review scores
Verification
How this fits togetherGateway startup checks reject unsupported database schemas and explain recovery to operators. Doctor separately checks configured integrations; these tests protect its cleanup handling and advisory severity. flowchart TD
A[Existing installation] --> B[Gateway schema check]
B --> C[Unsupported schema]
C --> D[Correct backup recovery guidance]
A --> E[Doctor integration checks]
E --> F[MCP cleanup uncertainty]
E --> G[Channel posture warnings]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +40, Docs 0. Total +40 across 7 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep recovery instructions aligned with the existing backup CLI and retain the focused regressions around the established cleanup and advisory owners. Do we have a high-confidence way to reproduce the issue? Yes, source inspection establishes the guidance mismatch: current main recommends the parent backup command while archive creation belongs to backup create. No runtime reproduction was executed during this review. Is this the best way to solve the issue? Yes. Correcting the examples and extending existing regression cases is a narrow repair; a migration, new backup behavior, or duplicate MCP implementation is unnecessary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 060e856e5f9d. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* temp/pr-137049: (110 commits) improve: reduce GitHub OAuth maintenance work for large agent rosters (#147021) fix(test): avoid settings lock writer startup timeouts (#147029) fix(update): correct backup guidance and cover incident regressions (#147023) refactor(gateway): share connection lifecycle across transports (#145950) refactor(telegram): share HTML text escaping (#146936) perf(build): reduce disk use in UI performance checks (#146687) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) ...
* commit '0ac8a700e43efceef73d92fe8e50b185819e38ad': (27 commits) test(acpx): prove targeted turn cancellation (#137049) fix(ci): honor realtime meeting live-test opt-in (#147044) improve: reduce heartbeat enrollment work for large fleets (#147055) fix(gateway): install despite stale Linux session bus addresses (#146569) chore(i18n): refresh native locales (#147025) fix: avoid Gateway reinstalls when macOS service inspection is inconclusive (#146880) fix(pairing): QR setup rejects trusted-proxy gateways without a shared secret (#147036) fix(update): bound activation and accept slow Windows identity reads (#147019) perf(accounts): avoid materializing avatars for owner checks (#147032) improve(status): report external and ArrayBuffer memory (#141902) fix(update): preserve linked plugins during post-core sync (#147009) fix(channels): keep replies working after hot config reloads (#147001) refactor(gateway): defer worker transcript runtime loading (#143495) improve: reduce GitHub OAuth maintenance work for large agent rosters (#147021) fix(test): avoid settings lock writer startup timeouts (#147029) fix(update): correct backup guidance and cover incident regressions (#147023) refactor(gateway): share connection lifecycle across transports (#145950) refactor(telegram): share HTML text escaping (#146936) perf(build): reduce disk use in UI performance checks (#146687) refactor(memory-wiki): share freshness result construction (#146935) ... # Conflicts: # src/config/sessions/session-accessor.sqlite-reclamation-memory.test.ts
What Problem This Solves
Recovery guidance names
openclaw backupas the archive-creation command, but the bare command prints usage and exits 1. The reported update failures also need regressions for the exact MCP timeout and Feishu security-posture paths already repaired on main.Related: #146887
Related: #147005
Reported by @zzs12345-web (#146887).
User Impact
Recovery messages now name
openclaw backup create; the recovery guide namesopenclaw backup create --verify. The regression coverage verifies that timed-out MCP initialization does not leak the SDK's cleanup rejection and that configured Feishu/Discord open-group posture remains advisory in both Doctor and update lint.Why This Change Was Made
The lifecycle error was constructed by the service-child owner, but the unhandled promise was the SDK's discarded
Client.close()result. Main already contains #144941's observation at the MCP lifecycle boundary. The new ordered deadline case leaves initialization unanswered, waits for cleanup to start, rejects extinction, and checks typed timeout plus retained uncertain cleanup and its diagnostic. It does not certify lost identity as successful extinction.Main also contains #145379's producer-level warning severity. The existing public-plugin security test now covers configured Feishu as well as Discord, plain Doctor's warning and follow-up hint, and the candidate lint error threshold. No severity bypass was added.
The reporter corrected the original backup exit-code claim: a pipe supplied the apparent zero. Actual CLI probes confirm help plus exit 1, while
backup createwrites an archive. Only the misleading command examples needed production changes. Schema refusal, service ordering, and backup creation behavior are preserved.PR #147005 owns MCP probe deferral. This branch has no changes to
src/flows/doctor-core-checks*and does not duplicate that implementation. No contributor code was adopted. Production delta: +2 / -2 lines (zero net growth).Evidence
Unhandled Rejection: service child cleanup identity lost: anchor channel closed without a matching closing receiptand exit 1. Restoring the existing code passed the real-deadline case and both complete lifecycle suites.criticalproducer severity made the candidate error-threshold assertion fail, expected 0 and received 1. Restoringwarnpassed the plain-Doctor and candidate-lint assertions. Both production files were restored byte-for-byte.create; the corrected messages pass.Fresh exact-head CI: run 34758880359 completed successfully after refreshing the merge ref to include the repaired main baseline. The CI watcher reported
GREEN; no CI rerun or source change was needed.Stage 3 remains diagnosis only. The supplied handoff log strongly matches the failed-systemd-state defect already fixed by #145094, and its updater SIGKILL comes from the helper's cancellation path. Finalize success is ledger bookkeeping, not proof of service recovery. A published 9.3 driver with an old 30-second unit and active work still needs Linux upgrade/recovery qualification; candidate fixes do not replace that already-running helper. The stale unit Description and dual Node executables are not established causes.
ClawSweeper review
Reviewed head:
c4404195839306968bb4b9e7fd2a533a8ebf965b. No correctness or security findings were reported. The data-model compatibility checklist is not applicable: the only change insrc/infra/sqlite-user-version.tsis the backup command in an error message; schema versions, migrations, storage, and recovery semantics are unchanged. Existing schema-refusal coverage remains intact. ClawSweeper revision 3 also confirms the earlier migration-proof blocker was a classification error; the generated checklist remains stale. No code fixup or re-review request is needed.The stage-3
managed-service-handoff-restore-failedreport in #146887 remains open pending the reporter's handoff.log; this PR does not close that issue.