Repository navigation
fix(update): retain completion errors without a lint suppression - #165536
Conversation
The catch refactor in 2faa6a0 (#165340) added an unlisted preserve-caught-error suppression, failing the suppression inventory in hourly job 111705914349. Both errors were already preserved: the command failure was primary and the reporting failure was an aggregate member. Capture the reporting failure before composing the final error so the command stays the primary cause and both original errors remain available. Keep the existing suppression inventory and every assertion unchanged. Validation: suppression inventory before/after, 76 passing focused cases, core types and all 27 test type graphs, lint and remaining static guards, and P2 review. Unrelated Knip failures reproduced identically without the patch. Testbox timed out after 15 minutes queued; use the authorized ready PR fallback for remaining Linux proof.
|
🦞👀 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 October 5, 2026, 7:03 AM ET / 11:03 UTC. ClawSweeper reviewWhat this changesThe PR removes an update-runner lint suppression while preserving the original command and completion-reporting errors. Merge readiness✅ Ready for maintainer review This repair remains necessary: pinned main still contains the unlisted suppression. The introduced change preserves error identities and ordering, and no blocking correctness or security finding was identified. Priority: P3 Review scores
Verification
How this fits togetherThe update command runner executes installation steps and reports their completion to progress and recording callbacks. When execution and reporting both fail, it returns an aggregate error with the command failure as the primary cause. flowchart TD
A[Update step] --> B[Command runner]
B --> C[Command outcome]
C --> D[Completion reporting]
D --> E{Reporting failed}
E -->|No| F[Return command outcome]
E -->|Yes| G[Preserve original failures]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +5. Total +5 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one completion-reporting owner that preserves both original failures and satisfies lint without adding an inventory exception. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the lint-inventory defect: pinned main adds a production suppression absent from the explicit allowlist. The PR reports a before/after failing regression; this read-only review did not execute it. Is this the best way to solve the issue? Yes, the refactor removes the offending suppression while preserving the existing success, reporting-only failure, and combined-failure paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6b37a39aa104. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…nclaw#165536) The catch refactor in e048d84 (openclaw#165340) added an unlisted preserve-caught-error suppression, failing the suppression inventory in hourly job 111705914349. Both errors were already preserved: the command failure was primary and the reporting failure was an aggregate member. Capture the reporting failure before composing the final error so the command stays the primary cause and both original errors remain available. Keep the existing suppression inventory and every assertion unchanged. Validation: suppression inventory before/after, 76 passing focused cases, core types and all 27 test type graphs, lint and remaining static guards, and P2 review. Unrelated Knip failures reproduced identically without the patch. Testbox timed out after 15 minutes queued; use the authorized ready PR fallback for remaining Linux proof.
What Problem This Solves
Hourly 37292375323 failed
test/scripts/lint-suppressions.test.tsin job 111705914349 because #165340 (2faa6a0) introduced a 79th suppression in the update command runner, outside the existing 78-entry inventory.This is a lint regression; both original errors were already retained. Capture the reporting failure before composing the final error: the command failure remains the primary
cause, andAggregateError.errorsretains both failures. Reporting-only failures retain their original identity, including non-Error thrown values. Successful updates, rollback behavior, and the suppression inventory stay unchanged.Validation
check-changedpassed core types, all 27 dependent test type graphs, and the preceding static guards. Its unused-export scan failed on eight production and five full-tree entries in unrelated files; the exact same findings reproduced with this patch removed at base 6ddf5a6. No suppressions or baselines were added. All nine remaining guards passed, including targeted lint and runtime import cycles.Linux proof was requested through Blacksmith Testbox. Lease
tbx_01m45t1eahx7np91k27nfzj2fmtimed out after 15 minutes queued, without executing the payload, and was stopped. This ready PR uses the authorized congestion fallback so natural PR CI can cover the remaining Linux updater-family proof. No workflow reruns or repository settings changes were made.