From deee5dd355bfa609b1fc3ee30b918356a40a0bb8 Mon Sep 17 00:00:00 2001 From: Tyler Longwell Date: Tue, 2 Dec 2025 13:25:34 -0500 Subject: [PATCH] headless helpful error --- crates/goose-tui/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/goose-tui/src/main.rs b/crates/goose-tui/src/main.rs index 2043b1e3ce..59f14517bf 100644 --- a/crates/goose-tui/src/main.rs +++ b/crates/goose-tui/src/main.rs @@ -261,6 +261,8 @@ async fn run_tui( run_recipe_mode(client, cwd, recipe_path, headless).await } else if let Some(prompt) = text_input { run_text_mode(client, cwd, resolved_session, prompt).await + } else if headless { + anyhow::bail!("--headless requires either --recipe or --text (or piped stdin)") } else { run_interactive_mode(client, cwd, resolved_session, name).await };