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
test(threads): isolate persistent storage in conversion tests
Steven Enamakeld284a710cca0
diff --git a/crates/openhuman-core/src/threads/ops_conversion_tests.rs b/crates/openhuman-core/src/threads/ops_conversion_tests.rsindex 0eed57ef6f..9605b39b7c 100644--- a/crates/openhuman-core/src/threads/ops_conversion_tests.rs+++ b/crates/openhuman-core/src/threads/ops_conversion_tests.rs@@ -429,7 +429,7 @@ async fn generate_title_falls_back_to_first_user_message_when_assistant_missing(async fn thread_delete_removes_persisted_turn_state_snapshot() {let _env_lock = crate::config::TEST_ENV_LOCK.lock().await;let workspace = tempfile::tempdir().expect("workspace");- crate::storage::local::use_persistent_default_for_test(workspace.path());+ crate::storage::local::use_persistent_default_for_test(&workspace.path().join("workspace"));let _workspace_guard = EnvVarGuard::set("OPENHUMAN_WORKSPACE", workspace.path());let thread_id = "thread-delete";create_thread_with_title(&workspace, thread_id, "Chat Jan 1 1:00 AM").await;@@ -590,7 +590,7 @@ async fn thread_delete_queues_memory_before_snapshot_cleanup_error() {async fn threads_purge_removes_every_turn_state_snapshot() {let _env_lock = crate::config::TEST_ENV_LOCK.lock().await;let workspace = tempfile::tempdir().expect("workspace");- crate::storage::local::use_persistent_default_for_test(workspace.path());+ crate::storage::local::use_persistent_default_for_test(&workspace.path().join("workspace"));let _workspace_guard = EnvVarGuard::set("OPENHUMAN_WORKSPACE", workspace.path());create_thread_with_title(&workspace, "thread-a", "Chat Jan 1 1:00 AM").await;create_thread_with_title(&workspace, "thread-b", "Chat Jan 1 1:01 AM").await;@@ -705,8 +705,23 @@ async fn thread_delete_forgets_its_conversation_memory_or_queues_it() {.expect("load config").workspace_dir;+ let mut config = crate::config::Config::load_or_init()+ .await+ .expect("load config");+ config.memory.engine.clear();+ let ctx = DispatchCtx::new(+ crate::core::runtime::CoreContext::for_test(+ crate::core::runtime::DomainSet::full(),+ Some(dir.clone()),+ )+ .derive_with(crate::core::runtime::ContextOverlay::new(+ config,+ crate::core::runtime::DomainSet::full(),+ crate::tools::toolpacks::ToolGroups::none(),+ )),+ );thread_delete(- &DispatchCtx::process_default(),+ &ctx,DeleteConversationThreadRequest {thread_id: thread_id.to_string(),deleted_at: "2026-01-01T00:02:00Z".into(),