Skip to content

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

test(memory): assert conditional stream append in backfill fixture

Steven Enamakel00540b51f11b
diff --git a/crates/openhuman-core/src/memory/backfill_tests.rs b/crates/openhuman-core/src/memory/backfill_tests.rs
index 1dd57f2ff8..07fb1fa048 100644
--- a/crates/openhuman-core/src/memory/backfill_tests.rs
+++ b/crates/openhuman-core/src/memory/backfill_tests.rs
@@ -20,6 +20,13 @@ fn message(id: &str, sender: &str, content: &str, at: &str) -> ConversationMessa
}
async fn seed_thread(workspace: &Path, thread_id: &str, messages: &[(&str, &str)]) {
+ let backend = crate::storage::local::backend_for(workspace).expect("open test storage");
+ assert!(
+ backend
+ .capabilities()
+ .contains(tinystoragedrivers_types::Capability::ConditionalStreamAppend),
+ "backfill thread fixture needs conditional stream append"
+ );
threads::ensure_thread(
crate::core::runtime::DispatchCtx::ambient(),
workspace.to_path_buf(),