Repository navigation
Conversation
…esses extension api.exec() only killed the direct child process via proc.kill(), leaving descendant processes running after timeout, abort, or output-limit termination. The shared killProcessTree helper already used by built-in shell execution paths terminates the full process tree. - Spawn Unix commands detached for process-group isolation - Route timeout/abort/output-limit kills through killProcessTree - Retain FORCE_KILL_GRACE_MS grace period for stuck processes Closes openclaw#98335 Co-Authored-By: Claude <[email protected]>
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: this PR targets the same Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this duplicate PR and use #98340 as the canonical landing path while keeping #98335 open until that fix merges. So I’m closing this here and keeping the remaining discussion on #98340 and #98335. Review detailsBest possible solution: Close this duplicate PR and use #98340 as the canonical landing path while keeping #98335 open until that fix merges. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main shows Is this the best way to solve the issue? No for this branch: the bug is valid, but #98340 is the safer canonical implementation because it uses the lower-level helper with Security review: Security review cleared: No concrete security or supply-chain regression was found; the diff only changes local process termination behavior and adds no dependency, workflow, permission, or secret surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 4ac5cf863673. |
|
ClawSweeper applied the proposed close for this PR.
|
What Problem This Solves
api.exec()only kills the direct child process viaproc.kill(), leaving descendant processes running after timeout, abort, or output-limit termination. The sharedkillProcessTreehelper already used by built-in shell execution paths terminates the full process tree, but the extension session path was not using it.Closes #98335
Fix
detached: truefor process-group isolationproc.kill("SIGTERM")/proc.kill("SIGKILL")withkillProcessTree(proc.pid)FORCE_KILL_GRACE_MSgrace period for stuck processesEvidence
Real behavior proof — before/after with live processes
Proof script spawns a bash wrapper that forks a
sleep 120child, then:proc.kill): child survives — bug confirmedkillProcessTree): child terminated — fix verifiedTest suite
Formatting
Change Type
Scope
Security Impact