mirror of
https://github.com/openai/codex.git
synced 2026-11-20 15:07:25 +00:00
Correlate image requests and explicit interrupts with turns (#36092)
## What changed - Send the active turn ID in the `x-codex-image-turn-id` header for image generation and edit requests. - Add `explicit_client_interrupt_requested_at_ms` to turn analytics. Record the earliest explicit interrupt request that receives a successful response, while excluding rejected requests. - Track errors returned by `turn/interrupt` so pending analytics state is cleaned up correctly. ## Testing - Cover turn ID headers for image generation and editing. - Cover accepted, retried, and rejected explicit interrupt requests in analytics tests. GitOrigin-RevId: 80fe996a161b4952b79c5c38238f75b7661b92af
This commit is contained in:
1 parent
88ec932e96
commit
6219b7c40f
10 files changed
+365
-17
No files matched your search
@@ -374,6 +374,12 @@ pub(crate) enum AnalyticsFact {
|
||||
request_id: RequestId,
|
||||
request: Box<ClientRequest>,
|
||||
},
|
||||
ExplicitClientInterruptRequest {
|
||||
connection_id: u64,
|
||||
request_id: RequestId,
|
||||
turn_id: String,
|
||||
requested_at_ms: u64,
|
||||
},
|
||||
ClientResponse {
|
||||
connection_id: u64,
|
||||
request_id: RequestId,
|
||||
|
||||
Reference in new issue
Block a user