From 237f1c2bddf24ce979cf9b752d4b5bc5d6d252d8 Mon Sep 17 00:00:00 2001 From: Angie Jones Date: Mon, 12 Jan 2026 23:55:09 -0600 Subject: [PATCH] fix: apply subrecipes when using slash commands (#6460) --- crates/goose/src/agents/execute_commands.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/goose/src/agents/execute_commands.rs b/crates/goose/src/agents/execute_commands.rs index 545fcb9b..020abb8d 100644 --- a/crates/goose/src/agents/execute_commands.rs +++ b/crates/goose/src/agents/execute_commands.rs @@ -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()