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(session_host): only flag tool failures on fresh transcript rows
Steven Enamakelfa88ea824df2
diff --git a/crates/openhuman-core/src/agent/session_host/codec.rs b/crates/openhuman-core/src/agent/session_host/codec.rsindex 99174228d4..11732fc029 100644--- a/crates/openhuman-core/src/agent/session_host/codec.rs+++ b/crates/openhuman-core/src/agent/session_host/codec.rs@@ -81,8 +81,15 @@ impl TranscriptCodec<OpenHumanRunContext> for OpenHumanTranscriptCodec {.filter(|outcome| !outcome.success).map(|outcome| outcome.call_id.clone()).collect::<std::collections::HashSet<_>>();- for row in &mut rows {- if row.role == "tool" && row.id.as_ref().is_some_and(|id| failures.contains(id)) {+ // Only this turn's rows: providers reuse call ids across turns+ // (`call_0`, `call_1`, ...), and re-flagging a carried-over row would+ // rewrite a persisted result, so the commit would stop extending the+ // transcript and open a new generation.+ for (row, is_fresh) in rows.iter_mut().zip(&fresh) {+ if *is_fresh+ && row.role == "tool"+ && row.id.as_ref().is_some_and(|id| failures.contains(id))+ {row.tool_failure = Some(ToolFailure {failed: true,detail: None,