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(startup): assert hosted media routing details and terminal counts
Steven Enamakeld750fc8860a8
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rsindex 9d5a58a8bb..f898ea66ba 100644--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers_tests.rs@@ -724,6 +724,42 @@ async fn hosted_target_projects_typed_media_and_voice_to_web_and_gateway_once()voice_gateway_wire["structured"]["parts"][0]["part"]["kind"],"voice_note");+ assert_eq!(+ voice_gateway_wire["structured"]["parts"][0]["part"]["voiceNote"]["media"]["opaqueId"],+ "media:tenant7/thread42/voice1"+ );+ assert_eq!(+ image_gateway_wire["structured"]["channel_ref"]["account_id"],+ "trusted-account-7"+ );+ assert_eq!(+ image_gateway_wire["structured"]["conversation_ref"]["thread_id"],+ "topic-3"+ );+ assert_eq!(+ gateway_terminals+ .iter()+ .filter(|event| event.full_response().is_some_and(|text| text == "Generated image"))+ .count(),+ 1,+ "image delivery has one provider terminal"+ );+ assert_eq!(+ gateway_terminals+ .iter()+ .filter(|event| event.full_response().is_some_and(|text| text.is_empty()))+ .count(),+ 1,+ "voice delivery has one provider terminal"+ );+ assert_eq!(+ gateway_terminals+ .iter()+ .filter(|event| event.full_response().is_some_and(|text| text == "Final hosted reply"))+ .count(),+ 1,+ "final text has one provider terminal"+ );assert_eq!(relay.sent().len(),3,