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
refactor(agent): improve metadata handling in subagent control
Steven Enamakelffcb4af6df60
diff --git a/crates/openhuman-core/src/agent/goals/mod.rs b/crates/openhuman-core/src/agent/goals/mod.rsindex c7194f14d2..21481051ac 100644--- a/crates/openhuman-core/src/agent/goals/mod.rs+++ b/crates/openhuman-core/src/agent/goals/mod.rs@@ -103,7 +103,9 @@ struct OpenHumanGoalTool {impl OpenHumanGoalTool {fn new(kind: GoalToolKind, workspace_dir: &Path) -> Self {- let metadata_store = tinyagents_session::port::InMemorySessionStores::new().kv;+ let metadata_store = tinyagents_session::port::InMemorySessionStores::new()+ .for_agent("metadata")+ .kv;Self {kind,workspace_dir: workspace_dir.to_path_buf(),diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rsindex 9d68c3e8c7..9e3f25abc7 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs@@ -5,7 +5,7 @@ use tinyagents_harness::run_queue::QueueLane;use tinyagents_orchestration::steering::{steer_detached, SteerAccess, SteerError};use super::cancel::now_ms;-use super::registry::{control_admits, owner_key, registry};+use super::registry::{RunningSubagentMetadata, control_admits, owner_key, registry};/// Inject an instruction into a detached sub-agent owned by `parent_session`.pub async fn steer(@@ -22,7 +22,7 @@ pub async fn steer(SteerAccess::Owner(&owner),text,lane,- |metadata, lane, text| async move {+ |metadata: RunningSubagentMetadata, lane: QueueLane, text: String| async move {metadata.run_queue.push(@@ -75,7 +75,7 @@ pub(crate) async fn steer_control(SteerAccess::Trusted,text,lane,- |metadata, lane, text| async move {+ |metadata: RunningSubagentMetadata, lane: QueueLane, text: String| async move {metadata.run_queue.push(diff --git a/crates/openhuman-core/src/agent_runs/subagent_control.rs b/crates/openhuman-core/src/agent_runs/subagent_control.rsindex 427dee6bd0..0ee37ecef7 100644--- a/crates/openhuman-core/src/agent_runs/subagent_control.rs+++ b/crates/openhuman-core/src/agent_runs/subagent_control.rs@@ -270,7 +270,6 @@ fn handle_subagent_steer(ctx: DispatchCtx, params: Map<String, Value>) -> ControErr(err) => {let reason = match err {SteerError::Unknown => "unknown",- SteerError::AlreadyDone => "already_done",// SaaS user controls check the captured worker profile,// independently of the caller-supplied task ID.SteerError::NotOwned => "not_owned",