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(tinyagents): assert live close alias error and success text
Steven Enamakel53e699462cdc
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rsindex 2218642f95..168b653b10 100644--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs@@ -284,7 +284,13 @@ async fn live_close_alias_enforces_parent_thread_ownership() {).await.expect("foreign close dispatch");- assert!(foreign.results[0].is_error);+ assert!(+ foreign.results[0]+ .text()+ .contains("not found for this parent thread"),+ "foreign live close should fail closed: {}",+ foreign.results[0].text()+ );assert!(sessions.load().unwrap().iter().any(|row| {row.subagent_session_id == "foreign-session" && row.status == DurableSubagentStatus::Idle}));@@ -304,7 +310,11 @@ async fn live_close_alias_enforces_parent_thread_ownership() {).await.expect("owned close dispatch");- assert!(!owned.results[0].is_error, "{}", owned.results[0].output());+ assert!(+ owned.results[0].text().contains("closed"),+ "owned live close should report closure: {}",+ owned.results[0].text()+ );assert!(sessions.load().unwrap().iter().any(|row| {row.subagent_session_id == "owned-session" && row.status == DurableSubagentStatus::Closed}));