using view_image tool on .avif causes repeated stream errors
What version of Codex is running?
0.46.0
Which model were you using?
gpt-5-codex-high
What platform is your computer?
Darwin 25.0.0 arm64 arm
What steps can reproduce the bug?
Ask codex to use view_image on a .avif format file.
What is the expected behavior?
Successfully views image - or specifies .avif format is not supported yet for view_image tool.
What do you see instead?
• Viewed Image
└ detail-shot-of-cladding.avif
⚠️ stream error: 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"
}
}; retrying 1/5 in 184ms…
⚠️ stream error: 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"
}
}; retrying 2/5 in 391ms…
⚠️ stream error: 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"
}
}; retrying 3/5 in 842ms…
⚠️ stream error: 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"
}
}; retrying 4/5 in 1.614s…
⚠️ stream error: 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",
of the supported image formats: ['image/jpeg', 'image/png',
'image/gif', 'image/webp'].",
"type": "invalid_request_error",
"param": "input",
"code": "invalid_value"
}
}
Additional information
Pretty sure .avif format is just not supported yet, but Codex should not crash out upon using the tool on one, or should know to avoid using the tool on .avifs altogether
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗