mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
fix: disable subagents unless env var explicitly provided
This commit is contained in:
@@ -93,6 +93,9 @@ pub struct TaskParameter {
|
||||
}
|
||||
|
||||
pub fn should_enabled_subagents(model_name: &str) -> bool {
|
||||
if std::env::var("GOOSE_ENABLE_SUBAGENTS").is_err() {
|
||||
return false;
|
||||
}
|
||||
let config = crate::config::Config::global();
|
||||
let is_autonomous = config.get_goose_mode().unwrap_or(GooseMode::Auto) == GooseMode::Auto;
|
||||
if !is_autonomous {
|
||||
|
||||
@@ -22,6 +22,7 @@ export PATH="$SCRIPT_DIR/target/release:$PATH"
|
||||
# Set default provider and model if not already set
|
||||
export GOOSE_PROVIDER="${GOOSE_PROVIDER:-anthropic}"
|
||||
export GOOSE_MODEL="${GOOSE_MODEL:-claude-sonnet-4-5-20250929}"
|
||||
export GOOSE_ENABLE_SUBAGENTS=1
|
||||
|
||||
echo "Using provider: $GOOSE_PROVIDER"
|
||||
echo "Using model: $GOOSE_MODEL"
|
||||
|
||||
Reference in New Issue
Block a user