Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/goose/src/agents/reply_parts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use crate::providers::toolshim::{
};

use crate::agents::code_execution_extension::EXTENSION_NAME as CODE_EXECUTION_EXTENSION;
use crate::agents::subagent_tool::SUBAGENT_TOOL_NAME;
#[cfg(test)]
use crate::session::SessionType;
use rmcp::model::Tool;
Expand Down Expand Up @@ -128,7 +129,9 @@ impl Agent {
.await;
if code_execution_active {
let code_exec_prefix = format!("{CODE_EXECUTION_EXTENSION}__");
tools.retain(|tool| tool.name.starts_with(&code_exec_prefix));
tools.retain(|tool| {
tool.name.starts_with(&code_exec_prefix) || tool.name == SUBAGENT_TOOL_NAME
});
}

// Stable tool ordering is important for multi session prompt caching.
Expand Down