Skip to content

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

test(compact_thread): dump messages after compaction for debugging

Steven Enamakel548a5e80ba63
diff --git a/crates/openhuman-embed/tests/compact_thread.rs b/crates/openhuman-embed/tests/compact_thread.rs
index 0770ce700c..361d724262 100644
--- a/crates/openhuman-embed/tests/compact_thread.rs
+++ b/crates/openhuman-embed/tests/compact_thread.rs
@@ -259,6 +259,9 @@ fn compact_thread_seals_the_head_and_the_next_turn_resends_the_summary() {
);
let before_messages = messages(&before);
let after_messages = messages(&after);
+ for message in &after_messages {
+ eprintln!("DUMP {} {:.120}", message["role"], text(message));
+ }
assert_eq!(after_messages[0]["role"], "system");
assert_eq!(
after_messages[0], before_messages[0],