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
test(agent-harness): log last three messages in e2e debug output
Steven Enamakel507c8aff7450
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rsindex 3c6a67f360..6048da93a6 100644--- a/tests/agent_harness_e2e.rs+++ b/tests/agent_harness_e2e.rs@@ -1971,7 +1971,7 @@ async fn delegated_clarification_flow_inner() {let second =wait_for_terminal_request(&mut events, Duration::from_secs(120), Some(&request_id)).await;{ let requests = with_captured(|c| c.clone());- for (i, r) in requests.iter().enumerate() { let m = r.pointer("/body/messages").and_then(Value::as_array).cloned().unwrap_or_default(); eprintln!("DBG req[{i}] msgs={} orch={} last={}", m.len(), body_is_orchestrator(r.get("body").unwrap()), m.last().map(|x| x.to_string().chars().take(400).collect::<String>()).unwrap_or_default()); } }+ for (i, r) in requests.iter().enumerate() { let m = r.pointer("/body/messages").and_then(Value::as_array).cloned().unwrap_or_default(); eprintln!("DBG req[{i}] msgs={} orch={} last={}", m.len(), body_is_orchestrator(r.get("body").unwrap()), m.iter().rev().take(3).map(|x| x.to_string().chars().take(1500).collect::<String>()).collect::<Vec<_>>().join("\n --- ")); } }assert_eq!(second.get("event").and_then(Value::as_str),Some("chat_done"),