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 };