Skip to content

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

test(session_host): surface builder error in empty scope test

Steven Enamakel60d11c5637ef
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs
index 284fd1bddb..11cc501e1e 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs
@@ -343,12 +343,13 @@ async fn an_empty_named_scope_advertises_no_tools_at_all() {
let tmp = tempfile::TempDir::new().unwrap();
let config = test_config(&tmp);
- let agent = OpenHumanSessionHost::from_config_for_agent(
+ let result = OpenHumanSessionHost::from_config_for_agent(
&crate::core::runtime::DispatchCtx::ambient(),
&config,
"summarizer",
- )
- .unwrap_or_else(|error| panic!("summarizer is a shipped agent definition: {error:#}"));
+ );
+ eprintln!("from_config_for_agent error: {:?}", result.as_ref().err());
+ let agent = result.expect("summarizer is a shipped agent definition");
let visible = &agent.visible_tool_names;
let real: Vec<&String> = visible