What version of Codex is running?
codex-cli 0.45.0
Which model were you using?
gpt-5
What platform is your computer?
Darwin 24.6.0 arm64 arm
What steps can reproduce the bug?
I have tried to mention 2 SVG files via @ after that was not working i tried the equivalent with PNG files. But it tries again and again the SVG files, that I tried before. That should not be done it should use the new files I provided...
What is the expected behavior?
Ignore wrong format image files, and not reuse the last message(s) with wrong image types.
What do you see instead?
⚠️ 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 186ms…
⚠️ 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 410ms…
⚠️ 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 728ms…
⚠️ 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.612s…
⚠️ 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 5/5 in 3.107s…
■ 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"
}
}
Additional information
No response
What version of Codex is running?
codex-cli 0.45.0
Which model were you using?
gpt-5
What platform is your computer?
Darwin 24.6.0 arm64 arm
What steps can reproduce the bug?
I have tried to mention 2 SVG files via @ after that was not working i tried the equivalent with PNG files. But it tries again and again the SVG files, that I tried before. That should not be done it should use the new files I provided...
What is the expected behavior?
Ignore wrong format image files, and not reuse the last message(s) with wrong image types.
What do you see instead?
"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 186ms…
"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 410ms…
"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 728ms…
"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.612s…
"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 5/5 in 3.107s…
■ 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"
}
}
Additional information
No response