Skip to content

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

chore(subagent_host): drop unused imports and update persistence comment

Steven Enamakelaa896567aafe
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index 1ff44bc74e..8c3443a6c1 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -3,7 +3,6 @@
use std::{
collections::HashMap,
- fs::OpenOptions,
future::Future,
path::PathBuf,
pin::Pin,
@@ -11,7 +10,6 @@ use std::{
};
use async_trait::async_trait;
-use fs2::FileExt;
use sha2::{Digest, Sha256};
use tinyagents_harness::context::{RunConfig, RunContext};
use tinyagents_orchestration::subagent::{
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
index 471202cf74..dd5812cbb6 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
@@ -130,9 +130,8 @@ impl OpenHumanPersistence {
};
let value: serde_json::Value = serde_json::from_str(&raw)
.map_err(|error| SubagentError::Persistence(error.to_string()))?;
- // Accept the short-lived single-key format written by the first
- // lifecycle extraction, but immediately write the collision-safe
- // vector format on the next mutation.
+ // Accept both legacy index shapes during read-only migration. New
+ // writes and indexes are owned by FileSubagentPersistence.
let keys = value
.get("keys")
.cloned()