From 488b7982754bac5f66ecfbff784d2eaa93555bb1 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 2 Apr 2026 10:17:28 +0000 Subject: [PATCH] storkit: create 452_bug_claude_code_pty_crashes_with_fatal_runtime_error_on_agent_restart --- ...y_crashes_with_fatal_runtime_error_on_agent_restart.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.storkit/work/1_backlog/452_bug_claude_code_pty_crashes_with_fatal_runtime_error_on_agent_restart.md b/.storkit/work/1_backlog/452_bug_claude_code_pty_crashes_with_fatal_runtime_error_on_agent_restart.md index 11b0c336..18498682 100644 --- a/.storkit/work/1_backlog/452_bug_claude_code_pty_crashes_with_fatal_runtime_error_on_agent_restart.md +++ b/.storkit/work/1_backlog/452_bug_claude_code_pty_crashes_with_fatal_runtime_error_on_agent_restart.md @@ -41,6 +41,8 @@ No zombie accumulation during normal operation. ## Acceptance Criteria -- [ ] Zombie processes do not accumulate during normal operation (including grandchildren from npm/cargo) -- [ ] `child.wait()` is called after `child.kill()` in all code paths in `claude_code.rs` -- [ ] Verified with `ps aux | grep ''` after running multiple agent sessions +- [x] `child.wait()` is called after `child.kill()` in all code paths in `claude_code.rs` +- [x] Reader threads are joined in both `pty.rs` and `claude_code.rs` +- [x] `init: true` added to docker-compose.yml for Docker deployments +- [ ] Background reaper thread added for native (non-Docker) deployments +- [ ] Verified with `ps aux | grep ''` after running multiple agent sessions natively on macOS