From 7652b6f1505e4e54f69774462c381609065cbd15 Mon Sep 17 00:00:00 2001 From: Tak Hoffman <781889+Takhoffman@users.noreply.github.com> Date: Thu, 12 Feb 2026 07:13:45 -0600 Subject: [PATCH] Fix: allow stdin destroy in process registry cleanup --- src/agents/bash-process-registry.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/agents/bash-process-registry.ts b/src/agents/bash-process-registry.ts index dd3ace1d2a5..171b5f4527f 100644 --- a/src/agents/bash-process-registry.ts +++ b/src/agents/bash-process-registry.ts @@ -20,6 +20,8 @@ export type ProcessStatus = "running" | "completed" | "failed" | "killed"; export type SessionStdin = { write: (data: string, cb?: (err?: Error | null) => void) => void; end: () => void; + // When backed by a real Node stream (child.stdin), this exists; for PTY wrappers it may not. + destroy?: () => void; destroyed?: boolean; };