Skip to content

bug: calls view image on non-image file then crashes #5675

Closed

Description

@tibo-openai

Which model were you using?

gpt-5

What issue are you seeing?

From https://www.reddit.com/r/codex/comments/1ofswmz/very_concrete_example_of_codex_running_amok/

It's very hard to prove either way whether codex is performing badly or not. Saying that it's not doing well, and people come out screaming "skill issue". So I thought I would share one very concrete, beautiful example:

• Explored └ Read data.sql List ls -la • Viewed Image └ payload_20251025_140646.json ⚠️ stream error: unexpected status 400 Bad Request: { "error": { "message": "Invalid 'input[118].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 'application/json'.", "type": "invalid_request_error", "param": "input[118].content[0].image_url", "code": "invalid_value" } }; retrying 1/5 in 188ms…

Ie. it started thinking all of a sudden that json files should be read like images. :D This is based only on one prompt asking it to investigate an SQL insert issue. GPT-5 high.

For the record, my subjective evaluation from this week: codex has been performing extremely well, until today. Today it's been between

ok and absolutely horrible.

Activity

  1. added
    bug
    on Oct 25, 2025
  2. added
    model-behavior
    on Oct 25, 2025
  3. adsqx commented on Oct 25, 2025

    @adsqx

    Exactly visible in the logs that /rgb is trying to enter as an image. It seems like there's a problem.
    URL

    2025-10-21T00:42:17.364881Z DEBUG ChatComposer::handle_paste_image_path attempt preview=11;rgb:1818/1818/1818

    Image

    PR #5683

    Ah, and I should add that I didn’t paste any image myself — it’s the / in //rgb that the terminal mounts into the input, which then gets detected as a non-existent image. Depending on the terminal or system version, this can behave differently.

  4. added a commit that references this issue on Oct 28, 2025
  5. zhao-oai commented on Oct 28, 2025

    @zhao-oai
    Contributor

    closing this as the issue was solved by #5888

  6. added a commit that references this issue on Nov 10, 2025
  7. added a commit that references this issue on Aug 7, 2026
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

    bugmodel-behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions