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/memory/backfill.rs,crates/openhuman-core/src/memory/b

Steven Enamakel9224e11540d4
diff --git a/crates/openhuman-core/src/memory/backfill.rs b/crates/openhuman-core/src/memory/backfill.rs
index ed4b20d1db..d20bd4f297 100644
--- a/crates/openhuman-core/src/memory/backfill.rs
+++ b/crates/openhuman-core/src/memory/backfill.rs
@@ -172,3 +172,7 @@ pub async fn start(
pub(crate) fn is_running(workspace_dir: &Path) -> bool {
BACKFILL.is_running(&workspace_dir.to_path_buf())
}
+
+#[cfg(test)]
+#[path = "backfill_tests.rs"]
+mod tests;
diff --git a/crates/openhuman-core/src/memory/backfill_tests.rs b/crates/openhuman-core/src/memory/backfill_tests.rs
index 0519a7924d..9205d787ed 100644
--- a/crates/openhuman-core/src/memory/backfill_tests.rs
+++ b/crates/openhuman-core/src/memory/backfill_tests.rs
@@ -82,6 +82,10 @@ async fn refuses_without_consent_and_with_memory_off() {
.await
.unwrap_err();
assert_eq!(error.code(), "MEMORY_OFF");
+
+ let status = status(&DispatchCtx::ambient(), &config).await.unwrap();
+ assert_eq!(status.state.phase, BackfillPhase::Idle);
+ assert_eq!((status.pending_threads, status.pending_turns), (0, 0));
}
#[tokio::test]