Skip to content

Fix agent process leaks and unbounded output memory - #1

Merged
Bakobiibizo merged 1 commit into
mainfrom
fix/process-lifecycle
Jul 13, 2026
Merged

Fix agent process leaks and unbounded output memory#1
Bakobiibizo merged 1 commit into
mainfrom
fix/process-lifecycle

Conversation

@Bakobiibizo

Copy link
Copy Markdown
Contributor

What changed

  • stream full stdout/stderr to disk while retaining only the configured bounded summary window in memory
  • run foreground commands in isolated process groups and forward termination signals
  • adopt, terminate, and reap descendants on Linux, including helpers that create a new session/process group
  • replace the detached shell wrapper with an internal supervised runner using the same lifecycle guarantees
  • bump the patch version to 0.1.1 and document the lifecycle contract

Validation

  • cargo test --all-targets
  • cargo clippy --all-targets --all-features -- -D warnings
  • foreground termination regression with a descendant in a new session
  • detached completion regression with a descendant in a new session
  • 64 MiB output smoke: 3.8 MiB max RSS, complete 67,108,873-byte raw log, zero zombies afterward

@Bakobiibizo
Bakobiibizo merged commit 9e44899 into main Jul 13, 2026
2 checks passed
@Bakobiibizo
Bakobiibizo deleted the fix/process-lifecycle branch July 13, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant