fix: apply subrecipes when using slash commands (#6460)

This commit is contained in:
Angie Jones
2026-01-12 23:55:09 -06:00
committed by GitHub
parent 637049c967
commit 237f1c2bdd
@@ -358,6 +358,9 @@ impl Agent {
Err(e) => return Err(anyhow!("Failed to build recipe: {}", e)),
};
self.apply_recipe_components(recipe.sub_recipes.clone(), recipe.response.clone(), true)
.await;
let prompt = [recipe.instructions.as_deref(), recipe.prompt.as_deref()]
.into_iter()
.flatten()