Fix: Missing smart_approve in CLI /mode help text and error message (#4132)
This commit is contained in:
@@ -281,7 +281,7 @@ fn print_help() {
|
|||||||
/builtin <names> - Add builtin extensions by name (comma-separated)
|
/builtin <names> - Add builtin extensions by name (comma-separated)
|
||||||
/prompts [--extension <name>] - List all available prompts, optionally filtered by extension
|
/prompts [--extension <name>] - List all available prompts, optionally filtered by extension
|
||||||
/prompt <n> [--info] [key=value...] - Get prompt info or execute a prompt
|
/prompt <n> [--info] [key=value...] - Get prompt info or execute a prompt
|
||||||
/mode <name> - Set the goose mode to use ('auto', 'approve', 'chat')
|
/mode <name> - Set the goose mode to use ('auto', 'approve', 'chat', 'smart_approve')
|
||||||
/plan <message_text> - Enters 'plan' mode with optional message. Create a plan based on the current messages and asks user if they want to act on it.
|
/plan <message_text> - 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.
|
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.
|
To warm up goose before using '/plan', we recommend setting '/mode approve' & putting appropriate context into goose.
|
||||||
|
|||||||
@@ -581,7 +581,7 @@ impl Session {
|
|||||||
// Check if mode is valid
|
// Check if mode is valid
|
||||||
if !["auto", "approve", "chat", "smart_approve"].contains(&mode.as_str()) {
|
if !["auto", "approve", "chat", "smart_approve"].contains(&mode.as_str()) {
|
||||||
output::render_error(&format!(
|
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
|
mode
|
||||||
));
|
));
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user