Skip to content

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

docs(memory): clarify deletion queue read-error handling

Steven Enamakelffbbd525143e
diff --git a/crates/openhuman-core/src/memory/deletion.rs b/crates/openhuman-core/src/memory/deletion.rs
index 8912d6f05f..133c4329d2 100644
--- a/crates/openhuman-core/src/memory/deletion.rs
+++ b/crates/openhuman-core/src/memory/deletion.rs
@@ -30,8 +30,9 @@ use tinymemory_api::Error;
const STATE: &str = "pending_deletions";
/// The workspace's `pending_deletions` state value: a stop mid-write never
-/// loses the queue (the storage write is atomic). An unparsable value is
-/// dropped and logged; an empty queue removes the value.
+/// loses the queue (the storage write is atomic). A read error is returned to
+/// the queue rather than treated as an empty list; an empty queue removes the
+/// value.
struct FileStore {
workspace_dir: PathBuf,
}
diff --git a/crates/openhuman-core/src/memory/local_root.rs b/crates/openhuman-core/src/memory/local_root.rs
index 77c41758db..082ec88b27 100644
--- a/crates/openhuman-core/src/memory/local_root.rs
+++ b/crates/openhuman-core/src/memory/local_root.rs
@@ -141,7 +141,7 @@ pub fn legacy_root(user_id: &str) -> String {
/// layout migration (which copies into the user root) has started or
/// finished.
fn has_memory_under_legacy_root(config: &Config) -> bool {
- super::scope::layout_is_v3(config)
+ config.memory.layout == crate::config::MemoryLayoutMode::V3
|| super::layout_migration::state::exists(&config.workspace_dir)
}