Skip to content

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

chore: remove debug print statements from session host builder

Steven Enamakel7143703c6bae
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
index 49c4fe9e0a..8fcc96c0fc 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
@@ -191,7 +191,6 @@ impl SessionHostBuilder {
}
}
visible_names.extend(self.permanent_tool_names.iter().cloned());
- eprintln!("BUILDER visible={visible_names:?} permanent={:?}", self.permanent_tool_names);
deferred_names.retain(|name| !self.permanent_tool_names.contains(name));
// What the policy classifies and the harness registers: the advertised
// set plus the deferred set. A deferred tool outside this union would
@@ -227,7 +226,6 @@ impl SessionHostBuilder {
&all_tools,
&reachable_names,
);
- eprintln!("POLICY permanent={:?} allowed={:?} denied={:?}", self.permanent_tool_names, self.permanent_tool_names.iter().map(|name| (name, tool_policy_session.decision_for(name))).collect::<Vec<_>>(), self.permanent_tool_names.iter().map(|name| (name, tool_policy_session.decision_for(name))).collect::<Vec<_>>());
// A pack whose owner this agent can hand off to directly is that
// specialist's belt, not this agent's: close it (#6302).
crate::tools::toolpacks::close_handed_off_packs(
@@ -285,7 +283,6 @@ impl SessionHostBuilder {
// routing started sending the same tool list to Anthropic.
let visible_tool_specs: Vec<Arc<ToolSpec>> =
dedup_visible_tool_specs(visible_tool_specs_unfiltered);
- eprintln!("FINAL_VISIBLE_SPECS={:?}", visible_tool_specs.iter().map(|spec| &spec.name).collect::<Vec<_>>());
let visible_names_list: Vec<&str> =
visible_tool_specs.iter().map(|s| s.name.as_str()).collect();
diff --git a/crates/openhuman-core/src/agent/session_host/builder/host_tools.rs b/crates/openhuman-core/src/agent/session_host/builder/host_tools.rs
index 297b5aa4b7..b223fc580c 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/host_tools.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/host_tools.rs
@@ -146,7 +146,6 @@ impl HostTurnTools {
if !visible.is_empty() {
visible.extend(self.visible);
}
- eprintln!("HOST_TOOLS visible={visible:?} permanent={:?}", self.permanent);
Ok(MergedHostTurnTools {
policy: self.policy,
withheld: self.withheld,