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
chore: files changed crates/openhuman-core/src/channels/controllers/ops_connect_status_tests.rs,crat
Steven Enamakel8a2ae089ca11
diff --git a/crates/openhuman-core/src/channels/controllers/ops_connect_status_tests.rs b/crates/openhuman-core/src/channels/controllers/ops_connect_status_tests.rsindex 7512006cfc..8723aceb77 100644--- a/crates/openhuman-core/src/channels/controllers/ops_connect_status_tests.rs+++ b/crates/openhuman-core/src/channels/controllers/ops_connect_status_tests.rs@@ -4,6 +4,12 @@ use tinymemory_api::conformance::ReferenceEngine;use tinymemory_api::{MemoryEngine, MemoryMeta, Role, SourceKind, StoreItem, Turn};use crate::core::runtime::{ContextOverlay, CoreContext, DispatchCtx, DomainSet};+async fn use_linked_channel_module(config: &mut Config) {+ config.modules.source = crate::config::schema::ModuleSourceMode::Linked;+ config.modules.allow_download = false;+ let _client = crate::channels::module_fixture::client().await;+}+fn channel_memory_item(thread_id: &str, channel: &str) -> StoreItem {StoreItem::Conversation {turns: vec![Turn::new(Role::User, format!("hello from {channel}"))],@@ -44,7 +50,18 @@ async fn store_channel_thread(id,"hello",);- let thread_id = params.thread_id();+ let identity = crate::modules::channel_controller::prepare_identity(+ &crate::channels::module_fixture::client().await,+ tinychannels_bus::module_inbound::PrepareChannelIdentityRequest {+ channel: channel.to_string(),+ sender: Some(format!("sender-{id}")),+ reply_target: Some(format!("chat-{id}")),+ thread_ts: None,+ },+ )+ .await+ .expect("TinyChannels module should prepare the canonical thread id");+ let thread_id = identity.thread_id;let now = chrono::Utc::now().to_rfc3339();crate::threads::store::blocking::ensure_thread(ctx.clone(),@@ -277,6 +294,7 @@ async fn disconnect_discord_bot_token_clears_runtime_config() {#[tokio::test]async fn disconnect_rpc_reports_stamped_memory_count() {let (_tmp, mut config) = isolated_test_config();+ use_linked_channel_module(&mut config).await;config.channels_config.discord = Some(DiscordConfig {bot_token: "discord-token-abc".into(),guild_id: Some("guild-1".into()),@@ -308,6 +326,7 @@ async fn disconnect_rpc_reports_stamped_memory_count() {#[tokio::test]async fn disconnect_rpc_reports_zero_and_queues_when_memory_is_off() {let (_tmp, mut config) = isolated_test_config();+ use_linked_channel_module(&mut config).await;config.channels_config.discord = Some(DiscordConfig {bot_token: "discord-token-abc".into(),guild_id: Some("guild-1".into()),@@ -344,6 +363,7 @@ async fn disconnect_rpc_reports_zero_and_queues_when_memory_is_off() {#[tokio::test]async fn disconnect_rpc_surfaces_memory_error_after_queuing_snapshot() {let (_tmp, mut config) = isolated_test_config();+ use_linked_channel_module(&mut config).await;config.channels_config.discord = Some(DiscordConfig {bot_token: "discord-token-abc".into(),guild_id: Some("guild-1".into()),diff --git a/crates/openhuman-core/src/memory/ops_tests.rs b/crates/openhuman-core/src/memory/ops_tests.rsindex a9cf2d3789..17270c1c00 100644--- a/crates/openhuman-core/src/memory/ops_tests.rs+++ b/crates/openhuman-core/src/memory/ops_tests.rs@@ -57,6 +57,7 @@ async fn reserved_thread_matching_uses_module_identity_boundaries() {async fn unavailable_channel_module_reports_error_and_queues_known_legacy_threads() {use tinychannels_bus::module_inbound::PrepareChannelIdentityRequest;+ let _linked_module = crate::channels::module_fixture::client().await;let tmp = tempfile::tempdir().unwrap();let mut config = config_in(&tmp);config.modules.enabled = false;