The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(subagent-host): persist subagent lifecycle state across restarts
Steven Enamakel5b5b5271f907
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rsindex 0ff46a6958..0f0382036f 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs@@ -562,6 +562,16 @@ impl OpenHumanPersistence {self}+ /// The name callers report for `key`'s pause. The pause itself is a+ /// storage record now; this keeps the historical+ /// `lifecycle/<component>.pause.json` spelling so reported checkpoint+ /// names are unchanged and stay unique per scoped key.+ fn pause_path(&self, key: &SubagentTaskKey) -> std::path::PathBuf {+ self.checkpoint_dir+ .join("lifecycle")+ .join(format!("{}.pause.json", store::key_component(key)))+ }+fn store(&self) -> Result<LifecycleStore, SubagentError> {LifecycleStore::open(&self.checkpoint_dir)}diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rsindex b5d99aece6..032e64cd34 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_store.rs@@ -16,7 +16,7 @@ use std::path::{Path, PathBuf};use sha2::{Digest, Sha256};use tinyagents_orchestration::subagent::{SubagentError, SubagentOutcome, SubagentTaskKey};-use super::SubagentCheckpointData;+use crate::agent::subagent_host::SubagentCheckpointData;use crate::storage::state_kv::StateKv;const OWNER: &str = "subagents";