Skip to content

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

fix(transcript_view): correct test assertion for empty transcript

Steven Enamakeld9be791b0d39
diff --git a/crates/openhuman-core/src/threads/transcript_view/transcript_view_tests.rs b/crates/openhuman-core/src/threads/transcript_view/transcript_view_tests.rs
index 9e265fc2e3..bd0311c2e4 100644
--- a/crates/openhuman-core/src/threads/transcript_view/transcript_view_tests.rs
+++ b/crates/openhuman-core/src/threads/transcript_view/transcript_view_tests.rs
@@ -133,10 +133,18 @@ fn projects_turn_with_tools_reasoning_and_sanitization() {
}
match &items[5] {
DisplayItem::AssistantMessage {
- content, interim, ..
+ content,
+ interim,
+ ts,
+ ..
} => {
assert_eq!(content, "It's 72F and sunny in NYC.");
assert!(!*interim, "final answer is not interim");
+ assert_eq!(
+ ts.as_deref(),
+ Some("2026-07-21T09:00:02Z"),
+ "final assistantMessage carries its own record's ts, not the interim step's"
+ );
}
other => panic!("expected final assistantMessage, got {other:?}"),
}