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

Open
#35,331 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
cli

Research direction

Start by tracing the Codex CLI conversation request and JSON deserialization path after an image is sent, focusing on handling of the image_url message type. Reproduce the Windows sequence in the issue, then verify that subsequent text requests either deserialize successfully or that the conversation can recover without starting over.

Written by the indexing model from the issue text.

Description

bug CLI session windows-os

复现步骤

  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

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

期望
  • 支持 image_url 消息类型,或
  • 提供恢复机制(跳过/清理坏消息)
环境
  • Codex CLI 桌面版 (Windows)
  • 消息类型 image_url 被反序列化器拒绝
Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.