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): always rewrite refused tool results
Steven Enamakel7c9f45c9beef
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 4caee4aa90..6cd7903b03 100644--- a/crates/openhuman-embed/tests/profile_refused_tool_generation.rs+++ b/crates/openhuman-embed/tests/profile_refused_tool_generation.rs@@ -174,6 +174,14 @@ async fn scenario() {eprintln!("SHELLJOB TURN 3: {denied:?}");let denied = handle.chat("t1", "run shell").await;eprintln!("DENIED TURN 4: {denied:?}");+ let r = handle.chat("t1", "schedule it").await;+ eprintln!("RESCHEDULE: {r:?}");+ eprintln!("SWEEP: {}", runtime.sweep_cron_at(later + chrono::Duration::hours(2)).await.ran);+ tokio::time::sleep(Duration::from_secs(5)).await;+ for i in 0..3 {+ let r = handle.chat("t1", "make a shell job").await;+ eprintln!("SHELLJOB again {i}: {r:?}");+ }handle.chat("t1", "and once more").await.unwrap();let requests = chat_requests(&chat).await;assert!(