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(dispatch): populate module objects in native host deadline test
Steven Enamakel7d0f669a0104
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rsindex 81d53d68f3..c292ce7f92 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/host_agent/dispatch_tests.rs@@ -523,6 +523,19 @@ async fn native_host_agent_turn_enforces_the_configured_channel_deadline_inner().await.expect("the linked module prepares the exact inbound message");assert_eq!(prepared.message.channel, "telegram");+ let account_id = prepared+ .envelope+ .channel+ .account_id+ .clone()+ .expect("prepared native channel has an account identity");+ let channel_object = fixture_client+ .object_client("tinychannels", tinychannels_module::OBJECT_PATH)+ .await+ .expect("the linked fixture exposes the channel object");+ Arc::get_mut(&mut ctx)+ .expect("the test still owns the runtime context")+ .module_objects = Arc::new(HashMap::from([(account_id, channel_object)]));let _installed = InstalledResolver::new(resolver);let inbound_message = prepared.message.clone();