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): rewrite refused tool results regardless of freshness
Steven Enamakel17394a01557e
diff --git a/crates/openhuman-core/src/agent/session_host/codec.rs b/crates/openhuman-core/src/agent/session_host/codec.rsindex 11732fc029..76e3c206b2 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+ if *is_fresh || true&& row.role == "tool"&& row.id.as_ref().is_some_and(|id| failures.contains(id)){diff --git a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs b/crates/openhuman-embed/tests/profile_refused_tool_generation.rsindex 6cd7903b03..2beecd643c 100644--- a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs+++ b/crates/openhuman-embed/tests/profile_refused_tool_generation.rs@@ -146,6 +146,7 @@ async fn scenario() {.can_use_tool(|_| Box::pin(async { ToolHookDecision::Proceed })).channel_permissions([("web_channel", PermissionLevel::Execute)]).cron_delivery(recorder.clone())+ .session_store(Arc::new(openhuman_embed::InMemorySessionStores::new())).build().await.unwrap();