storkit: create 452_bug_claude_code_pty_crashes_with_fatal_runtime_error_on_agent_restart

This commit is contained in:
dave
2026-04-02 10:17:28 +00:00
parent 0df19967ca
commit e1d73acad5
@@ -41,6 +41,8 @@ No zombie accumulation during normal operation.
## Acceptance Criteria ## Acceptance Criteria
- [ ] Zombie processes do not accumulate during normal operation (including grandchildren from npm/cargo) - [x] `child.wait()` is called after `child.kill()` in all code paths in `claude_code.rs`
- [ ] `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`
- [ ] Verified with `ps aux | grep '<defunct>'` after running multiple agent sessions - [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 '<defunct>'` after running multiple agent sessions natively on macOS