Skip to content

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

test(channels): add assertion for second harness turn sends

Steven Enamakelf40402237003
diff --git a/crates/openhuman-core/src/channels/tests/host_pipeline.rs b/crates/openhuman-core/src/channels/tests/host_pipeline.rs
index 00332cbbc4..97543accad 100644
--- a/crates/openhuman-core/src/channels/tests/host_pipeline.rs
+++ b/crates/openhuman-core/src/channels/tests/host_pipeline.rs
@@ -134,6 +134,11 @@ async fn dispatch_harness_default_workspace_does_not_reuse_prior_transcript() {
})
.await;
assert_eq!(second.model_calls.len(), 1);
+ assert_eq!(
+ second.sends.len(),
+ 1,
+ "the second harness turn replies successfully"
+ );
assert!(second.model_calls[0]
.text
.contains("second isolated harness turn"));