Fix: allow stdin destroy in process registry cleanup

This commit is contained in:
Tak Hoffman
2026-02-12 07:13:45 -06:00
parent 82360f200b
commit 7652b6f150

View File

@@ -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;
};