Skip to content

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

test(openhuman-embed): accept reopened message id in host capability profile

Steven Enamakelcfc08a8b2eb9
diff --git a/crates/openhuman-embed/tests/profile_host_capabilities.rs b/crates/openhuman-embed/tests/profile_host_capabilities.rs
index 5fe5171402..b00ec408ed 100644
--- a/crates/openhuman-embed/tests/profile_host_capabilities.rs
+++ b/crates/openhuman-embed/tests/profile_host_capabilities.rs
@@ -73,7 +73,7 @@ impl Tool for TenantTool {
assert_eq!(channel, "telegram");
assert_eq!(sender.as_deref(), Some("sender"));
assert_eq!(reply_target, "chat");
- assert_eq!(message_id, "message");
+ assert!(matches!(message_id.as_str(), "message" | "reopened-message"));
}
origin => panic!("unexpected turn origin: {origin:?}"),
}
@@ -441,7 +441,7 @@ async fn scenario() {
"telegram",
"chat",
"sender",
- "message",
+ "reopened-message",
"alice: call tenant_probe after reopening"
))
.await