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(orchestration): cover resume via spawn with matching task key
Steven Enamakel5ba679c9d014
diff --git a/crates/openhuman-core/src/agent/orchestration/tools.rs b/crates/openhuman-core/src/agent/orchestration/tools.rsindex b9c48f4a95..135ebd69f5 100644--- a/crates/openhuman-core/src/agent/orchestration/tools.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools.rs@@ -11,6 +11,9 @@ mod subagent_abort_report;#[cfg(test)]#[path = "tools/tools_e2e_driver_tests.rs"]mod tools_e2e_driver_tests;+#[cfg(test)]+#[path = "tools/tools_e2e_continuation_tests.rs"]+mod tools_e2e_continuation_tests;/// A minimal live TinyAgents carrier over `parent`, for tests that drive a/// concrete tool directly under an explicit parent execution context.diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rsindex 396022aded..fe72940a7c 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs@@ -1,8 +1,8 @@use super::*;#[tokio::test]-async fn continue_subagent_resumes_paused_job_through_shared_driver() {- use crate::agent::orchestration::tools::{ContinueSubagentTool, SpawnSubagentTool};+async fn spawn_subagent_with_same_task_key_resumes_paused_job_through_shared_driver() {+ use crate::agent::orchestration::tools::SpawnSubagentTool;use tinyagents_harness_tools::subagents::SubAgentJobRegistry;use tinyagents_orchestration::subagent::SubAgentJobStatus;@@ -33,6 +33,7 @@ async fn continue_subagent_resumes_paused_job_through_shared_driver() {"agent_id": "task_manager_agent","prompt": "Investigate the pause-resume fixture","model": "test-model",+ "task_key": "pause-resume-fixture","blocking": true}),None,@@ -64,12 +65,13 @@ async fn continue_subagent_resumes_paused_job_through_shared_driver() {.expect("initial pause is registered in shared Jobs");assert_eq!(paused_job.status, SubAgentJobStatus::AwaitingInput);- let resumed = ContinueSubagentTool::new()+ let resumed = SpawnSubagentTool::new().execute_with_live_parent_context(json!({- "task_id": task_id,"agent_id": "task_manager_agent",- "message": "Inspect the README and continue."+ "prompt": "Inspect the README and continue.",+ "model": "test-model",+ "task_key": "pause-resume-fixture"}),None,live.data.child(),