Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.601.21317 • Released 02.06.2026. CLI visible in the same environment: codex-cli 0.136.0.
What subscription do you have?
ChatGPT Pro, described by the reporter as the highest available private/consumer subscription (possibly referred to as "Pro x20").
What platform is your computer?
Windows Codex App with a WSL workspace.
Observed WSL environment from the reporting workspace:
Linux SimonRy9 6.6.87.2-microsoft-standard-WSL2 x86_64 GNU/Linux
What issue are you seeing?
Generated images sometimes do not render correctly in the Codex App conversation. Instead of showing the generated bitmap inline, the chat displays a broken image icon and the localized alt text Generiertes Bild 1.
In the attached/reported screenshot, the assistant message says it created a new concept screen, but the image area below only shows the small broken-image indicator plus Generiertes Bild 1. The rest of the chat remains usable, so this appears to be an image rendering/asset resolution issue rather than a full session crash.
This looks related to, but slightly different from, #19027. In #19027 the generated images were not automatically embedded. Here the UI appears to attempt rendering an image entry, but the rendered result is broken and only the fallback alt text is visible.
What steps can reproduce the bug?
- Use the Codex App on Windows with a WSL-backed workspace.
- Ask Codex to generate a visual concept/mockup/image.
- Wait for the image generation response to complete.
- Observe the generated image area in the conversation.
- Sometimes the image is not displayed; only a broken image icon and text such as
Generiertes Bild 1are shown.
What is the expected behavior?
Generated images should render inline in the Codex App chat once generation completes. If the image file cannot be resolved or loaded, the UI should expose a clear error or file/path diagnostic instead of silently falling back to a broken image placeholder.
Additional information
Screenshot context from the report:
- Codex App UI language: German.
- The visible failed image label is
Generiertes Bild 1. - The workspace shown in the app is
sanctum-os. - The active thread was generating a website concept/mockup.
- The right environment panel shows a local workspace and branch
main.
I do not have the exact generated image file path from the screenshot, so this report is based on the visible app behavior rather than a specific local file inspection.
Activity
simfor99 commentedon Jun 3, 2026
wbdb commentedon Jun 3, 2026
Same: 019e8f3f-d88b-7702-8ad0-24a71deded42
For one image 30 minutes?
jianxunzhang1101 commentedon Jul 11, 2026
For anyone landing here with a blank/broken image box on recent builds: the image data usually did arrive intact (check the task JSONL for a ~3M-char
image_generation_call.result). The render/persist regression is tracked in #32153; until then you can recover the actual file locally with https://github.com/jianxunzhang1101/recover-codex-images (read-only, no regeneration).rdvo commentedon Aug 26, 2026
Still reproduces on the current Windows Store build.
Environment:
26.820.7780.010.0.26200, build262002.7.12.0, kernel6.18.33.2-2I captured the renderer failure in the desktop log:
The generated output is a valid PNG and opens normally in Windows Explorer. Its ACL grants the Windows user full access and
CodexSandboxUsersread/execute access. The same file renders inline if the assistant explicitly embeds its absolute WSL path, for example.This makes an elevation or filesystem-permissions problem unlikely. It looks like the generated-image result reaches the desktop renderer with empty attachment metadata, causing the request to
/files/download/without an ID.This also appears distinct from #34801: that report has a populated
sediment://pointer followed by a403, while this case has an empty pointer and file ID followed by a422.Minimal reproduction:
/mnt/c/...pngpath also works.Taverick commentedon Sep 2, 2026
The same empty-image-reference failure is occurring on Codex Desktop for Windows, including after updating and restarting into app package version
26.831.2377.0(previously26.831.1445.0). The project is WSL-backed.Symptoms
Reproduction in this environment
Sanitized diagnostic fields
These fields were observed again after the update. They match the earlier empty-pointer/HTTP 422 report on this issue.
Expected: generated-image cards and Canvas should resolve and display the valid image, and opening/enlarging should work.
This appears consistent with an image-reference resolution problem rather than lost image data. The precise root cause is not confirmed. No full logs or private images are attached.
carlosrmendes commentedon Sep 24, 2026
same issue, generated images in Codex, with WSL backend, is broken...:
StreamVi commentedon Sep 28, 2026
This still occurs on Windows MSIX 26.924.2738.0 with a WSL-backed workspace, observed on 2026-09-28. Adding a current-version report with the exact user-facing error and fresh diagnostic evidence.
Environment
10.0.26200, x64.OpenAI.Codex 26.924.2738.0(verified withGet-AppxPackage; this is the package version, not a transcription of the About dialog).6.6.114.1-microsoft-standard-WSL2.Observed behavior
The built-in image-generation tool completed and produced three UI mockups. Its results were returned through the native
generatedImage(result)output helper, and the tool reported that the PNGs were saved locally.When opening the generated images in the desktop app, the user reports this exact error:
Translation: “Failed to load this image. Close it and open it again to retry.”
Fresh diagnostic evidence
The desktop log records repeated failures during this occurrence, including at 00:37:26.648, 00:37:27.704 and 00:40:47.242 UTC on 2026-09-28. Relevant fields:
The three locally saved PNG files are present and readable. Checks of their PNG signatures, all chunk CRCs, IEND chunks, zlib-decompressed image data lengths and row filter bytes passed. All three are 1774 × 887, 8-bit RGB PNGs; sizes are 884,236, 879,895 and 854,598 bytes.
This matches the empty-reference failure already described in this issue. It is consistent with missing image reference metadata; the point where that metadata is lost has not been traced. The empty IDs also prevent mapping each log entry to an individual generated file.
Observed reproduction flow
This report is based on the current existing chat and its diagnostics; a fresh-chat or post-restart reproduction has not been tested.
Expected: native generated-image previews should open successfully after generation, without requiring regeneration or manual image re-embedding.
Only the relevant diagnostic fields are included here; no private images, project details, full logs or account data are attached.
strive822 commentedon Oct 5, 2026
Additional diagnostic evidence for the Windows + WSL generated-image gallery failure, observed on 2026-10-06.
App version:
26.930.41038(build13022). Windows Store MSIX package:26.930.4958.0.The same response displays images correctly when they are embedded in ordinary Markdown using a verified absolute local path, while the native generated-image gallery and its thumbnails remain broken.
Read-only
thread/readinspection returned seven completedimageGenerationitems. Each contained a nonempty LinuxsavedPathand complete base64result; the saved PNG files were readable. The payload lengths and prefixes matched the files. Relevant desktop log fields were:Inspection and isolated execution of this build's bundled functions revealed a concrete failure path:
savedPathoverresult.app://fs/@fs/mnt/c/...when the host descriptor islocal. Gallery calls passshouldLoadFileDataUrl: false, so the environment-aware binary reader is skipped when that direct URL exists.C:\mnt\c\Users\<user>\..., which did not exist; its actualC:\Users\<user>\...counterpart was readable.No file_id providedwarning.Candidate implementation changes tested in isolation:
savedPathfor file operations and as the fallback when result is empty.Seven real image payloads round-tripped byte for byte. Twelve isolated checks passed, including pointer retries, enabled-state and pointer transitions, path-only fallback, data URLs, and source-priority agreement between main process and renderer. React, query-client and host/environment selectors were stubs; the relevant normalization and source-resolution functions came from the installed build.
No installed client resources or session history were modified. The candidate was not deployed or visually validated in the native gallery, so this is a reproducible code-level diagnosis, not a claim that the shipped client is fixed. No private images, session IDs, project paths, account data or full logs are included.
shtash commentedon Oct 8, 2026
Still reproducible on Windows with a WSL workspace on 2026-10-08.
Running app: 26.930.61225, build 13232, prod channel (app update check).
Registered Windows package: OpenAI.Codex 26.930.7945.0.
WSL kernel: 6.18.33.2-microsoft-standard-WSL2.
The app reports restart_required; this report does not establish whether the pending restart changes the behavior.
Three built-in image generations completed, with readable local PNGs (805x1953 and two 793x1984 images). Each automatic Generated image 1 entry is a broken placeholder. The desktop logs record this for each attempt:
Explicit assistant Markdown embeds of the same saved PNGs produce local-file thumbnails. The working thumbnail and broken automatic card coexist in the same conversation. This is a workaround, not proof that automatic rendering or the full image viewer is repaired.
There is also a separate queued Windows screenshot attachment failure:
The pasted Windows Temp PNGs exist and can be opened by the agent through the corresponding /mnt/c paths. That manual path recovery does not repair submission before the message reaches the agent.
Could the generated-image resolver use the saved local image when the asset pointer/file ID is empty, and could the queued attachment bridge normalize Windows paths before handing them to the WSL app-server?
No screenshots, transcript, account identifiers, project names or credentials are included in these excerpts.
firestige commentedon Oct 20, 2026
Additional reproduction observed on 2026-10-20: Windows desktop app with a WSL-backed project.
Environment:
Observed:
Fresh desktop log, 2026-10-20T03:46:37.937Z:
This matches the empty-reference failure reported above. The data is present; native gallery resolution is failing. We have not traced this installed build's internal normalizers or confirmed that path conversion is the initial trigger. Ordinary Markdown embedding and a queued open-file request were attempted, but successful client display was not independently confirmed, so neither is claimed here as a verified workaround.
Expected: render the available generated image without issuing a download request with an empty file ID. Please consider guarding empty asset retries and preserving an environment-aware local/data-URL fallback.
No private images, full logs, usernames, account identifiers, project paths, or session identifiers are included.