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 fails closed
Steven Enamakelebb584f33f91
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rsindex 2e3a6ee2a8..90cb78a223 100644--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs@@ -285,13 +285,10 @@ async fn live_close_alias_enforces_parent_thread_ownership() {)],).await- .expect("foreign close tool call");+ .expect_err("closing another thread's session is denied by the live alias");assert!(- foreign.results[0]- .text()- .contains("not found for this parent thread"),- "foreign live close should fail closed: {}",- foreign.results[0].text()+ foreign.to_string().contains("tool dispatch failed"),+ "the harness surfaces the fail-closed control error: {foreign}");assert!(sessions.load().unwrap().iter().any(|row| {row.subagent_session_id == "foreign-session" && row.status == DurableSubagentStatus::Idle