Skip to content

Commit 73cdd36

Browse files
committed
[codex-analytics] add protocol-native turn timestamps
1 parent 4fd5c35 commit 73cdd36

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+746
-28
lines changed

codex-rs/app-server-client/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,9 @@ mod tests {
10601060
items: Vec::new(),
10611061
status: codex_app_server_protocol::TurnStatus::Completed,
10621062
error: None,
1063+
created_at: None,
1064+
completed_at: Some(0),
1065+
duration_ms: None,
10631066
},
10641067
})
10651068
}
@@ -1834,6 +1837,9 @@ mod tests {
18341837
items: Vec::new(),
18351838
status: codex_app_server_protocol::TurnStatus::Completed,
18361839
error: None,
1840+
created_at: None,
1841+
completed_at: Some(0),
1842+
duration_ms: None,
18371843
},
18381844
}
18391845
)

codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14329,6 +14329,30 @@
1432914329
},
1433014330
"Turn": {
1433114331
"properties": {
14332+
"completedAt": {
14333+
"description": "Unix timestamp (in seconds) when the turn completed.",
14334+
"format": "int64",
14335+
"type": [
14336+
"integer",
14337+
"null"
14338+
]
14339+
},
14340+
"createdAt": {
14341+
"description": "Unix timestamp (in seconds) when the turn started.",
14342+
"format": "int64",
14343+
"type": [
14344+
"integer",
14345+
"null"
14346+
]
14347+
},
14348+
"durationMs": {
14349+
"description": "Duration between turn start and completion in milliseconds, if known.",
14350+
"format": "int64",
14351+
"type": [
14352+
"integer",
14353+
"null"
14354+
]
14355+
},
1433214356
"error": {
1433314357
"anyOf": [
1433414358
{

codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12184,6 +12184,30 @@
1218412184
},
1218512185
"Turn": {
1218612186
"properties": {
12187+
"completedAt": {
12188+
"description": "Unix timestamp (in seconds) when the turn completed.",
12189+
"format": "int64",
12190+
"type": [
12191+
"integer",
12192+
"null"
12193+
]
12194+
},
12195+
"createdAt": {
12196+
"description": "Unix timestamp (in seconds) when the turn started.",
12197+
"format": "int64",
12198+
"type": [
12199+
"integer",
12200+
"null"
12201+
]
12202+
},
12203+
"durationMs": {
12204+
"description": "Duration between turn start and completion in milliseconds, if known.",
12205+
"format": "int64",
12206+
"type": [
12207+
"integer",
12208+
"null"
12209+
]
12210+
},
1218712211
"error": {
1218812212
"anyOf": [
1218912213
{

0 commit comments

Comments
 (0)