Skip to content

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

test(cron): surface build errors in cron agent scope test

Steven Enamakelc4017ab2a230
diff --git a/crates/openhuman-core/src/cron/scheduler_halt_and_persist_tests.rs b/crates/openhuman-core/src/cron/scheduler_halt_and_persist_tests.rs
index 69e1a927b0..a21309420c 100644
--- a/crates/openhuman-core/src/cron/scheduler_halt_and_persist_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_halt_and_persist_tests.rs
@@ -342,9 +342,11 @@ async fn cron_agent_job_uses_agent_definition_tool_scope() {
job.name = Some("morning_briefing".into());
job.agent_id = Some("morning_briefing".into());
- let built =
- build_agent_for_cron_job(&crate::core::runtime::DispatchCtx::ambient(), &config, &job)
- .expect("build cron agent");
+ let built = build_agent_for_cron_job(&crate::core::runtime::DispatchCtx::ambient(), &config, &job)
+ .unwrap_or_else(|error| {
+ eprintln!("failed to build cron agent: {error:#}");
+ panic!("build cron agent")
+ });
let visible = built.agent.visible_tool_specs_arc();
assert!(