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(lifecycle): update subagent run status tests
Steven Enamakel6b418ade2aca
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter_tests.rsindex fab8c27fc7..d45bb8fcfa 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter_tests.rs@@ -110,6 +110,7 @@ fn a_losing_cached_cause_cannot_replace_the_durable_winner_cause() {Some(cause("permission", "shell", "loser was denied")),SubagentRunStatus::Incomplete {reason: "loser was denied".into(),+ failure_cause: None,},);@@ -137,6 +138,7 @@ fn ordinary_host_projection_keeps_the_winning_cause() {Some(winner_cause.clone()),SubagentRunStatus::Incomplete {reason: "permission denied".into(),+ failure_cause: None,},);diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_terminal_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_terminal_tests.rsindex e2233d18d1..32e43ac3bd 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_terminal_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_terminal_tests.rs@@ -68,6 +68,7 @@ async fn driver_cancel_uses_the_typed_terminal_for_lossy_idle_sessions() {"typed-completed" => SubagentRunStatus::Completed,_ => SubagentRunStatus::Incomplete {reason: "iteration cap".into(),+ failure_cause: None,},},Vec::new(),diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rsindex d2c2fa04cc..fbdc2c12f9 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_tests.rs@@ -67,6 +67,7 @@ fn driver_error_accepts_only_matching_nonterminal_lifecycle_snapshots() {"incomplete",SubagentRunStatus::Incomplete {reason: "iteration limit".into(),+ failure_cause: None,},),("cancelled", SubagentRunStatus::Cancelled),@@ -614,6 +615,7 @@ async fn driver_inline_projection_returns_the_durable_winner_not_a_local_loser()failure_cause: None,..cached_outcome(SubagentRunStatus::Incomplete {reason: "winner stopped".into(),+ failure_cause: None,})};let winner_cache = Arc::new(Mutex::new(HashMap::from([(key.clone(), winning_host)])));@@ -643,7 +645,7 @@ async fn driver_inline_projection_returns_the_durable_winner_not_a_local_loser()assert_eq!(projected.usage.charged_amount_usd, 0.75);assert!(matches!(projected.status,- SubagentRunStatus::Incomplete { ref reason } if reason == "winner stopped"+ SubagentRunStatus::Incomplete { ref reason, .. } if reason == "winner stopped"));assert_eq!(projected.final_history.len(), 1);assert_eq!(