Skip to content

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

test(subagent_host): pass new argument to graph subagent test calls

Steven Enamakele6867759aa4c
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs
index e24beeaa72..ee0c98312e 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs
@@ -110,6 +110,7 @@ async fn failed_subagent_run_keeps_its_unanswered_round_out_of_history() {
"mock-channel",
AgentTokenjuiceCompression::Off,
None,
+ None,
)
.await;
assert!(result.is_err(), "the rejected third call fails the run");
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs
index a21e32624d..c7489444c2 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs
@@ -145,6 +145,7 @@ async fn run_with_spawn_tool_in_parent_surface(allowed: HashSet<String>) -> (boo
"mock-channel",
AgentTokenjuiceCompression::Off,
None,
+ None,
)
.await
.expect("graph subagent runs");
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
index c55a5ffd81..eed019ed3d 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs
@@ -286,6 +286,7 @@ async fn explicit_worker_thread_replaces_parent_for_model_run_and_transcript() {
"test",
AgentTokenjuiceCompression::Off,
None,
+ None,
)
.await
.expect("worker run");
@@ -334,6 +335,7 @@ async fn subagent_runs_through_the_graph_engine_with_real_tools() {
// context defaults instead of reading the developer machine's
// real config.toml, which is what the old in-graph load did.
None,
+ None,
)
.await
.expect("graph subagent runs");
@@ -420,6 +422,7 @@ async fn child_text_and_thinking_deltas_are_scoped_to_the_subagent() {
// context defaults instead of reading the developer machine's
// real config.toml, which is what the old in-graph load did.
None,
+ None,
)
.await
.expect("child-delta subagent runs");
@@ -556,6 +559,7 @@ async fn ask_user_clarification_pauses_and_surfaces_the_question() {
// context defaults instead of reading the developer machine's
// real config.toml, which is what the old in-graph load did.
None,
+ None,
)
.await
.expect("ask-clarification subagent runs");
@@ -648,6 +652,7 @@ async fn cap_hit_summarizes_a_resumable_checkpoint() {
// context defaults instead of reading the developer machine's
// real config.toml, which is what the old in-graph load did.
None,
+ None,
)
.await
.expect("cap-hit subagent runs");