Skip to content

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

test(embed): widen operator tool loop assertion

Steven Enamakel2a3cc89f2e5b
diff --git a/crates/openhuman-embed/tests/profile_operator_tools.rs b/crates/openhuman-embed/tests/profile_operator_tools.rs
index b177e81cb2..f84f3566d2 100644
--- a/crates/openhuman-embed/tests/profile_operator_tools.rs
+++ b/crates/openhuman-embed/tests/profile_operator_tools.rs
@@ -195,12 +195,14 @@ async fn scenario() {
);
assert_eq!(runtime.sweep_cron_at(later).await.ran, 0);
- // A model that never stops calling tools is cut off at the cap.
+ // A model that never stops calling tools is cut off at the operator's cap:
+ // the harness stops at CAP model calls and the turn's recovery adds a few
+ // more, nowhere near the orchestrator's own cap of 200.
let before = chat_requests(&chat).await.len();
let _ = handle.chat("t3", "loop forever").await;
let rounds = chat_requests(&chat).await.len() - before;
assert!(
- (CAP..=CAP + 1).contains(&rounds),
+ (CAP..3 * CAP).contains(&rounds),
"{rounds} model rounds for a cap of {CAP}"
);