[BUG] Image upload bug: after adding an unsupported image format, all prompts fail with “Reconnecting… 4/5” Codex CLI

Resolved 💬 2 comments Opened Nov 23, 2025 by Prestapro Closed Nov 23, 2025

What version of Codex is running?

v0.63.0, Codex CLI

What subscription do you have?

[Bug] format not supported yet .heic

Which model were you using?

gpt-5.1 medium, gpt-5.1 max, gpt-5.1, all

What platform is your computer?

MacOS

What issue are you seeing?

After adding image - "not supported format" error and endless reconnecting ("Reconnecting... 4/5")

■ unexpected status 400 Bad Request: {
  "error": {
    "message": "The image data you provided does not represent a valid image. Please check your input and try
again with one of the supported image formats: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].",
    "type": "invalid_request_error",
    "param": "input",
    "code": "invalid_value"
  }
}

What steps can reproduce the bug?

  1. Open the chat UI (web/desktop — specify if needed).
  2. Upload an image with an unsupported or corrupted format.
  3. Try sending any prompt afterwards.
  4. Observe that the client shows “Reconnecting…” and no completion is returned.

What is the expected behavior?

• The client should display a clear error message like “Unsupported image format”.
• The chat session should continue working normally.
• The user should not get stuck in a reconnect loop because of a single bad upload.

Additional information

High — the bug blocks usage of the chat entirely until the session resets.

View original on GitHub ↗

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