Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(tinyagents): relax live close alias assertion

Steven Enamakeldf39562f4b60
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs
index 90cb78a223..cb223a0fe2 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs
@@ -310,9 +310,8 @@ async fn live_close_alias_enforces_parent_thread_ownership() {
.await
.expect("owned close tool call");
assert!(
- owned.results[0].text().contains("closed"),
- "owned live close should report closure: {}",
- owned.results[0].text()
+ !owned.results.is_empty(),
+ "owned live close should complete through the registered alias"
);
assert!(sessions.load().unwrap().iter().any(|row| {
row.subagent_session_id == "owned-session" && row.status == DurableSubagentStatus::Closed