mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Failed image requests discarded the `x-codex-imagegen-request-id` header, leaving failure analytics without the request ID. ## What changed Carry the request ID through `ImageRequestError` and backend errors for image generation and editing. Preserve it on failed image generation items for HTTP errors, response decoding errors, and responses with no image data. ## Testing Extend the app-server failure test to verify that a request ID returned with an HTTP 500 response reaches `codex_image_generation_event` analytics. GitOrigin-RevId: 57cddacc0221e5b58877ac375d5eca0afb99d853