Skip to content

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

fix(transcript): correct test module name for typed transcript compat tests

Steven Enamakelb783c9e5601b
diff --git a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs
index d98c51c6c0..a2c1911370 100644
--- a/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/transcript_compat_tests.rs
@@ -360,9 +360,6 @@ fn every_committed_transcript_resumes_to_the_recorded_model_view() {
run_async(async move {
let got = snapshot(scenario).await;
let want = golden(scenario.name);
- if let Ok(dir) = std::env::var("OH_DUMP") {
- std::fs::write(format!("{dir}/{}.got.json", scenario.name), serde_json::to_string_pretty(&got).unwrap()).unwrap();
- }
assert_eq!(
got, want,
"{}: resumed model view drifted from the committed golden",
diff --git a/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs b/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs
index dfc8f68753..434329947e 100644
--- a/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs
@@ -162,7 +162,7 @@ fn an_old_session_continued_by_this_binary_reloads_identically() {
assert!(transcript
.messages
.iter()
- .any(|row| row.content.contains("call_new")));
+ .any(|row| row.tool_calls.iter().any(|call| call.id == "call_new")));
});
}