From a39b2db8333bae51e00ea484587490ac832970aa Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Tue, 11 Nov 2025 19:39:07 -0800 Subject: [PATCH] fix: :bug: More fixes --- extensions/cli/src/commands/chat.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/extensions/cli/src/commands/chat.ts b/extensions/cli/src/commands/chat.ts index c5e57a204..e907f7e66 100644 --- a/extensions/cli/src/commands/chat.ts +++ b/extensions/cli/src/commands/chat.ts @@ -444,16 +444,6 @@ async function runHeadlessMode( prompt: string | undefined, options: ChatOptions, ): 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) { - throw new Error( - 'Headless mode requires a prompt. Use: cn -p "your prompt"\n' + - 'Or pipe input: echo "prompt" | cn -p\n' + - "Or use agent files: cn -p --agent my-org/my-agent", - ); - } - // Initialize services for headless mode const { permissionOverrides } = processCommandFlags(options);