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(channels): wire core context into telegram round-trip test
Steven Enamakelf15c784270d2
diff --git a/crates/openhuman-core/src/channels/routes_command_tests.rs b/crates/openhuman-core/src/channels/routes_command_tests.rsindex a8acbd2603..e2268b88f1 100644--- a/crates/openhuman-core/src/channels/routes_command_tests.rs+++ b/crates/openhuman-core/src/channels/routes_command_tests.rs@@ -163,10 +163,15 @@ async fn handle_runtime_command_telegram_sessions_reports_empty_store() {async fn handle_runtime_command_telegram_new_status_and_sessions_round_trip() {let tempdir = tempfile::tempdir().unwrap();let _storage = crate::channels::module_fixture::install_memory_storage();+ let core = crate::core::runtime::CoreContext::for_test(+ crate::core::runtime::DomainSet::full(),+ Some(tempdir.path().to_path_buf()),+ );let mut ctx = runtime_context(tempdir.path().to_path_buf());// Unit-test module calls use the linked fixture, which installs the// host-storage callbacks TinyChannels needs for durable remote bindings.ctx.config = None;+ ctx.core = Some(Arc::downgrade(&core));let channel_impl = Arc::new(RecordingChannel::default());let channel: Arc<dyn Channel> = channel_impl.clone();let sender_key = "telegram_alice_chat-remote";