Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs,crat

Steven Enamakelf758b30cfefc
diff --git a/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs b/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs
index 75d5c4fd23..50465741e6 100644
--- a/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs
+++ b/crates/openhuman-core/src/channels/controllers/ops/connect/memory_tests.rs
@@ -306,6 +306,7 @@ async fn reserved_channel_thread_id_survives_metadata_edit_without_prefix_collis
config.workspace_dir = tmp.path().to_path_buf();
config.memory.engine.clear();
use_linked_channel_module(&mut config).await;
+ use_linked_channel_module(&mut config).await;
let ctx = DispatchCtx::ambient();
let target = store_channel_thread(
ctx.clone(),
@@ -360,6 +361,7 @@ async fn offline_snapshot_scans_every_thread_and_message_page() {
config.workspace_dir = tmp.path().to_path_buf();
config.memory.engine.clear();
use_linked_channel_module(&mut config).await;
+ use_linked_channel_module(&mut config).await;
let workspace = config.workspace_dir.clone();
let ctx = DispatchCtx::ambient();
let params = crate::channels::providers::relay::RelayInboundParams::new(
@@ -559,5 +561,6 @@ async fn memory_off_clears_nothing() {
let mut config = Config::default();
config.workspace_dir = tmp.path().to_path_buf();
config.memory.engine = String::new();
+ use_linked_channel_module(&mut config).await;
assert_eq!(clear_channel_memory(&config, "discord").await.unwrap(), 0);
}
diff --git a/crates/openhuman-core/src/memory/ops_tests.rs b/crates/openhuman-core/src/memory/ops_tests.rs
index f179f3e03f..a9cf2d3789 100644
--- a/crates/openhuman-core/src/memory/ops_tests.rs
+++ b/crates/openhuman-core/src/memory/ops_tests.rs
@@ -43,7 +43,10 @@ async fn reserved_thread_matching_uses_module_identity_boundaries() {
assert!(is_channel_thread_id(&base, &base));
assert!(is_channel_thread_id(&format!("{base}/thread-1"), &base));
- assert!(is_channel_thread_id(&format!("{base}#thread:1700.001"), &base));
+ assert!(is_channel_thread_id(
+ &format!("{base}#thread:1700.001"),
+ &base
+ ));
assert!(!is_channel_thread_id(&format!("{base}suffix"), &base));
assert!(!is_channel_thread_id(&neighboring_channel, &base));
assert!(!is_channel_thread_id(&format!("prefix-{base}"), &base));