Skip to content

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

test(storage): create conversations dir before seeding legacy profile

Steven Enamakel61fe33685c4b
diff --git a/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/generator/src/main.rs b/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/generator/src/main.rs
index fd9be6718a..cdd4950639 100644
--- a/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/generator/src/main.rs
+++ b/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/generator/src/main.rs
@@ -266,7 +266,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.parent()
.ok_or("storage.db output must have a parent directory")?
.join("legacy-workspace/memory/conversations");
- let thread_id = "fixture-thread";
std::fs::create_dir_all(conversations.join("threads"))?;
std::fs::write(
conversations.join("threads.jsonl"),
diff --git a/tests/storage_legacy_profile_boot_e2e.rs b/tests/storage_legacy_profile_boot_e2e.rs
index a7257768aa..4d1730b028 100644
--- a/tests/storage_legacy_profile_boot_e2e.rs
+++ b/tests/storage_legacy_profile_boot_e2e.rs
@@ -98,6 +98,7 @@ fn seed_existing_profile(home: &Path) -> (PathBuf, PathBuf) {
let source = workspace.join("storage/storage.db");
std::fs::write(&source, FIXTURE).unwrap();
let conversations = workspace.join("memory/conversations");
+ std::fs::create_dir_all(&conversations).unwrap();
std::fs::write(conversations.join("threads.jsonl"), THREAD_LOG).unwrap();
(profile, source)
}