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(tinyagents): drop unused subagent journal run id plumbing
Steven Enamakele75a35012a77
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rsindex 35c28b7bac..94adbefd79 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs@@ -120,12 +120,10 @@ pub(in super::super) async fn run_subagent_via_graph(// seam this is a sub-agent turn, so the unknown-tool recovery uses the// sub-agent wording. With no progress sink the scoped events simply have// nowhere to go, which is harmless.- let child_journal_run_id = std::sync::Arc::new(std::sync::Mutex::new(None));let subagent_scope = Some(SubagentScope {agent_id: agent_id.to_string(),task_id: task_id.to_string(),extended_policy,- journal_run_id: Some(child_journal_run_id.clone()),});// A standalone summarizer model for the cap-hit checkpoint call below (thediff --git a/crates/openhuman-core/src/agent/tinyagents/observability/bridge_types.rs b/crates/openhuman-core/src/agent/tinyagents/observability/bridge_types.rsindex 7e29dfe5d0..e7dfcce865 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability/bridge_types.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability/bridge_types.rs@@ -16,9 +16,6 @@ pub struct SubagentScope {pub agent_id: String,pub task_id: String,pub extended_policy: bool,- /// The durable journal stream minted for this child turn. Shared with the- /// host so it can export the completed child as its own Langfuse trace.- pub journal_run_id: Option<Arc<Mutex<Option<String>>>>,}/// A shared `call_id → tool_name` map. The model adapter's `ThinkingForwarder`diff --git a/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs b/crates/openhuman-core/src/agent/tinyagents/observability_tests.rsindex 918069ff7f..f2e322d317 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs@@ -180,7 +180,6 @@ async fn subagent_model_completed_carries_task_attribution() {agent_id: "researcher".to_string(),task_id: "ctx-1".to_string(),extended_policy: true,- journal_run_id: None,}),Arc::default(),Arc::default(),@@ -393,7 +392,6 @@ async fn unknown_tool_call_in_a_child_run_projects_one_subagent_row() {agent_id: "researcher".to_string(),task_id: "task-1".to_string(),extended_policy: false,- journal_run_id: None,}),Arc::default(),Arc::default(),diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rsindex d97dab2c1f..624fb16b17 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs@@ -381,14 +381,6 @@ async fn drive_turn(// with it (`with_stream_id`), so every persisted observation's `event_id` is// the restart-stable `{run_id}-evt-{offset}` a late-attach replay// reconstructs the timeline from (05.1). The same id keys the journal + status.- if let Some(scope) = &subagent_scope {- if let Some(slot) = &scope.journal_run_id {- *slot- .lock()- .unwrap_or_else(std::sync::PoisonError::into_inner) =- Some(journal_run_id.as_str().to_string());- }- }let sink = EventSink::with_stream_id(journal_run_id.as_str());if let Some(native) = &native_subagent {native.parent_events.emit(