mirror of
https://github.com/openai/codex.git
synced 2026-11-16 06:54:36 +00:00
Preserve item timestamps in thread history projections (#35689)
## What changed - Add optional start and completion timestamps to `ThreadHistoryItemChange`. - Populate them from canonical `ItemCompleted` records during stateless thread history projection. - Treat a zero completion timestamp as absent, and leave timestamps unset for legacy builder events that do not provide them. ## Testing - Cover projected item timestamps, including missing start times and zero completion times. GitOrigin-RevId: 2187530f489ad3d86b6ab65faaaab1eab5357f1b
This commit is contained in:
1 parent
8c72d61727
commit
8d6a91b1ff
4 files changed
+61
-4
No files matched your search
@@ -827,6 +827,7 @@ mod tests {
|
||||
text: "Rollout user message".to_string(),
|
||||
text_elements: Vec::new(),
|
||||
}])),
|
||||
started_at_ms: None,
|
||||
completed_at_ms: 0,
|
||||
})),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user