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(threads): build expected session key via shared builder
Steven Enamakel3fb0b57514ca
diff --git a/crates/openhuman-core/src/threads/store/bus_tests.rs b/crates/openhuman-core/src/threads/store/bus_tests.rsindex 3f4ccc0e72..45b04211f4 100644--- a/crates/openhuman-core/src/threads/store/bus_tests.rs+++ b/crates/openhuman-core/src/threads/store/bus_tests.rs@@ -35,6 +35,13 @@ async fn persists_inbound_and_processed_turns_into_workspace_thread() {);inbound_envelope.conversation.kind = tinychannels_bus::channel::ConversationKind::Channel;inbound_envelope.conversation.scope_id = Some("T123".into());+ // The module owns the session-key format, so the expectation is built by the+ // same builder rather than spelled out.+ let expected_session_key = tinychannels_runtime::channel::build_session_key_for_inbound_envelope(+ "main",+ &inbound_envelope,+ Default::default(),+ );subscriber.handle(&DomainEvent::ChannelMessageReceived {@@ -84,7 +91,7 @@ async fn persists_inbound_and_processed_turns_into_workspace_thread() {assert_eq!(messages[0].sender, "user");assert_eq!(messages[0].extra_metadata["tinychannelsSessionKey"],- "main:slack:default:channel:T123:general:thread-1"+ expected_session_key);assert_eq!(messages[1].id, "assistant:m1");assert_eq!(messages[1].sender, "assistant");