Repository navigation
Description
What Version of the Codex App Are You Using?
Desktop app 26.1029.61003, build 24614 (installed bundle metadata). The request logs identify Codex client version 0.166.0.
What Subscription Do You Have?
ChatGPT authentication; exact subscription tier not verified.
What Platform Is Your Computer?
macOS 27.0.1, build 26A434; Apple Silicon. uname -mprs: Darwin 27.0.0 arm64 arm.
What Issue Are You Seeing?
An existing local chat stopped continuing after a tool result returned three PNGs. The UI displayed only {"detail":"Bad Request"}. A subsequent one-character message (?) immediately encountered the same error.
The model was gpt-6.1-sol, reasoning effort High. Other requests using the same account and model were accepted around the failure, so this did not affect every chat.
What Steps Can Reproduce the Bug?
This is an observed failure sequence; a deterministic minimal reproduction has not been established.
- Continue an existing local chat that is working normally.
- Open three local PNGs with
view_image, returning their images together in one tool result. In this case, two PNGs measured 1080 × 1620 and one measured 1080 × 1920; the files totalled 16,742,306 bytes. - The next model request repeatedly loses its WebSocket connection. The logs show five retries followed by an HTTP fallback.
POST https://chatgpt.com/backend-api/codex/responsesreturns HTTP 400 with the 24-byte body{"detail":"Bad Request"}.- Send
?in the same chat. The next request contains substantially the same context and fails with HTTP 400 again.
The tool call that immediately preceded the failure had this structure, with source filenames redacted:
for (const name of ["preview-a.png", "preview-b.png", "preview-c.png"]) {
image((await tools.view_image({ path: "/local/source/" + name })).image_url);
}The last successful input usage before these images was 302,791 tokens against a reported 475,000-token context window. This is the last available successful usage record, not a measured token count for the rejected request.
What Is the Expected Behavior?
Codex should process supported image inputs or identify the rejected input and provide a supported recovery path, such as reducing retained image payloads. A short follow-up should not leave the chat repeatedly failing with an unexplained generic error.
Additional Information
Both failures occurred on 5 November 2026. Times below are UTC. Sizes are recorded by the client's zstd request-compression logs.
| Time | HTTP Status | Request ID | Uncompressed Bytes | Compressed Bytes |
|---|---|---|---|---|
| 09:38:13 | 400 | 45d85a9e-13f2-47ac-9f80-da49ed168067 |
27,920,946 | 11,967,418 |
| 09:38:36 | 400 | 062b7bf3-9e79-4fad-b3a4-31dd1a18cc06 |
27,923,320 | 11,968,164 |
Another chat received HTTP 200 for an approximately 23.6 MB uncompressed request. HTTP 200 establishes request acceptance, not completion of its entire streamed turn.
The first failure immediately followed the image-bearing tool result, and the retry resent substantially the same payload. Image payload size or image/context handling is a hypothesis. The response identifies no rejected field or size limit, and these observations do not establish a fixed request-size cutoff.
A separate chat also encountered this generic error during remote compaction on 4 November. It is not established that both incidents have the same cause.
Related reports with similar symptoms: #52320, #52406 and #59185. This report adds the image dimensions, source byte total, logged request sizes and current request IDs for this incident. A common root cause is not confirmed.
No client names, artwork, private conversation content, credentials, raw request bodies or full session logs are included.
Activity
github-actions commentedon Nov 5, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
diannegarcia197371-alt commentedon Nov 5, 2026
Windows 上多个已有聊天反复报
{"detail":"Bad Request"}。已更新至桌面应用 26.1029.61003,切换模型及重启无效;在原聊天中只要求回复四个字、不调用工具的测试仍然失败。请调查已有聊天请求被拒绝的具体原因,并提供保留原聊天记录和素材的恢复办法。症状与本报告类似,尚未确认是否为同一根因。
本反馈不包含聊天正文、素材、会话编号或完整日志。
statuscompleted-arch commentedon Nov 5, 2026
I am seeing similar image-chat continuation failures on Windows, with an additional observation about model switching.
A fresh chat can successfully create one batch of images. A subsequent batch request then sometimes fails with
{"detail":"Bad Request"}. In an inspected occurrence, the model had just reviewed reference images again and had not yet called image generation for the new batch. Manual/compactalso returnedError running remote compact task: {"detail":"Bad Request"}.Temporary workaround in my case: switching from Terra to Sol within that same chat lets me continue. The error can return later on Sol, and switching back to Terra helps again. It is not a permanent fix; otherwise I have to keep creating replacement chats.
The failure is intermittent and can occur after only one completed batch, rather than requiring a very long conversation. I cannot establish whether the cause is image payload handling, model/session handling, or something else. Please investigate this recovery behavior and provide an actionable error or a supported way to resume affected chats.
hjchaa commentedon Nov 11, 2026
I'm experiencing a very similar issue in a chat with many rounds of image editing. After the error appeared, even short text-only follow-up messages repeatedly failed with
{"detail":"Bad Request"}, preventing me from continuing the existing conversation.I submitted feedback through the app on November 11, 2026.
Feedback ID:
01a1c84f-c2c3-7571-bd79-4450e938b170I can't confirm whether the underlying cause is identical to this issue, but the user-visible behavior matches.
vosski064 commentedon Nov 14, 2026
Same symptom on Codex Desktop for Windows, with a concrete trigger: the chat history came to contain the same image bytes twice (a pasted image was later returned again by a
view_imagetool result), and the next requests failed with the bare 400. This lines up with the zstd request-compression / decompression-ratio trigger described in #61489.Environment
OpenAI.Codex) 26.1111.2228.0; app-server client26.1111.21308; codex core0.169.0-alpha.11.1gpt-6-astra; reasoning effortultraCompressed request body with zstd pre_compression_bytes=… post_compression_bytes=…Timeline (UTC)
exec/view_imagetool result added 3 of the same images again; they are byte-identical to 3 of the images above (verified by hashing; image hashes withheld).0734f213-255a-46f6-a242-486d25175bd128051324-4bac-44e4-bc38-5dec880566afbcd5c81d-8fc2-4b80-9399-e0d9525f6884a1809341-5499-452c-b32c-6399dc93193cAll are
POST https://chatgpt.com/backend-api/codex/responses→ 400 with a 24-byte body{"detail":"Bad Request"}. Short follow-up messages (“continue”, “what is this error”, “you seem stuck”) failed the same way because each turn resends the same history.Notes
I can provide sanitized log excerpts / more request details if useful.