Skip to content

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

test(subagent-host): improve artifact path assertion failure output

Steven Enamakeld27d84d164f4
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs
index 5482577522..b2df880e5a 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner_artifacts_tests.rs
@@ -86,7 +86,7 @@ async fn byte_policy_projects_a_parent_readable_artifact_before_the_result_cap()
.artifact_paths
.iter()
.find(|path| path.starts_with("outputs/"))
- .expect("host projection records its artifact path");
+ .unwrap_or_else(|| panic!("host projection records its artifact path: {:?} / {}", outcome.artifact_paths, outcome.output));
let parent_copy = parent_action_dir.join(stored_path);
assert!(
parent_copy.is_file(),