The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(subagent_host): look up spawned child job id in cancellation test
Steven Enamakel70693e7e26af
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rsindex e74e3ebbc5..52d2440308 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_model_resolution_tests.rs@@ -192,7 +192,7 @@ async fn closing_a_durable_driver_session_cancels_only_its_registered_child() {}]).expect("save the authenticated durable session");- spawn_async_via_driver_tool_with_jobs(+ let _spawn_reference = spawn_async_via_driver_tool_with_jobs(&parent,definition,"must be cancelled before the child runs".into(),@@ -202,6 +202,12 @@ async fn closing_a_durable_driver_session_cancels_only_its_registered_child() {).await.expect("background driver registers the child");+ let job_id = jobs+ .list()+ .into_iter()+ .find(|job| job.agent == "cancelled-child")+ .expect("driver child is visible in the shared registry")+ .id;tokio::time::timeout(std::time::Duration::from_secs(5), started_rx.recv()).await.expect("child reaches its blocking tool")@@ -237,7 +243,7 @@ async fn closing_a_durable_driver_session_cancels_only_its_registered_child() {&wait,&(),tinyagents_harness::CallId::new("wait-cancelled-close-child"),- serde_json::json!({"task_id":"close-driver-task","timeout_secs":1}),+ serde_json::json!({"task_id":job_id,"timeout_secs":1}),tinytools::ToolCallOptions::default(),&parent,)