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/state_store.rs

Steven Enamakel451ec9ad50d5
diff --git a/crates/openhuman-core/src/memory/state_store.rs b/crates/openhuman-core/src/memory/state_store.rs
index 268bee3c81..a123900de6 100644
--- a/crates/openhuman-core/src/memory/state_store.rs
+++ b/crates/openhuman-core/src/memory/state_store.rs
@@ -113,26 +113,26 @@ pub(crate) fn import_all(
let queue_kv = StateKv::on_backend(backend, &queue_scope, OWNER, NS)?;
let mut names = Vec::new();
if let Ok(entries) = std::fs::read_dir(workspace_dir.join("memory")) {
- for entry in entries.flatten() {
- let path = entry.path();
- let Some(name) = path
- .file_name()
- .and_then(|f| f.to_str())
- .and_then(|f| f.strip_suffix(".json"))
- .map(str::to_owned)
- else {
- continue;
- };
- if !path.is_file() {
- continue;
- }
- if name == "pending_deletions" {
- queue_kv.import_file_strict(&name, &path)?;
- } else {
- local_kv.import_file_strict(&name, &path)?;
+ for entry in entries.flatten() {
+ let path = entry.path();
+ let Some(name) = path
+ .file_name()
+ .and_then(|f| f.to_str())
+ .and_then(|f| f.strip_suffix(".json"))
+ .map(str::to_owned)
+ else {
+ continue;
+ };
+ if !path.is_file() {
+ continue;
+ }
+ if name == "pending_deletions" {
+ queue_kv.import_file_strict(&name, &path)?;
+ } else {
+ local_kv.import_file_strict(&name, &path)?;
+ }
+ names.push(name);
}
- names.push(name);
- }
}
// Earlier versions imported this queue with the rest of memory state in
// `local`. Move any such durable entries to the workspace-owned scope