Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(agent): stop forcing tool failure rows to be rewritten

Steven Enamakelf19169baf413
diff --git a/crates/openhuman-core/src/agent/session_host/codec.rs b/crates/openhuman-core/src/agent/session_host/codec.rs
index 76e3c206b2..11732fc029 100644
--- a/crates/openhuman-core/src/agent/session_host/codec.rs
+++ b/crates/openhuman-core/src/agent/session_host/codec.rs
@@ -86,7 +86,7 @@ impl TranscriptCodec<OpenHumanRunContext> for OpenHumanTranscriptCodec {
// 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 || true
+ if *is_fresh
&& row.role == "tool"
&& row.id.as_ref().is_some_and(|id| failures.contains(id))
{