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(dispatch): handle missing subagent in graph dispatch
Steven Enamakelaacd411eda8e
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 5c733026cc..167006d9bd 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@@ -31,7 +31,7 @@ pub(in super::super) struct AggregatedUsage {/// Run an assembled custom per-agent turn through the shared default sub-agent/// leaf. Bespoke `AgentGraph::Custom` graphs use this after their own routing/// nodes so transcript persistence, worker-thread mirroring, progress events,-/// handoff middleware, cap summaries, and usage aggregation stay byte-for-byte+/// cap summaries, and usage aggregation stay byte-for-byte/// on the default path.pub(crate) async fn run_agent_turn_request_via_default_graph(req: AgentTurnRequest,@@ -60,7 +60,6 @@ pub(crate) async fn run_agent_turn_request_via_default_graph(model_vision,transcript_stem,provider_label,- handoff_cache,tokenjuice_compression,config,} = req;@@ -90,7 +89,6 @@ pub(crate) async fn run_agent_turn_request_via_default_graph(model_vision,&transcript_stem,&provider_label,- handoff_cache,tokenjuice_compression,config.as_deref(),)@@ -146,10 +144,6 @@ pub(in super::super) async fn run_subagent_via_graph(// `SubagentObserver::persist_transcript`.transcript_stem: &str,provider_label: &str,- // Progressive-disclosure handoff cache (integrations_agent with a resolved- // toolkit); `Some` installs the `HandoffMiddleware` that stashes oversized- // tool results and shares the cache with the `extract_from_result` tool.- handoff_cache: Option<std::sync::Arc<crate::agent::subagent_host::ResultHandoffCache>>,// Agent-level TokenJuice profile (`definition.effective_tokenjuice_compression()`,// #4466). Threaded into the sub-agent `TurnContextMiddleware` so sub-agent// tool outputs get the same content-aware compaction the chat path applies@@ -319,17 +313,9 @@ pub(in super::super) async fn run_subagent_via_graph(Some(max_output_tokens),// Context middlewares (#4466): config-sourced TokenJuice compaction +// tool-result byte cap + microcompact + summarization opt-outs (built- // above), plus the progressive-disclosure handoff when a cache is- // attached, plus the live transcript-snapshot sink for error recovery.+ // above), plus the live transcript-snapshot sink for error recovery.{let mut mw = context_mw;- if let Some(cache) = handoff_cache {- mw.handoff = Some(crate::agent::tinyagents::HandoffConfig {- cache,- agent_id: agent_id.to_string(),- task_id: task_id.to_string(),- });- }mw.transcript_snapshot = Some(transcript_snapshot.clone());mw},