Skip to content

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

test(session-host): add debug output for transcript metadata

Steven Enamakel3a12aa58714f
diff --git a/crates/openhuman-core/src/agent/session_host/transcript_resume_stable_tests.rs b/crates/openhuman-core/src/agent/session_host/transcript_resume_stable_tests.rs
index 72274f19c8..4ad1cba25e 100644
--- a/crates/openhuman-core/src/agent/session_host/transcript_resume_stable_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/transcript_resume_stable_tests.rs
@@ -62,7 +62,8 @@ fn a_legacy_workspace_is_adopted_once_and_the_next_process_resumes_in_place() {
place_fixture(root.path(), scenario, &stem, "");
legacy_only = tree(root.path(), &thread, &host);
eprintln!("DBG tree={:?} session={:?}", legacy_only.keys().collect::<Vec<_>>(), host.session);
- let l = super::transcript_compat_tests::store_locator(root.path()); eprintln!("DBG roots={:?}", l.thread_transcripts(&thread, None).map(|t| t.roots.iter().map(|r| r.stem.clone()).collect::<Vec<_>>()));
+ let l = super::transcript_compat_tests::store_locator(root.path()); for r in l.thread_transcripts(&thread, None).unwrap().roots { let m = r.transcript.read_session().unwrap().unwrap(); eprintln!("DBG meta sid={:?} thread={:?} agent={:?} n={}", m.meta.session_id, m.meta.thread_id, m.meta.agent_id, m.messages.len()); }
+ eprintln!("DBG roots={:?}", l.thread_transcripts(&thread, None).map(|t| t.roots.iter().map(|r| r.stem.clone()).collect::<Vec<_>>()));
assert!(host.resume_bound_session().await.expect("first resume"));
after_first = tree(root.path(), &thread, &host);
}