[codex-analytics] add protocol-native turn timestamps (#16638)

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/openai/codex/pull/16638).
* #16870
* #16706
* #16659
* #16641
* #16640
* __->__ #16638
This commit is contained in:
rhan-oai
2026-04-06 16:22:59 -07:00
committed by GitHub
Unverified
parent e88c2cf4d7
commit 756c45ec61
58 changed files with 1134 additions and 36 deletions
@@ -167,6 +167,9 @@ fn turn_completed_recovers_final_message_from_turn_items() {
}],
status: TurnStatus::Completed,
error: None,
started_at: None,
completed_at: Some(0),
duration_ms: None,
},
},
));
@@ -211,6 +214,9 @@ fn turn_completed_overwrites_stale_final_message_from_turn_items() {
}],
status: TurnStatus::Completed,
error: None,
started_at: None,
completed_at: Some(0),
duration_ms: None,
},
},
));
@@ -251,6 +257,9 @@ fn turn_completed_preserves_streamed_final_message_when_turn_items_are_empty() {
items: Vec::new(),
status: TurnStatus::Completed,
error: None,
started_at: None,
completed_at: Some(0),
duration_ms: None,
},
},
));
@@ -291,6 +300,9 @@ fn turn_failed_clears_stale_final_message() {
items: Vec::new(),
status: TurnStatus::Failed,
error: None,
started_at: None,
completed_at: Some(0),
duration_ms: None,
},
},
));
@@ -332,6 +344,9 @@ fn turn_interrupted_clears_stale_final_message() {
items: Vec::new(),
status: TurnStatus::Interrupted,
error: None,
started_at: None,
completed_at: Some(0),
duration_ms: None,
},
},
));
@@ -38,6 +38,9 @@ fn failed_turn_does_not_overwrite_output_last_message_file() {
additional_details: None,
codex_error_info: None,
}),
started_at: None,
completed_at: Some(0),
duration_ms: None,
},
},
));
+9
View File
@@ -268,6 +268,9 @@ fn turn_items_for_thread_returns_matching_turn_items() {
}],
status: codex_app_server_protocol::TurnStatus::Completed,
error: None,
started_at: None,
completed_at: None,
duration_ms: None,
},
codex_app_server_protocol::Turn {
id: "turn-2".to_string(),
@@ -277,6 +280,9 @@ fn turn_items_for_thread_returns_matching_turn_items() {
}],
status: codex_app_server_protocol::TurnStatus::Completed,
error: None,
started_at: None,
completed_at: None,
duration_ms: None,
},
],
};
@@ -303,6 +309,9 @@ fn should_backfill_turn_completed_items_skips_ephemeral_threads() {
items: Vec::new(),
status: codex_app_server_protocol::TurnStatus::Completed,
error: None,
started_at: None,
completed_at: None,
duration_ms: None,
},
});