Conversation stuck on replying with "Invalid image in your last message. Please remove it and try again."

Resolved 💬 4 comments Opened Feb 4, 2026 by yahyaoudra Closed Feb 4, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

Version 260203.1501 (523)

What subscription do you have?

Plus

What issue are you seeing?

I've uploaded an Avif image and it said "Invalid image in your last message. Please remove it and try again." then i re run th eprompt wu=ithout the image and kept saying the same "Invalid image in your last message. Please remove it and try again."
even typing hello reuploading diffrent image
randim text and nothing

What steps can reproduce the bug?

uploaded avif image

What is the expected behavior?

return to normal if image not supported

Additional information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 6 months ago

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

  • #10500

Powered by Codex Action

etraut-openai contributor · 6 months ago

Thanks for the bug report. This is the same issue as #10500. The app should prevent you from attaching images with unsupported formats.

tutenkamen69 · 5 months ago

https://github.com/openai/codex/issues/10500#issuecomment-3971468224

Same issue, and since we can't delete or edit the message, the entire chat is unusable Version 26.226.940 (720) Workaround: go to .codex/sessions, find your chat file, open it, and manually delete the lines of message that contain the SVG, so you can continue to chat with codex...
warm-july · 3 months ago

seeing this error even tho I didn't include any image at all