After sending an image in a Codex CLI conversation, all subsequent requests fail with a JSON deserialization error, leaving the conversation completely stuck.

Open 💬 3 comments Opened Jul 25, 2026 by GreatYao-Git
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

复现步骤

  1. 在对话中发送一张图片
  2. 继续发送文字消息
  3. 每次请求返回错误:Failed to deserialize the JSON body into the target type:

messages[49]: unknown variant image_url, expected text
at line 1 column 262721

  1. 只能放弃当前对话,新建对话

期望

  • 支持 image_url 消息类型,或
  • 提供恢复机制(跳过/清理坏消息)

环境

  • Codex CLI 桌面版 (Windows)
  • 消息类型 image_url 被反序列化器拒绝

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 1 month ago

English translation:

Steps to reproduce

  1. Send an image in a conversation
  2. Continue by sending a text message
  3. Every request returns the following error: Failed to deserialize the JSON body into the target type:

messages[49]: unknown variant image_url, expected text
at line 1 column 262721

  1. The only option is to abandon the current conversation and start a new one

Expected behavior

  • Support the image_url message type, or
  • Provide a recovery mechanism (skip/remove the invalid message)

Environment

  • Codex CLI desktop version (Windows)
  • The image_url message type is rejected by the deserializer

<!-- codex-issue-translator -->

baixingzhu6-tech · 1 month ago

Confirmed on macOS as well.

Environment

  • ChatGPT Desktop v26.721.41059
  • macOS 26.5.2 (Build 25F84)
  • Node v24.14.0

Same error: messages[1]: content should be a string or a list
(column 77051 for user turn, column 21736 for thread title generation)

This confirms the bug is cross-platform (Windows + macOS).

baixingzhu6-tech · 1 month ago

Confirmed on macOS as well.

Environment

  • ChatGPT Desktop v26.721.41059
  • macOS 26.5.2 (Build 25F84)
  • Node v24.14.0

Same error: messages[1]: content should be a string or a list
(column 77051 for user turn, column 21736 for thread title generation)

This confirms the bug is cross-platform (Windows + macOS).