mirror of
https://github.com/openai/codex.git
synced 2026-09-04 15:08:45 +00:00
## What changed - Reject invalid or unsupported image data before producing tool output, so non-image file contents are not exposed through code mode. - Preserve valid image bytes and metadata while leaving image preparation and resizing to the history insertion path. ## Testing - Cover invalid images in both code mode and standard `view_image` calls. - Verify that code mode preserves PNG bytes, dimensions, EXIF orientation, and metadata. GitOrigin-RevId: 07343ed10b781d0ce0ffb5b24432658be4c046e3