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(subagent_host): simplify result truncation in runner
Steven Enamakel984cc2a8050d
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex ad96d32374..ff69a269db 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -375,17 +375,11 @@ pub(crate) async fn run_subagent_direct(// Use TinyAgents' shared character-safe result cap so subagent output// follows the same truncation contract as other orchestration paths.if let Some(cap) = definition.max_result_chars {- let (output, omitted) =- tinyagents_orchestration::subagent::truncate_head_tail(&outcome.output, cap);- if omitted > 0 {- tracing::debug!(- agent_id = %definition.id,- omitted_chars = omitted,- cap,- "[subagent_host] truncating oversized result to max_result_chars cap"- );- outcome.output = output;- }+ outcome.output = tinyagents_orchestration::subagent::truncate_head_tail(+ &outcome.output,+ cap,+ )+ .0;}tracing::info!(