Skip to content

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

chore(session-host): add debug print for permanent tool policy decisions

Steven Enamakelda0f1cebc54f
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 0bc1d9b970..49318254b6 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
@@ -227,6 +227,7 @@ 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(