Skip to content

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

test(gate): add missing call-id argument to test invocations

Steven Enamakel47f15e7d9028
diff --git a/crates/openhuman-core/src/agent/plan_review/gate_tests.rs b/crates/openhuman-core/src/agent/plan_review/gate_tests.rs
index 41cdbf9dda..204cda0d06 100644
--- a/crates/openhuman-core/src/agent/plan_review/gate_tests.rs
+++ b/crates/openhuman-core/src/agent/plan_review/gate_tests.rs
@@ -11,6 +11,7 @@ async fn approve_resolves_parked_turn() {
Some("c1".into()),
"Ship it".into(),
vec!["step one".into()],
+ Some("call-1".into()),
)
.await
});
@@ -25,7 +26,7 @@ async fn revise_carries_feedback_back() {
let gate = std::sync::Arc::new(PlanReviewGate::new(Duration::from_secs(5)));
let g2 = gate.clone();
let parked = tokio::spawn(async move {
- g2.request_review(Some("t2".into()), None, "Plan".into(), vec![])
+ g2.request_review(Some("t2".into()), None, "Plan".into(), vec![], None)
.await
});
tokio::time::sleep(Duration::from_millis(20)).await;
@@ -47,7 +48,7 @@ async fn revise_carries_feedback_back() {
async fn timeout_fails_closed_to_reject() {
let gate = PlanReviewGate::new(Duration::from_millis(40));
let resolution = gate
- .request_review(Some("t3".into()), None, "Plan".into(), vec![])
+ .request_review(Some("t3".into()), None, "Plan".into(), vec![], None)
.await;
assert_eq!(resolution, PlanReviewResolution::Reject);
// The waiter is cleaned up after timeout.
@@ -67,7 +68,7 @@ async fn cancelled_park_cleans_up_waiter() {
let gate = std::sync::Arc::new(PlanReviewGate::new(Duration::from_secs(30)));
let g2 = gate.clone();
let handle = tokio::spawn(async move {
- g2.request_review(Some("t-drop".into()), None, "Plan".into(), vec![])
+ g2.request_review(Some("t-drop".into()), None, "Plan".into(), vec![], None)
.await
});
tokio::time::sleep(Duration::from_millis(20)).await;