Skip to content

Correlate image requests and explicit interrupts with turns - #36092

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/80fe996a161b4952b79c5c38238f75b7661b92af
Jul 30, 2026
Merged

Correlate image requests and explicit interrupts with turns#36092
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/80fe996a161b4952b79c5c38238f75b7661b92af

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 30, 2026

Copy link
Copy Markdown

Correlate image requests and explicit interrupts with turns

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.
## 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
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/80fe996a161b4952b79c5c38238f75b7661b92af branch from 51fe542 to 6219b7c Compare July 30, 2026 05:54
@copyberry
copyberry Bot merged commit 6219b7c into main Jul 30, 2026
20 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/80fe996a161b4952b79c5c38238f75b7661b92af branch July 30, 2026 05:54
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.