codex
codex copied to clipboard
bug: codex reads an image, crashes and session cannot be recovered
What version of Codex is running?
codex-cli 0.47.0
What subscription do you have?
Pro
Which model were you using?
gpt-5-high
What platform is your computer?
Darwin 25.1.0 arm64 arm
What issue are you seeing?
Codex suddenly started to view the image and crashed the session, even I did not say anything about or related to the image.
• Ran python - << 'PY'
│ import pathlib
│ p = pathlib.Path('app')
• Explored
└ Search \[id\]\.tsx in app
• Viewed Image
└ app/(modals)/intro/[id].tsx
■ unexpected status 400 Bad Request: {
"error": {
"message": "Invalid 'input[37].content[0].image_url'. Expected a base64-encoded data URL with an image MIME type (e.g. 'data:image/png;base64,aW1nIGJ5dGVzIGhlcmU='), but got unsupported MIME type 'image'.",
"type": "invalid_request_error",
}
}
And this issue cannot be recover even I try to skip this step
› skip this step
■ unexpected status 400 Bad Request: {
"error": {
"message": "Invalid 'input[37].content[0].image_url'. Expected a base64-encoded data URL with an image MIME type (e.g. 'data:image/png;base64,aW1nIGJ5dGVzIGhlcmU='), but got unsupported MIME type 'image'.",
"type": "invalid_request_error",
"param": "input[37].content[0].image_url",
"code": "invalid_value"
}
}
What steps can reproduce the bug?
N/A
What is the expected behavior?
No response
Additional information
No response
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #4132
- #3875
- #4946
Powered by Codex Action
Had this error in the Codex Extension for VSCode.
I am seeing same error with gpt-5.1-codex high. v0.60.1