[Windows][26.803.5235.0] Image-heavy chat history grows codex.exe above 16 GB and crashes code-mode host
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- electron, rust
- Domain
- desktop, operating-systems, performance
Research direction
Start by reproducing restoration of the image-heavy chats described in the issue, then inspect the desktop log excerpts around the 49–62 second thread/resume calls and the Windows Error Reporting record. Compare behavior with related issues #37541 and #37584. Done means historical image data no longer causes unbounded memory growth, conversation restoration remains stable, and the code-mode host does not crash.
Written by the indexing model from the issue text.
Description
Summary
Opening several Codex Desktop chats containing very large numbers of generated images causes unbounded memory growth during chat restoration. codex.exe grew from approximately 14.9 GB to 16.2 GB private memory, and codex-code-mode-host.exe later crashed.
This is reproducible after restarting the app and reopening image-heavy local chat history.
Environment
- Product: Codex Desktop for Windows
- App/package version:
26.803.5235.0 - Package:
OpenAI.Codex_26.803.5235.0_x64__2p2nqsd0c76g0 - OS: Windows 11 x64, build
26100.8973 - Physical RAM: approximately 47.91 GiB
Reproduction
- Generate hundreds or thousands of images in one or more Codex chats.
- Restart the Windows desktop app.
- Open the image-heavy chats from the sidebar.
- Wait several minutes while the histories are restored.
- Observe that memory usage continues increasing and the app eventually becomes unstable or crashes.
Observed data
Four affected session transcripts totaled approximately 4.74 GiB:
- 1.53 GB
- 417 MB
- 341 MB
- 2.56 GB
The transcripts contained approximately 2,797 image_generation_end records. The largest transcript contained approximately 1,547 such records.
During the same diagnostic session:
codex.exeprivate memory increased from approximately 14.9 GB to 16.2 GB.- ChatGPT/Electron processes used approximately another 2.1 GB private memory.
- Windows Error Reporting recorded
RADAR_PRE_LEAK_64forcodex-code-mode-host.exe. codex-code-mode-host.exelater crashed with exception code0x80000003.
WER details:
- Crash time: 2026-08-08 22:43:33 Asia/Tokyo
- Faulting module:
codex-code-mode-host.exe - Exception code:
0x80000003 - Fault offset:
0x0000000000437892 - WER bucket:
0cacb1e52a308c1a69a9633b7409b3b2
The desktop log excerpts also show thread/resume calls taking approximately 49–62 seconds, followed by Conversation state not found for affected conversations.
Expected behavior
Historical image results should be loaded lazily, virtualized, externalized, or represented by compact references. Opening a chat should not materialize all historical image payloads into memory, and memory should remain bounded.
Actual behavior
Restoring image-heavy chat history materializes enough state to push Codex above 16 GB private memory. The app becomes unstable, records a Windows leak warning, and the code-mode host crashes.
Privacy
No full session transcripts, generated images, logs_2.sqlite, or full desktop logs are included in this report. A locally prepared, privacy-reviewed 11 KB archive is available for private upload if maintainers provide a secure channel. It contains only a diagnostic summary, selected log excerpts, and the WER record.
Related issues
- #37541 — Windows 26.803.5235.0 renderer OOM and image-heavy histories
- #37584 — Windows 26.803.5235.0 memory leak and silent desktop exits
This report is narrower and provides a separate failure signature: codex-code-mode-host.exe WER crash after RADAR_PRE_LEAK_64, with codex.exe exceeding 16 GB while restoring image-generation-heavy transcripts.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- Avg merge
- 1m
- Merged PRs (30d)
- 1k
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug CLI windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
macOS sandbox blocks hw.optional.arm64 sysctl, causing Flutter to misdetect Apple Silicon as x64 Openbug CLI sandbox
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug CLI TUI
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
CLI config enhancement skills
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
A-linter
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oxc-project/oxc#26863 ·