diff --git a/crates/goose-cli/src/cli.rs b/crates/goose-cli/src/cli.rs index 477d52ddebb9..cf29fd980327 100644 --- a/crates/goose-cli/src/cli.rs +++ b/crates/goose-cli/src/cli.rs @@ -1196,6 +1196,7 @@ pub async fn cli() -> Result<()> { .await; if let Err(e) = session.interactive(None).await { eprintln!("Session ended with error: {}", e); + std::process::exit(1); } Ok(()) };