Repository navigation
chore(cli): show rejected-update subprocess diagnostics - #146154
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 12, 2026, 12:00 PM ET / 16:00 UTC. ClawSweeper reviewWhat this changesAdds bounded child stdout and stderr to assertion failures in the update and repair argument-rejection tests. Merge readiness✅ Ready for maintainer review Keep open: this is a focused diagnostic improvement absent from current main, with no actionable correctness findings. The protected maintainer label also excludes automatic closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw's CLI process tests run update commands against temporary legacy-state fixtures and verify rejected arguments leave those fixtures unchanged. The shared diagnostic formatter makes subprocess failures easier to investigate. flowchart LR
A[Temporary legacy state] --> B[Update or repair subprocess]
C[Invalid timeout argument] --> B
B --> D[Captured result and output]
D --> E[Assertions and bounded diagnostics]
A --> F[State snapshot comparison]
B --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +7. Total +7 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep subprocess diagnostics in the shared bounded formatter while preserving the existing failure and state-safety assertions. Do we have a high-confidence way to reproduce the issue? Not applicable to this diagnostic-only patch; the original intermittent subprocess hang remains unreproduced, as the PR explicitly states. Is this the best way to solve the issue? Yes: reusing the existing formatter is a narrow repair, and empty-string normalization prevents missing launch-error streams from masking the assertion failure. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9ebef910b792. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Related: #146078
What Problem This Solves
Resolves a problem where a rejected-update CLI subprocess failure reports only the spawn error, hiding the captured child output needed to locate the failure. CI run 34701057560, attempt 1 hit the existing 60-second guard but did not show either output stream.
Why This Change Was Made
The existing tabled update/repair assertion now uses the shared bounded output-tail formatter. Missing streams from process-launch errors are normalized to empty strings so diagnostic formatting cannot mask the spawn error.
User Impact
No product behavior changes. Future failures in this process-state regression include the child's stdout and stderr. The timeout, subprocess invocation, retry policy, exit-code check, error-message check, and state-immutability assertion are unchanged.
This improves diagnostics; it does not claim to fix the original, unreproduced hang.
Evidence
The unchanged Linux/Node 24.19.0 CI retry passed all 275 tests in the original shard. The rejected-update case completed in 1,242 ms and its repair sibling in 1,352 ms. The relevant launcher, CLI, update, and test sources match the failed CI merge snapshot.
The full process-state file passed 18/18 locally on Node 24.20.0. A bounded probe then passed 40/40 actual rejected-update invocations with fresh legacy-state fixtures, taking 633–2,108 ms each and preserving every fixture byte. The original timeout's exact stage remains unknown because the failure report omitted the captured streams.
Both affected table cases pass after this diagnostic change. Complete selected changed checks and fresh managed review through P2 pass. A direct Node launch-error probe verified that output streams can be absent, which the formatter call now handles.