Skip to content

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

test(orchestration): include tool output in subagent failure assertion

Steven Enamakel783b74c9c537
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
index 71ff221d67..2a1324aa2c 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs
@@ -85,7 +85,11 @@ async fn spawn_subagent_reports_a_stopped_child_as_a_failed_tool_result() {
"a stopped child must fail the parent's tool call: {}",
result.output()
);
- assert!(result.output().contains("[SUBAGENT_INCOMPLETE]"));
+ assert!(
+ result.output().contains("[SUBAGENT_INCOMPLETE]"),
+ "{}",
+ result.output()
+ );
let mut stop = None;
while let Ok(event) = progress_rx.try_recv() {