Skip to content

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

test(grounded): assert typed cause closes deterministically

Steven Enamakel4cc17330f104
diff --git a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs
index 570fc9bf15..5d251784f4 100644
--- a/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver/grounded_close_tests.rs
@@ -210,10 +210,9 @@ async fn typed_cause_without_halt_note_still_closes_and_keeps_operation() {
close.output
);
assert_eq!(close.usage.model_calls, 0);
- assert_eq!(
- scripted.call_count(),
- 0,
- "typed cause closes deterministically"
+ assert!(
+ scripted.requests().is_empty(),
+ "typed cause closes deterministically without calling the provider"
);
let stop = crate::agent::session_host::stop_summary::classify_stop_with_cause(