Repository navigation
Conversation
|
Thanks for the contribution. This PR has been inactive for a while and still is not in a landable state. Close as abandoned: the unchanged July branch is now merge-conflicted against a substantially redesigned update/Doctor path, lacks inspectable real-command proof, and is not a safe landing candidate. So I’m closing this as inactive for now. If you pick the work back up, push a rebased branch with green checks and reopen (or open a fresh PR) and it will be reviewed again. Review detailsBest possible solution: If the embedded Doctor-output defect still reproduces, open a new narrow PR from current main that extends the present root JSON and Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: JSON update repair invokes Doctor, whose current notes and service operations can target stdout. No live command was run during this read-only review. Is this the best way to solve the issue? No: replaying this July implementation is not the best fix because current main centralizes JSON failures and has redesigned the Doctor entry flow; a fresh, narrow rebase is safer. Security review: Security review cleared: The diff adds no dependency, permission, workflow, credential, or supply-chain surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against e8044fdffef3. |
86a9b67 to
256542f
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
CI note: both exact-head attempts failed only in |
256542f to
c6e2637
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper applied the proposed close for this PR.
|
What Problem This Solves
openclaw update repair --jsoncould emit Doctor, Clack, gateway-service, or terminal-reset bytes on stdout. Several reachable error paths also exited without emitting a JSON result. Automation parsing the complete stdout stream could therefore receive invalid or empty JSON.Why This Change Was Made
JSON update finalization now owns the output contract at the public command boundary. Thrown finalization errors, invalid channels, invalid timeouts, pre-mutation failures, and final convergence failures emit one structured JSON result and route terminal restoration to stderr.
The embedded Doctor run receives a stderr-backed runtime and UI stream. Doctor scopes terminal notes to that stream across async work and forwards it through gateway-service stage, install, and restart operations. Human and non-JSON Doctor callers retain their existing runtime and stdout defaults.
The routing stays at the update finalizer, Doctor UI/note, and gateway-service lifecycle boundaries instead of intercepting process-global stdout.
User Impact
Automation can parse the complete stdout from
openclaw update repair --jsonas one JSON value on success and on reachable command errors. Human update-repair behavior, Doctor repair decisions, gateway service policy, and fallback semantics are unchanged.Evidence
Final exact candidate:
c6e26379d6a68403bbd98025be91284436549155Exact public-main parent:
fe9e018045d4b332896d7d8160d1753eedc21fcdTree:
47102b914d97c5a8a04647969703652774449f85Stable patch ID:
1352e1154b508f192a03ade11b2cebb744818b52Validated with Node
24.15.0and pnpm11.2.2:The exact semantic patch was replayed onto current public
mainwith an unchanged stable patch ID and no changed-path overlap. Cad reran all focused and static gates on this final SHA.Independent read-only review approved the exact final candidate with no patch-attributable blockers and judged it the best bounded fix.
The full build, full test suite, tsgo, and tsgolint were not run for this focused refresh; GitHub CI remains the broad verification gate.
AI-assisted: Meles prepared and exercised the candidate. Cad independently replayed it onto current
main, reran the evidence gates, and verified the public lease before updating this PR.