Skip to content

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

test(openhuman-embed): serialize only messages and tools in resume test

Steven Enamakelf40ce7ab85dd
diff --git a/crates/openhuman-embed/tests/attached_tools.rs b/crates/openhuman-embed/tests/attached_tools.rs
index 93a2f97559..582a60b33a 100644
--- a/crates/openhuman-embed/tests/attached_tools.rs
+++ b/crates/openhuman-embed/tests/attached_tools.rs
@@ -187,9 +187,8 @@ fn attached_tools_survive_clones_and_session_resume() {
.into_iter()
.next()
.expect("the later session has a root transcript");
- let durable =
- serde_json::to_string(&successor.transcript.read_session().unwrap().unwrap())
- .unwrap();
+ let successor = successor.transcript.read_session().unwrap().unwrap();
+ let durable = serde_json::to_string(&(successor.messages, successor.tools)).unwrap();
assert!(
durable
.lines()