Subagent extension selection behavior fix (#5093)
This commit is contained in:
@@ -91,10 +91,10 @@ async fn handle_inline_recipe_task(
|
||||
.and_then(|v| v.as_bool())
|
||||
.unwrap_or(false);
|
||||
|
||||
// If extensions are explicitly provided in the recipe (even if empty),
|
||||
// override the task_config extensions. Empty array means no extensions.
|
||||
if let Some(exts) = recipe.extensions {
|
||||
if !exts.is_empty() {
|
||||
task_config.extensions = exts.clone();
|
||||
}
|
||||
task_config.extensions = exts.clone();
|
||||
}
|
||||
|
||||
let instruction = recipe
|
||||
|
||||
Reference in New Issue
Block a user