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_sessions): register session epochs collection in storage schema
Steven Enamakel920325076ca9
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/storage_schema.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/storage_schema.rsindex 85ecca7f6d..9c24471686 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/storage_schema.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/storage_schema.rs@@ -18,6 +18,7 @@ use tinystoragedrivers::{CollectionSpec, Result};use crate::storage::schema_support::{key_of, owner, time_ms};pub(super) const SESSIONS: &str = "subagents.sessions";+pub(super) const EPOCHS: &str = "subagents.session_epochs";pub(super) const LEGACY_SESSIONS: &str = "subagent_sessions";const SCHEMA: u32 = 2;@@ -26,6 +27,7 @@ const SCHEMA: u32 = 2;pub fn storage_schema() -> Schema {Schema::new(owner("subagents")).collection_with(SCHEMA, spec(), ScopeClass::Agent)+ .collection_with(1, CollectionSpec::new(EPOCHS), ScopeClass::Agent).step(Step::new("sessions_v2", SESSIONS, 1, SCHEMA, sessions_v2).source(LEGACY_SESSIONS))}diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rsindex dd93ddbff7..dac0b64a5a 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/tiny_port.rs@@ -12,11 +12,10 @@ use tinyagents_orchestration::subagent::{SubagentSessionStore as TinySessionStore, SubagentSessionUpsert as TinyUpsert,};+use super::storage_schema::EPOCHS;use super::types::{DurableSubagentSession, DurableSubagentStatus, SubagentSessionSelector};use super::{SubagentSessionStore, SubagentSessionUpsert};-const EPOCHS: &str = "subagents.session_epochs";-#[derive(Deserialize, Serialize)]struct ParentEpochRecord {parent_epoch: Option<u64>,