Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Windows package OpenAI.Codex version 26.930.4958.0, read from installed package metadata (not the About dialog).
What subscription do you have?
Not included in this report.
What platform is your computer?
Windows, OS version 10.0.26300.
What issue are you seeing?
Codex Desktop repeatedly closes during image-based work and can subsequently fail to stay open. Moving the existing .codex directory aside and allowing the app to create a fresh one restored usability.
Read-only inspection of two preserved profiles found very large, syntactically valid .codex-global-state.json files. Almost all their size comes from inline PNG base64 data in persisted queued-follow-ups. This is a strong correlation; the exact exit mechanism has not been established.
| Preserved profile | Global state size | Serialized queued-follow-ups size | Share of state |
|---|---|---|---|
| October 5 | 139,695,198 bytes | 139,600,516 bytes | 99.932% |
| October 4 | 191,250,764 bytes | 191,003,925 bytes | 99.871% |
In the October 5 profile, a single pending follow-up contains two image attachments. The first attachment is stored at this redacted path:
queued-follow-ups.<thread-id>[0].context.imageAttachments[0].src
Its src is a data:image/png;base64,... string of 139,179,370 characters. The matching original PNG on disk is 104,384,510 bytes, with dimensions 7168 × 9600. The second image is 1354 × 360, with a data URI of 416,882 characters. The global-state .bak file has the same 139,695,198-byte size.
The older profile contains a different pair of queued PNGs, with data URI lengths of 180,644,190 and 10,355,018 characters. Thus, oversized persisted attachment state was present in more than one preserved profile.
What steps can reproduce the bug?
Observed workflow, not yet a controlled minimal reproduction:
- Use Codex Desktop on Windows for an ongoing image conversation.
- Attach large PNG images and submit a follow-up. In the preserved failing state, the follow-up is persisted in
queued-follow-upswith inline base64 image data. - The app unexpectedly closes. Relaunching with the same profile may exit again within a few seconds.
- Preserve/move the existing
.codexdirectory and start with a fresh directory. In this case, the app became usable again.
A useful reproduction candidate is a valid PNG around 104 MB at 7168 × 9600, together with a second smaller image, submitted as a queued follow-up. This exact procedure has not been rerun deliberately after recovery.
Session IDs, local file paths, prompts and original images are omitted from this public report.
What is the expected behavior?
Large image attachments should either be processed successfully or rejected with an actionable error. An attachment or queued message should not leave the app unable to start with the existing profile. Recovery should preserve existing conversations and settings.
Additional information
Timeline (UTC, October 5, 2026):
- Queued follow-up
createdAt: 06:33:32.509Z. - The corresponding app log ends at 06:33:32.526Z, 17 ms later, following an ordinary successful
config/readresponse. There is no explicit fatal error on that final line; the timing alone does not prove causation. - Subsequent launch logs span approximately 06:33:42–06:33:47, 06:33:57–06:34:02, 06:37:26–06:37:32, and 06:38:37–06:38:42.
- A fresh profile was created around 06:39:42Z, and the app started around 06:39:43Z and remained usable. Its global state was around 82–83 KB, without queued messages.
Limits of the diagnosis:
- Both preserved global-state files parse as valid JSON.
- No crash dump, confirmed out-of-memory error or native stack trace establishes the exact failure mechanism.
- Removing only
queued-follow-upsand relaunching has not been tested. Whole-profile recovery cannot isolate that field as the sole cause. - The user noticed the problem after installing DaVinci Resolve Studio, but no evidence currently establishes a causal relationship.
Please investigate whether large inline attachment data in queued follow-up persistence or startup hydration can cause these exits, and whether attachment size bounds, file-backed references and recovery from an oversized queue entry could prevent the startup failure.
This report was prepared with Codex assistance from local read-only inspection and the user's observations. Raw logs, profile contents, account details and original images are not attached.
Activity
github-actions commentedon Oct 6, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Shinshin124 commentedon Nov 24, 2026
Your report leaves a specific question open: whether targeted removal can recover the original profile. I was able to do that in a related case on an M3 Pro Mac with desktop version 26.1120.41243. After the app was fully quit, removing only the four pending messages containing inline images from the affected conversation restored normal launch from the Dock. On that build the active copy was in the SQLite desktop settings, even after the JSON queue was empty. Read-only size check and case details. This gives one cross-platform comparison; a targeted recovery on Windows itself still needs verification.