From 2834445067b3001921684ca9bcc66f3980b303c9 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 8 Feb 2026 22:09:12 +0900 Subject: [PATCH] fix: guard interactive prompts on both stdin and stdout TTY --- src/cli/tui-install-prompts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/tui-install-prompts.ts b/src/cli/tui-install-prompts.ts index 7b6d03b5..1a39dc70 100644 --- a/src/cli/tui-install-prompts.ts +++ b/src/cli/tui-install-prompts.ts @@ -12,7 +12,7 @@ async function selectOrCancel options: Option[] initialValue: TValue }): Promise { - if (!process.stdin.isTTY) return null + if (!process.stdin.isTTY || !process.stdout.isTTY) return null const value = await p.select({ message: params.message,