Skip to content

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

refactor(storage): update lifecycle store import signature

Steven Enamakeldcdaa4429d78
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs
index 6984525adb..69f6cc53c7 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs
@@ -156,7 +156,7 @@ impl LifecycleStore {
let kv = StateKv::open(&workspace_of(checkpoint_dir), OWNER, NS).map_err(failure)?;
if import_files {
let legacy = checkpoint_dir.join("lifecycle");
- kv.import_once(IMPORT, || import_legacy(&kv, &legacy))
+ kv.import_once(IMPORT, |_| import_legacy(&kv, &legacy))
.map_err(failure)?;
}
let opened = crate::storage::local::open("subagents", &workspace_of(checkpoint_dir))
diff --git a/crates/openhuman-core/src/storage/scope_move.rs b/crates/openhuman-core/src/storage/scope_move.rs
index 5209a92190..8c6de715c6 100644
--- a/crates/openhuman-core/src/storage/scope_move.rs
+++ b/crates/openhuman-core/src/storage/scope_move.rs
@@ -17,6 +17,8 @@
use std::collections::HashSet;
use std::sync::Arc;
+use anyhow::Context;
+
use sha2::Digest;
use tinystoragedrivers_types::{Capability, CollectionSpec, ErrorKind, WriteOptions};