Skip to content

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

test(threads): use persistent store in edit tests

Steven Enamakel7d04fe9742d0
diff --git a/crates/openhuman-core/src/threads/ops/edit_tests.rs b/crates/openhuman-core/src/threads/ops/edit_tests.rs
index aca451c23a..800ac80985 100644
--- a/crates/openhuman-core/src/threads/ops/edit_tests.rs
+++ b/crates/openhuman-core/src/threads/ops/edit_tests.rs
@@ -19,6 +19,10 @@ const AGENT_ID: &str = "test-agent";
const STORE_KEY: &str = "orchestrator";
fn store(workspace: &Path) -> TranscriptStore {
+ // Sealing a generation writes under a lease condition the in-memory test
+ // backend cannot enforce, so the workspace opens its durable default.
+ #[cfg(feature = "storage-sqlite")]
+ crate::storage::local::use_persistent_default_for_test(workspace);
TranscriptStore {
workspace_dir: workspace.to_path_buf(),
key: STORE_KEY.to_string(),