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(host_agent): add core context to test channel
Steven Enamakel3ff8797f0879
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 480ff02cab..ec83adce13 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@@ -144,7 +144,12 @@ async fn an_unbound_channel_runs_the_orchestrator() {.insert("discord".into(), "some-agent".into());let channel = Arc::new(crate::channels::runtime::TestChannel::new("telegram"));- process_channel_message(context(Arc::clone(&channel), config), message("hello")).await;+ let mut ctx = context(Arc::clone(&channel), config.clone());+ let core = Arc::new(CoreContext::for_test_with_config(DomainSet::full(), config));+ Arc::get_mut(&mut ctx)+ .expect("the channel context is shared only by this test")+ .core = Some(Arc::downgrade(&core));+ process_channel_message(ctx, message("hello")).await;assert_eq!(channel