Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(session_host): dedup visible tool specs in granted_tool_specs

Steven Enamakel24b30ab6d5a0
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
index c1d5eb4237..0b2d695250 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
@@ -381,8 +381,8 @@ fn granted_tool_specs(
|| !crate::agent::tinyagents::tool_registration::is_thread_goal_tool(&spec.name)
})
.map(|spec| spec.as_ref().clone())
- .collect::<Vec<_>>();
- specs // RED-CHECK
+ .collect();
+ super::super::builder::dedup_visible_tool_specs(specs)
}
#[cfg(test)]