From 82768aefc21d435ea1ac18752ff2b50d519956f8 Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Tue, 11 Nov 2025 19:34:38 -0800 Subject: [PATCH] fix: :zap: More fixes --- extensions/cli/src/commands/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/cli/src/commands/chat.ts b/extensions/cli/src/commands/chat.ts index 82301610b..c5e57a204 100644 --- a/extensions/cli/src/commands/chat.ts +++ b/extensions/cli/src/commands/chat.ts @@ -446,7 +446,7 @@ async function runHeadlessMode( ): Promise { // Critical validation: Ensure we have a prompt in headless mode // This prevents the CLI from hanging in TTY-less environments - if (!prompt && !options.prompt?.length && !options.agent) { + if (!prompt && !options.prompt?.length) { throw new Error( 'Headless mode requires a prompt. Use: cn -p "your prompt"\n' + 'Or pipe input: echo "prompt" | cn -p\n' +