Skip to content

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

Closed

Description

@Maolon

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

Activity

  1. added
    bug
    on Oct 19, 2025
  2. github-actions commented on Oct 19, 2025

    @github-actions
    Contributor
  3. changed the title [-]Unexpected behaviour of codex for viewing image[/-] [+]bug: codex reads an image, crashes and session cannot be recovered[/+] on Oct 19, 2025
  4. TimAnthonyAlexander commented on Oct 21, 2025

    @TimAnthonyAlexander

    Had this error in the Codex Extension for VSCode.

  5. wzhliang commented on Nov 20, 2025

    @wzhliang

    I am seeing same error with gpt-5.1-codex high. v0.60.1

  6. added
    CLI
    agent
    on Dec 1, 2025
  7. removed
    CLI
    on Dec 23, 2025
  8. added
    session
    and removed
    agent
    on Apr 11, 2026
  9. shankarkuru commented on May 18, 2026

    @shankarkuru

    open a new chat and get the session ID and deeplink from the other chat and ask to fix the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions