mirror of
https://github.com/openai/codex.git
synced 2026-08-31 14:28:48 +00:00
## What changed - Accept image output from `image()` and `generatedImage()` only when its URL uses the `data:` scheme. - Preserve the dedicated error for remote HTTP URLs and report other malformed or unsupported image URLs as invalid image output. ## Testing - Add service-level coverage for rejecting invalid output from both image helpers. - Add an end-to-end code-mode test that verifies the tool call fails instead of returning an invalid image item. GitOrigin-RevId: beaf8c8830574150e8166b6ff5daf7f6dc4dc0a1