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(embed): assert per-channel and reopened commits in profile scenario
Steven Enamakelca30d106c90c
diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rsindex b950dfff7e..cfe31b8656 100644--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs@@ -114,7 +114,23 @@ impl Respond for CallTools {.iter().any(|name| name == "tenant_probe"){- chat_completion(&format!("done: {}", common::last_user_message(&body)))+ let message = common::last_user_message(&body);+ let user = if message.contains("alice") {+ "alice"+ } else {+ "bob"+ };+ let channel = if message.contains("[Channel context]") {+ "relay"+ } else {+ "chat"+ };+ let reopened = if message.contains("after reopening") {+ "reopened-"+ } else {+ ""+ };+ chat_completion(&format!("done: {reopened}{channel}:{user}"))} else {let mut completion = tool_call_completion("tenant_probe", "{}");let names = ["tenant_probe"];@@ -562,10 +578,10 @@ async fn scenario() {.contains(&format!("{}-native-learning", handle.id()))&& response.to_string()- .contains(&format!("done: remember {}-native-learning", handle.id()))+ .contains(&format!("done: chat:{}", handle.id()))&& response.to_string()- .contains(&format!("done: {}: call tenant_probe", handle.id()))+ .contains(&format!("done: relay:{}", handle.id())){break response;}@@ -582,9 +598,19 @@ async fn scenario() {"{response}");assert!(- text.contains(&format!("done: remember {}-native-learning", handle.id())),+ text.contains(&format!("done: chat:{}", handle.id())),"the deferred chat commit reaches the profile engine: {response}");+ if handle.id().as_str() == "alice" {+ assert!(+ text.contains("done: reopened-chat:alice"),+ "reopened chat commit: {response}"+ );+ assert!(+ text.contains("done: reopened-relay:alice"),+ "reopened relay commit: {response}"+ );+ }assert!(text.contains(&format!("{}-native-learning", handle.id())),"native memory mutation was persisted: {response}"