feat(process): support explicit stdin closure

This commit is contained in:
morluto
2026-07-24 13:13:09 +00:00
parent 62ac73cdd7
commit 205bf1529b
8 changed files with 74 additions and 14 deletions
+6 -2
View File
@@ -112,7 +112,9 @@ const succeededEffect = (action: ProcessReactiveAction, order: number) => ({
? "input"
: action.type === "resize"
? "resize"
: "signal",
: action.type === "close_stdin"
? "stdin_close"
: "signal",
data:
action.type === "send_input"
? action.sensitive
@@ -120,7 +122,9 @@ const succeededEffect = (action: ProcessReactiveAction, order: number) => ({
: action.data
: action.type === "resize"
? `${String(action.columns)}x${String(action.rows)}`
: action.signal,
: action.type === "close_stdin"
? ""
: action.signal,
outcome: "dispatched",
}),
});