Skip to content

Commit 237f1c2

Browse files
authored
fix: apply subrecipes when using slash commands (#6460)
1 parent 637049c commit 237f1c2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

crates/goose/src/agents/execute_commands.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ impl Agent {
358358
Err(e) => return Err(anyhow!("Failed to build recipe: {}", e)),
359359
};
360360

361+
self.apply_recipe_components(recipe.sub_recipes.clone(), recipe.response.clone(), true)
362+
.await;
363+
361364
let prompt = [recipe.instructions.as_deref(), recipe.prompt.as_deref()]
362365
.into_iter()
363366
.flatten()

0 commit comments

Comments
 (0)