Skip to content

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

test(embed): add debug logging of recent chat requests

Steven Enamakel28a0a8c27875
diff --git a/crates/openhuman-embed/tests/profile_operator_tools.rs b/crates/openhuman-embed/tests/profile_operator_tools.rs
index 736a0fa18a..16b59caf50 100644
--- a/crates/openhuman-embed/tests/profile_operator_tools.rs
+++ b/crates/openhuman-embed/tests/profile_operator_tools.rs
@@ -161,6 +161,7 @@ async fn scenario() {
// An agent job made through the tool binds to this thread and fires.
handle.chat("t1", "schedule it").await.unwrap();
+ for r in chat_requests(&chat).await.iter().rev().take(3) { eprintln!("DBGREQ {}", String::from_utf8_lossy(&r.body).chars().rev().take(900).collect::<String>().chars().rev().collect::<String>()); }
common::wait_until(fire_at).await;
assert_eq!(runtime.sweep_cron_at(chrono::Utc::now()).await.ran, 1);
tokio::time::timeout(Duration::from_secs(30), async {