bug: codex reads an image, crashes and session cannot be recovered

Resolved 💬 4 comments Opened Oct 19, 2025 by Maolon Closed Dec 23, 2025

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_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗