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
fix(orchestration): route subagent session upserts through driver store
Steven Enamakelec6d87f4ae45
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rsindex f7d1a605a6..ca0b4823f5 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs@@ -12,9 +12,9 @@ pub use ops::{mark_driver_pause_cancelled, mark_failed, mark_finished, normalize_task_key,resolve_lifecycle_key, reuse_decision, upsert_running, DriverTaskCancellation,};-pub(crate) use tiny_port::{host_projection, open_for_context, set_parent_epoch_for_context};#[cfg(test)]pub(crate) use tiny_port::OpenHumanTinySubagentSessionStore;+pub(crate) use tiny_port::{host_projection, open_for_context, set_parent_epoch_for_context};pub use types::{DurableSubagentStatus, SubagentSessionSelector, SubagentSessionStore, SubagentSessionUpsert,};diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rsindex 1bd1f35969..ce8890a23b 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs@@ -289,8 +289,10 @@ impl SpawnSubagentTool {));}}- let resumed_session = match subagent_sessions::upsert_running(- &store,+ let resumed_session = match upsert_driver_session(+ &driver_store,+ &dispatch,+ &parent.workspace_dir,SubagentSessionUpsert {selector: selector.clone(),display_name: Some(definition.display_name().to_string()),@@ -300,8 +302,10 @@ impl SpawnSubagentTool {lifecycle_key: Some(original_key.clone()),parent_epoch: completion_target.parent_epoch(),},- Some(session),- ) {+ false,+ )+ .await+ {Ok(session) => session,Err(error) => {return Ok(ToolResult::error(format!(@@ -534,8 +538,10 @@ impl SpawnSubagentTool {);}}- let durable_session = match subagent_sessions::upsert_running(- &store,+ let durable_session = match upsert_driver_session(+ &driver_store,+ &dispatch,+ &parent.workspace_dir,SubagentSessionUpsert {selector,display_name: Some(definition.display_name().to_string()),@@ -551,8 +557,10 @@ impl SpawnSubagentTool {),parent_epoch: completion_target.parent_epoch(),},- reusable.as_ref(),- ) {+ force_fresh,+ )+ .await+ {Ok(session) => session,Err(err) => {log::warn!(