Skip to content

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

feat(transcript_view): add optional timestamp field to DisplayItem::UserMessage

Steven Enamakelc466a50982f5
diff --git a/crates/openhuman-core/src/threads/transcript_view/types.rs b/crates/openhuman-core/src/threads/transcript_view/types.rs
index cc7eed6840..1a2b576c65 100644
--- a/crates/openhuman-core/src/threads/transcript_view/types.rs
+++ b/crates/openhuman-core/src/threads/transcript_view/types.rs
@@ -73,6 +73,11 @@ pub enum DisplayItem {
display_content: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
request_id: Option<String>,
+ /// RFC3339 timestamp of the underlying `DisplayMessage`, when the
+ /// transcript record carried one. `None` for older records written
+ /// before timestamps were persisted — never backfilled.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ ts: Option<String>,
},
/// An assistant answer. `interim: true` marks a non-terminal tool-calling
/// step within a multi-iteration turn (not the final answer bubble).
@@ -86,6 +91,8 @@ pub enum DisplayItem {
model: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
iteration: Option<u32>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ ts: Option<String>,
},
/// The model's reasoning/thinking that preceded an assistant message.
/// `iteration` is the model call it belongs to — the same value as the