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(embed): replace map_err with inspect_err for dispatch error logging\n\nThe change replaces `.map_err(|err| { ...; err })` with `.inspect_err(|err| { ... })` in the dispatch error handling path. This preserves the original error propagation while using the more idiomatic combinator that is designed for side effects without modifying the result.\n\nAuto-committed-on: dragonfly\n
Steven Enamakel7603018d2336
diff --git a/src/embed/agent.rs b/src/embed/agent.rsindex a559da0e8c..5aec4e934c 100644--- a/src/embed/agent.rs+++ b/src/embed/agent.rs@@ -341,14 +341,14 @@ impl Turn<'_> {}(None, None) => dispatch.await,}- .map_err(|err| {+ .inspect_err(|err| {// Log a redacted failure event so dispatch errors are visible in// host logs without spilling the request, credentials, working// directory, or the error's full payload (CoreError::Domain can// carry arbitrary `data`). Only the session id and the coarse// variant classification are logged; the error itself propagates// to the caller untouched.- let tag = match &err {+ let tag = match err {crate::embed::error::CoreError::Domain { .. } => "domain",crate::embed::error::CoreError::Unavailable { .. } => "unavailable",crate::embed::error::CoreError::Rpc { .. } => "rpc",@@ -357,7 +357,6 @@ impl Turn<'_> {crate::embed::error::CoreError::InsecureRoute { .. } => "insecure_route",};log::debug!("[embed][agent] turn_failed session={session_id} kind={tag}");- err})?;log::debug!(