Skip to content

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

test(embed): log captured requests on channel agent failure

Steven Enamakel598922eea37f
diff --git a/crates/openhuman-embed/tests/channel_agents.rs b/crates/openhuman-embed/tests/channel_agents.rs
index a8d0a59dd1..4c6e0fe8c2 100644
--- a/crates/openhuman-embed/tests/channel_agents.rs
+++ b/crates/openhuman-embed/tests/channel_agents.rs
@@ -232,6 +232,9 @@ fn a_telegram_message_is_answered_by_the_bound_runtime_agent() {
}
tokio::time::sleep(Duration::from_millis(250)).await;
}
+ for r in bot_api.received_requests().await.unwrap_or_default() { eprintln!("DBGT bot {} {}", r.url.path(), String::from_utf8_lossy(&r.body)); }
+ for r in provider.received_requests().await.unwrap_or_default() { eprintln!("DBGT prov {}", r.url.path()); }
+ for r in backend.received_requests().await.unwrap_or_default() { eprintln!("DBGT backend {}", r.url.path()); }
assert!(
sent.iter().any(|text| text.contains("teeny says hi")),
"the agent's reply was posted to the chat: {sent:?}"