Repository navigation
Description
Codex Desktop threads become unreadable after multi-image generation embeds large payloads
What version of the Codex App are you using?
Affected session metadata reports 0.155.0-alpha.2.6. The separately installed CLI currently reports codex-cli 0.153.4.
What subscription do you have?
ChatGPT Pro.
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Two Codex Desktop tasks successfully generated multiple images, but afterward the task conversations became unreadable on both PC and phone. The tasks remain listed, but opening them fails. Other Codex tasks still load normally.
Attempting to read either affected task through the Codex task service returns:
tool call error: tool call failed for codex_app/read_thread
Caused by:
Mcp error: -32000: MCP error -32000: Codex app tool request failed
The generations themselves completed successfully: all 35 PNGs were recovered locally and validate correctly. The local JSONL transcripts are unusually large because generated-image data appears to be embedded in the conversation records:
- Task A: 42,000,027 bytes after generating five images.
- Task B: 205,754,294 bytes after generating thirty images.
The affected tasks have not been deleted or modified.
What steps can reproduce the bug?
- In Codex Desktop, start a task that requests several standalone images using the built-in image-generation workflow.
- Generate multiple images in the same turn. One affected task generated five images concurrently; the other generated thirty images across the task.
- Allow the task to finish normally.
- Attempt to reopen the task in Codex Desktop or on mobile, or call
codex_app/read_threadfor its task ID. - The task fails to load even though it remains in the task list.
codex_app/read_threadreturns MCP-32000.
The transcript sizes are included above. Full task IDs are withheld from this public report and can be supplied privately to an OpenAI maintainer. The first failure correlated with the transcript containing embedded generated-image payloads.
What is the expected behavior?
Codex should store generated images as referenced artifacts rather than embedding payloads that make the conversation unreadable. Completed image-generation tasks should reopen normally on desktop and mobile, and codex_app/read_thread should return their history.
If a task exceeds a supported history or payload limit, Codex should preserve a readable paginated history and surface a specific recoverable error instead of making the whole task inaccessible.
Additional information
OpenAI Support reviewed these details and described the behavior as consistent with a stuck or oversized thread. The problem reproduces across devices, while other tasks on the same account load normally.
The raw transcripts are 42 MB and 206 MB and contain complete task content plus embedded image payloads, so they are not attached publicly. Sanitized excerpts can be supplied if maintainers identify the exact fields needed.
Activity
github-actions commentedon Sep 19, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
FSOTM commentedon Sep 28, 2026
Fresh reproduction: generated PNG Base64 is persisted twice per image (Desktop runtime 0.158.0-alpha.2.1)
Adding measured evidence to this existing issue at the affected user's explicit request. This is a significant usability problem for image-assisted conversations; please prioritize triage and provide a supported recovery path that preserves text history.
Environment
originator: Codex Desktop,cli_version: 0.158.0-alpha.2.1,model_provider: openai.Reproduction and measurements
functions.execandgeneratedImage).These are whole-file snapshots, not network measurements. The earlier baseline also precedes intervening text/tool messages, so the first delta is not exclusively image bytes.
Confirmed duplicate storage
Each of the four generated images (the initial redraw plus the three additional generations) has identical Base64 stored in two separate durable records:
event_msg, payload typeitem_completed:payload.item.resultcontains the bare Base64.response_item, payload typecustom_tool_call_output:payload.output[1].image_urlcontainsdata:image/png;base64,followed by the same Base64.Comparing hashes after removing the data-URL prefix confirms byte-identical Base64 in each pair:
fa9649f0253ad3ea098e765923d5c99b43728a18707a6765The generated PNG artifacts also exist separately on disk. The duplicated Base64 for these four images alone totals 22,676,744 bytes in the rollout, excluding JSON overhead, data-URL prefixes, uploaded/viewed images, and other messages.
A diagnostic trap: counting only strings beginning with
data:image/incorrectly suggests that each image is stored once. The bare Base64 underpayload.item.resultmust also be counted.Impact and limits of this reproduction
The user reports that image-heavy conversations eventually require tens of MB per interaction, with repeated calls accumulating hundreds of MB and making normal use impractical. They also report resorting to proxy-based handling / relaying content, substantially reduced efficiency, and inaccurate answers during that workflow. These are user-reported impacts: this reproduction verifies local durable duplication and cumulative file growth, not the exact network payload, latency breakdown, or a causal link to answer quality.
In particular, two copies on disk do not prove that both copies are sent in each model request. Actual request replay should be investigated separately. Related existing reports include #28316, #46761, and #43015.
Requested maintainer action
Only aggregate measurements, structural field paths, runtime metadata, and abbreviated content hashes are shared here. No raw transcripts, image contents, private local paths, credentials, or session IDs are attached.