Skip to content

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

feat(runtime_session): filter thread-goal tools when no thread is active

Steven Enamakel3347d7b25096
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index 98f7ece158..a42061da19 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -228,6 +228,12 @@ impl OpenHumanTurnPrelude {
surface
.visible_tool_specs
.iter()
+ .filter(|spec| {
+ self.thread_id.is_some()
+ || !crate::agent::tinyagents::harness_tool_registration::is_thread_goal_tool(
+ &spec.name,
+ )
+ })
.chain(
surface
.tool_specs