From 302e9468d85b2d87effa144730ff5b8064107038 Mon Sep 17 00:00:00 2001 From: Yiming Zhang <61700160+inmzhang@users.noreply.github.com> Date: Wed, 20 Aug 2025 23:42:43 +0800 Subject: [PATCH] Fix: Missing smart_approve in CLI /mode help text and error message (#4132) --- crates/goose-cli/src/session/input.rs | 2 +- crates/goose-cli/src/session/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/goose-cli/src/session/input.rs b/crates/goose-cli/src/session/input.rs index 3459ca80..be604f03 100644 --- a/crates/goose-cli/src/session/input.rs +++ b/crates/goose-cli/src/session/input.rs @@ -281,7 +281,7 @@ fn print_help() { /builtin - Add builtin extensions by name (comma-separated) /prompts [--extension ] - List all available prompts, optionally filtered by extension /prompt [--info] [key=value...] - Get prompt info or execute a prompt -/mode - Set the goose mode to use ('auto', 'approve', 'chat') +/mode - Set the goose mode to use ('auto', 'approve', 'chat', 'smart_approve') /plan - Enters 'plan' mode with optional message. Create a plan based on the current messages and asks user if they want to act on it. If user acts on the plan, goose mode is set to 'auto' and returns to 'normal' goose mode. To warm up goose before using '/plan', we recommend setting '/mode approve' & putting appropriate context into goose. diff --git a/crates/goose-cli/src/session/mod.rs b/crates/goose-cli/src/session/mod.rs index bae2fa90..0c6e12f5 100644 --- a/crates/goose-cli/src/session/mod.rs +++ b/crates/goose-cli/src/session/mod.rs @@ -581,7 +581,7 @@ impl Session { // Check if mode is valid if !["auto", "approve", "chat", "smart_approve"].contains(&mode.as_str()) { output::render_error(&format!( - "Invalid mode '{}'. Mode must be one of: auto, approve, chat", + "Invalid mode '{}'. Mode must be one of: auto, approve, chat, smart_approve", mode )); continue;