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(runtime): cover unprofiled agent key collisions
Steven Enamakel0f7bc83c2d15
diff --git a/crates/openhuman-core/src/core/runtime/tenant_tests.rs b/crates/openhuman-core/src/core/runtime/tenant_tests.rsindex 6c09088bbc..33dd41070d 100644--- a/crates/openhuman-core/src/core/runtime/tenant_tests.rs+++ b/crates/openhuman-core/src/core/runtime/tenant_tests.rs@@ -152,6 +152,19 @@ fn profiles_prefix_their_keys() {);}+#[test]+fn an_unprofiled_agent_never_collides_with_a_profiled_one() {+ assert_ne!(+ session_key(&tenant(None, Some("a~b"))),+ session_key(&tenant(Some("a"), Some("b")))+ );+ assert_eq!(session_key(&tenant(None, Some("plain"))), "plain");+ assert_ne!(+ session_key(&tenant(None, Some("a~b"))),+ session_key(&tenant(None, Some("a%7Eb")))+ );+}+#[test]fn keys_split_back_into_their_parts() {for (t, id) in [