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 resume diagnostics to legacy adoption test

Steven Enamakel2a2c1030631b
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 378153281a..387745a412 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
@@ -64,8 +64,9 @@ fn a_legacy_workspace_is_adopted_once_and_the_next_process_resumes_in_place() {
let sess = host.session.clone().unwrap();
let t = tree(root.path(), &thread, &host);
eprintln!("DBGX tree keys={:?}", t.keys().collect::<Vec<_>>());
- eprintln!("DBGX adopt={:?}", l.adopt_legacy(&sess, &thread, &l.thread_transcripts(&thread, None).unwrap().roots[0].transcript.read_session().unwrap().unwrap().meta).map(|a| a.map(|x| x.messages)));
- assert!(host.resume_bound_session().await.expect("first resume"));
+ let r = host.resume_bound_session().await;
+ eprintln!("DBGX resume={:?} exists_after={} tree={:?}", r.as_ref().ok(), l.session_exists(&sess), tree(root.path(), &thread, &host).keys().collect::<Vec<_>>());
+ assert!(r.expect("first resume"));
legacy_only = BTreeMap::<String, Value>::new();
after_first = tree(root.path(), &thread, &host);
}