Repository navigation
fix: preserve child signal termination during CLI respawn - #144838
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 11, 2026, 6:46 AM ET / 10:46 UTC (Revision 3). ClawSweeper reviewWhat this changesThe CLI startup wrappers preserve Unix child termination signals while retaining numeric exits and Windows behavior, with matching regression tests and documentation. Merge readiness✅ Ready for maintainer review This remains a useful fix: current main still loses child signal identity, and the supplied process-level evidence supports the repair. No actionable introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw startup wrappers sometimes launch a replacement runtime for Node settings or compile-cache handling. They report that runtime’s completion to shells and supervisors, whose stop, restart, and recovery decisions depend on distinguishing signals from numeric exits. flowchart TD
A[CLI invocation] --> B[Startup respawn wrapper]
B --> C[Replacement runtime]
C --> D{Completion type}
D -->|Unix signal| E[Clean up and preserve signal]
D -->|Numeric exit or Windows| F[Preserve numeric handling]
E --> G[Shell or supervisor]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Tests +234, Docs 0, Other +4. Total +242 across 7 files. View PR surface stats
Review metrics
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 termination identity intact through both startup wrappers so supervisors stop on actual signals while explicit numeric completions retain their existing meaning. Do we have a high-confidence way to reproduce the issue? Yes: the linked report supplies a direct-child SIGKILL reproduction, and current-main source confirms conversion to an ordinary numeric exit. This review verified the path without executing it. Is this the best way to solve the issue? Yes: repairing the two startup owners preserves the existing supervisor contract without adding configuration or another recovery mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 56fcd66e4848. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Fixed: startup respawns preserve Unix child signals so supervisors stop interrupted runtimes without entering watcher recovery. |
Preserve the reviewed harness while incorporating the landed benchmark prerequisite. Punchcard-Session: coral-orchard-orchard-d4 * commit '4407ed19ac63b1c1c84a0cfe6eb4bbeca9c2322c': (1196 commits) fix(perf): isolate benchmark subprocess transport (#144159) refactor(auth): await Copilot cache persistence (#144810) refactor(web-fetch): exercise URL normalization through the public tool (#144887) fix(ollama): preserve hosted subdomain model context (#144891) fix(doctor): explain Codex plugin health failures (#144813) fix(channels): honor pinned accounts in Mattermost model menus (#144880) fix(update): failed-update records hide the triggering error behind the excerpt tail (#144729) fix(logging): preserve OpenClaw package references in diagnostics (#144808) fix: retain plugin detail tab selections while inspection loads (#144647) fix: keep discovered models when sign-in tokens renew (#144861) fix(update): preserve local package overrides (#89985) fix(update): resolve compatibility bridges within the runtime graph (#144831) chore(i18n): refresh native locales (#144856) fix: preserve child signal termination during CLI respawn (#144838) fix(text): hide encoded MiniMax tool envelopes (#126307) fix(subagents): deliver child replies that match the empty placeholder (#130647) fix(cli): reject blank message channel selectors (#144802) fix(telegram): preserve mixed text order and pending stop (#144839) fix(memory): restore FTS fallback for same-name view collisions (#144783) chore(release): close out 2026.9.4 on main (#144708) ...
…44838) Preserve actual Unix child termination signals through startup respawns so supervisors stop interrupted runtimes without entering watcher recovery. Keep explicit numeric exits and Windows termination behavior intact. Fixes openclaw#144200.
Fixes #144200
What Problem This Solves
Fixes an issue where supervisors receive an ordinary exit code after a respawned OpenClaw runtime is terminated by a Unix signal. The lost signal can send the development watcher into restart or Doctor recovery instead of stopping.
Why This Change Was Made
Both startup respawn runners now terminate with the child's actual Unix signal after their existing shutdown cleanup. Explicit numeric exits and acknowledged stops stay numeric, and Windows keeps its current handling.
User Impact
Supervisors can distinguish an interrupted runtime from a command that explicitly returns an exit code, including 143. Forced shutdown preserves the actual SIGKILL outcome.
Evidence
(code: null, signal: "SIGKILL")at the outer watcher command. Its invocation log contained onlygateway, with no Doctor pass or restart.