The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
Revert "fix(session_host): gate delegation tools on the same rule at turn time"
Steven Enamakelffc9e6f29ac1
diff --git a/crates/openhuman-core/src/agent/session_host/builder/mod.rs b/crates/openhuman-core/src/agent/session_host/builder/mod.rsindex 74da5d845f..9e7712013b 100644--- a/crates/openhuman-core/src/agent/session_host/builder/mod.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/mod.rs@@ -258,7 +258,7 @@ pub(super) fn summarizes_tool_output(agent_id: &str, config: &crate::config::Concrate::inference::tokenjuice::summarizes_tool_output(agent_id, config)}-pub(crate) fn should_synthesize_delegation_tools(def: &AgentDefinition) -> bool {+pub(super) fn should_synthesize_delegation_tools(def: &AgentDefinition) -> bool {match &def.tools {ToolScope::Wildcard => !def.subagents.is_empty(),ToolScope::Named(names) => names.iter().any(|name| {diff --git a/crates/openhuman-core/src/agent/session_host/turn/tools.rs b/crates/openhuman-core/src/agent/session_host/turn/tools.rsindex cf2679a70b..5e3a0948b0 100644--- a/crates/openhuman-core/src/agent/session_host/turn/tools.rs+++ b/crates/openhuman-core/src/agent/session_host/turn/tools.rs@@ -116,12 +116,7 @@ impl OpenHumanSessionHost {);return;};- // The same rule as at build time: a named scope delegates only when it- // names a spawn tool, so the definition's roster never widens an- // explicit allowlist on a later turn.- if def.subagents.is_empty()- || !super::super::builder::should_synthesize_delegation_tools(&def)- {+ if def.subagents.is_empty() {return;}