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
chore: files changed crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs,crates/ope
Steven Enamakela2242a04a65d
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rsindex c67da8e253..6dc9a91d4b 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs@@ -65,6 +65,14 @@ impl OpenHumanSessionHost {let mut context = OpenHumanRunContext::new().with_host_env(&host_env);context.hosted_base = self.hosted_base.clone();context.headless_descendant_settlement = headless;+ let headless_owner = headless.then(|| {+ crate::agent::tinyagents::tool_registration::subagent_owner_key(+ &self.workspace_dir,+ &self.event_session_id,+ self.thread_id.as_deref(),+ )+ });+ context.headless_descendant_owner = headless_owner.clone();context.untrusted_input_turn = self.untrusted_input;context.origin = origin.cloned();context.approval = approval;@@ -89,11 +97,7 @@ impl OpenHumanSessionHost {let jobs = crate::core::runtime::slot_for::<tinyagents_harness_tools::subagents::SubAgentJobRegistry,>(&dispatch);- let owner = crate::agent::tinyagents::tool_registration::subagent_owner_key(- &self.workspace_dir,- &self.event_session_id,- self.thread_id.as_deref(),- );+ let owner = headless_owner.expect("headless settlement has a root owner scope");Some(jobs.retain_root_run_descendants(&root_config.run_id, owner).map_err(|error| {diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rsindex 627af60bb5..1311b74357 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs@@ -220,6 +220,10 @@ pub struct OpenHumanRunContext {/// This root run owns settlement of driver jobs before its host turn/// returns. Inherited by recursive child contexts, never by ordinary chat.pub(crate) headless_descendant_settlement: bool,+ /// Stable owner scope for the whole headless descendant tree. Native child+ /// runs get their own thread ids, but the root turn's settlement lease must+ /// retain every descendant under one owner key.+ pub(crate) headless_descendant_owner: Option<String>,/// Current-turn attachment placeholders forwarded to vision delegates.pub attachment_placeholders: Arc<Vec<String>>,/// Dispatch guard shared by synchronous delegates in this run.@@ -359,6 +363,7 @@ impl OpenHumanRunContext {file_state_agent_id: None,tool_result_artifact_index: None,headless_descendant_settlement: false,+ headless_descendant_owner: None,attachment_placeholders: Arc::new(Vec::new()),dispatch: None,task_recency_window: None,@@ -552,6 +557,7 @@ impl OpenHumanRunContext {child.session_sidecar = Arc::new(Mutex::new(SessionTurnSidecar::default()));child.cancellation = tinyagents_harness::cancel::CancellationToken::new();child.headless_descendant_settlement = false;+ child.headless_descendant_owner = None;child}