codex
codex copied to clipboard
Codex dead ends when trying to View an SVG
What version of Codex is running?
codex-cli 0.63.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.1-codex-max
What platform is your computer?
Darwin 25.1.0 arm64 arm (macOS tahoe)
What issue are you seeing?
Codex is making a tool call to try to view an SVG image, but fails with the error:
• Viewed Image
└ island.svg
unexpected status 400 Bad Request: {
"error": {
"message": "The image data you provided does not represent a valid image. Please check your input and try again with one of the
supported image formats: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].",
"type": "invalid_request_error",
"param": "input",
"code": "invalid_value"
}
}
Once this happens, it is unrecoverable, as far as I can tell. Codex always retries this request when resuming after I type a new prompt, leading to the same dead end. This unfortunately provides me with no alternative but to discard my context and start a brand new session.
What steps can reproduce the bug?
Uploaded thread: 019adb6c-e720-7610-bbf7-3d27a7ea88f7
What is the expected behavior?
Either add support for viewing SVG image formats or prevent codex from attempting to view them which will always fail.
Additional information
No response