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

Resolved 💬 3 comments Opened Oct 25, 2025 by tibo-openai Closed Oct 28, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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.

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #5346
  • #4132
  • #3875
  • #5177

Powered by Codex Action

adsqx · 10 months ago

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

<img width="1069" height="270" alt="Image" src="https://github.com/user-attachments/assets/b8e1a342-d071-46c4-8d41-a67eb9785868" />

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.

zhao-oai contributor · 10 months ago

closing this as the issue was solved by #5888