Skip to content

fix: add kill_on_drop(true) to prevent orphan subprocess accumulation#3883

Merged
houko merged 4 commits into
mainfrom
worktree-agent-a061ea45d2313995b
Apr 28, 2026
Merged

fix: add kill_on_drop(true) to prevent orphan subprocess accumulation#3883
houko merged 4 commits into
mainfrom
worktree-agent-a061ea45d2313995b

Conversation

@houko

@houko houko commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Without kill_on_drop(true), dropping a Child handle (e.g., on timeout or session cancellation) does not terminate the child process. Tool runner and MCP server processes would accumulate as orphans after agent session teardown.

Fixes

Test plan

  • CI passes
  • Verify subprocess cleanup on agent session end / tool timeout

Without kill_on_drop(true), dropping a Child handle does not
terminate the child process. Tool runner and MCP stdio processes
would accumulate as zombies/orphans after agent session teardown.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions github-actions Bot added the area/runtime Agent loop, LLM drivers, WASM sandbox label Apr 28, 2026
@github-actions github-actions Bot added the size/S 10-49 lines changed label Apr 28, 2026
@houko
houko merged commit e489b14 into main Apr 28, 2026
1 check passed
@houko
houko deleted the worktree-agent-a061ea45d2313995b branch April 28, 2026 12:23
@houko houko mentioned this pull request May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/runtime Agent loop, LLM drivers, WASM sandbox size/S 10-49 lines changed

Projects

None yet

1 participant