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(spawn_subagent): cover frozen legacy args and register surface tests
Steven Enamakelb5bb1de527b6
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rsindex c3d8712278..9f7247e155 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs@@ -576,3 +576,7 @@ fn reusable_follow_up_message(prompt: &str, context: Option<&str>) -> String {#[cfg(test)]#[path = "spawn_subagent_async_tests.rs"]mod tests;++#[cfg(test)]+#[path = "spawn_subagent_tests.rs"]+mod surface_tests;diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rsindex 50ae2c5ffd..da41c73c97 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs@@ -249,7 +249,12 @@ fn frozen_legacy_mode_arguments_are_accepted_but_ignored() {"dedicated_thread": true,});let decoded = decode_async_spawn_args(&args);+ let plain = decode_async_spawn_args(&json!({+ "agent_id": "task_manager_agent",+ "prompt": "inspect the frozen-session compatibility route",+ }));assert_eq!(decoded.agent_id, "task_manager_agent");assert_eq!(decoded.prompt, "inspect the frozen-session compatibility route");- assert_eq!(decoded.task_key, durable_task_key_source(&args, &decoded.prompt, None));+ assert_eq!(decoded.task_key, plain.task_key);+ assert!(!decoded.force_fresh);}