Repository navigation
[app][macOS][26.707.91948] ChatGPT/Codex repeatedly grows to 55 GB and freezes the system #33582
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.707.91948 (build 5440)
What subscription do you have?
Unknown (signed-in Codex desktop user)
What platform is your computer?
Darwin 25.5.0 arm64 arm
- macOS 26.5.2 (25F84)
- MacBook Pro (MacBookPro18,3)
- Apple M1 Pro
- 16 GB RAM
What issue are you seeing?
The unified ChatGPT/Codex macOS app repeatedly grows until it exhausts application memory and freezes the whole computer.
The macOS Force Quit window reported:
- ChatGPT: 55.31 GB
- Claude: 5.69 GB
- Microsoft Teams: 3.66 GB
- Parallels Desktop: 4.30 GB
- Chrome: 897.4 MB
ChatGPT was by far the largest consumer. macOS displayed: Your system has run out of application memory. Multiple unrelated applications were marked as paused.
This is not a one-time event. Quitting or restarting ChatGPT/Codex temporarily restores memory usage to below approximately 1 GB, but the leak returns during continued Codex use and the machine freezes again.
The app was freshly auto-updated on 2026-07-16 and the installed build matches the latest official appcast entry, so there is no newer update available.
After restarting the app following the incident, macOS still showed approximately 2.07 GB of swap in use.
What steps can reproduce the bug?
- Open the unified ChatGPT desktop app and use Codex for local development tasks.
- Keep the app running through ongoing or long tasks.
- Memory usage grows over time.
- Eventually macOS reports that application memory is exhausted and pauses unrelated apps.
- Force quit or restart ChatGPT/Codex.
- Memory returns to normal temporarily, but the same problem recurs during subsequent use.
The workload includes code-mode tasks and may include MCP/browser workers. At the time of the post-restart inspection, the normal ChatGPT/Codex process tree included renderer processes, two node_repl processes, codex-code-mode-host, and the Codex app-server. No large orphan-process accumulation was visible after restart, so the exact leaking child from the incident could not be identified retroactively.
What is the expected behavior?
ChatGPT/Codex memory should stabilize at a reasonable level and reclaim renderer, browser, MCP, and Node worker resources after tasks complete. It must not consume tens of gigabytes, exhaust swap, or suspend unrelated applications.
The app should enforce an aggregate memory budget or stop and warn before causing a system-wide memory emergency.
Additional information
This reproduces on the latest build available on 2026-07-16 and appears related to:
- [app][macOS] Browser-use Node workers accumulate to 10–18 GB, exhaust swap, and suspend unrelated apps #33319
- Codex Mac app high memory usage after latest update on macOS ( Codex 26.422.21637 ) #19333
- Abnormally high ram usage in mac app #18589
- Codex.app GUI: MCP child processes not reaped after task completion — 1300+ zombies, 37GB memory leak #12491
The new evidence here is recurrence on version 26.707.91948 / build 5440 with the ChatGPT resource coalition reaching 55.31 GB on a 16 GB Apple Silicon Mac. A screenshot of the Force Quit window is available if maintainers need it.
Activity
github-actions commentedon Jul 16, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
zakblacki commentedon Jul 18, 2026
I can confirm the same bug happening after upgrading
bbingz commentedon Jul 24, 2026
Analysis (community)
Thanks for tracking this — attempting a residual-focused analysis aligned with docs/contributing.md (invitation-only: analysis in-thread, no unsolicited PR).
desktop-oom)Observed (from issue + public residual signal)
What version of the Codex App are you using (From “About Codex” dialog)? 26.707.91948 (build 5440) ### What subscription do you have? Unknown (signed-in Codex desktop user) ### What platform is your computer? Darwin 25.5.0 arm64 arm - macOS 26.5.2 (25F84) - MacBook Pro (MacBookPro18,3) - Apple M1 Pro - 16 GB RAM ### What issue are you seeing? The unified ChatGPT/Codex macOS app repeatedly grows until it exhausts application memory and freezes the whole computer. The macOS Force Quit window r
Root-cause hypothesis
Long-thread / multi-session desktop retains process pools and multi-GB heaps; may combine MCP unreaped children + history retention + renderer growth.
High-level fix outline (not a PR)
Related
#33582, #32797, #12491 — cross-link rather than fork.
Questions for maintainers
Happy to refine with more measurements or code pointers. No unsolicited PR from me.
bbingz commentedon Jul 24, 2026
Analysis (community)
Residual analysis for #33582 (macOS ChatGPT/Codex grows to multi-tens of GB) — invitation-only. Not a pile-on of Windows WMI/taskkill mega-threads (#34260 family). Focus: macOS memory/disk growth mechanisms that OSS can measure. No unsolicited PR.
Deterministic evidence (runtime + code co-factors)
Runtime on this host (
codex-cli 0.146.0-alpha.6):~/.codex/logs_2.sqlitealone is 1778548736 bytes (~1.66 GiB) with WAL 30405632 bytes still active.codex_api::sse::responses37252,codex_app_server::outgoing_message19558,codex_tui::markdown_stream15085) show continuous allocation + serialization work during streams.Code co-factors (
5dd992acd3):codex-rs/state/src/log_db.rsdefault_filterL55) with 2s flush batches — sustained write + page cache pressure.codex-rs/tui/src/app/thread_events.rs≈L141) — relevant when Desktop keeps long-lived threads.Root-cause hypothesis
macOS “tens of GB” reports are likely a sum of:
Treating it only as “Activity Monitor says Codex is big” misses the measurable SQLite + streaming fanout co-factor still present on 0.146.x.
High-level fix outline (not a PR)
logs_2.sqlite(shared with logs_2.sqlite-wal grows without bound into tens of GB #28997 budget work).Questions for maintainers
No unsolicited PR from me.
truzozenith commentedon Jul 31, 2026
Independent corroboration on a later unified ChatGPT/Codex build, with a process-level snapshot captured immediately after macOS raised the application-memory warning.
Environment
26.727.40816(build6067)codex-cli 0.146.0-alpha.9.226.5.2 (25F84)Incident
During normal Codex desktop use with three task windows open, macOS displayed “Your system has run out of application memory.” The Force Quit Applications window attributed 24.14 GB to ChatGPT and paused the app.
A screenshot of the warning is available, but I am not attaching raw application logs or session data publicly because they may contain private project information.
Sanitized diagnostics
The long-lived Codex app-server had been running for about 5h 42m. The first process snapshot showed approximately 2.48 GB RSS for:
A
vmmap -summarysnapshot of that process reported:Allocator details:
The ChatGPT process tree at follow-up contained about 38 processes with roughly 4.3 GB aggregate live RSS, including 12 renderer processes totaling about 2.0 GB. Current system swap was:
The smaller live RSS after the warning does not account for the earlier 24.14 GB Force Quit attribution, but the app-server peak footprint, swapped allocator regions, and renderer footprint confirm severe retained memory and swap pressure within the ChatGPT/Codex runtime.
Expected
Memory should stabilize and be reclaimed as task views, renderer state, diagnostics, and helper sessions become inactive. The application should enforce an aggregate memory budget or stop/warn before causing a system-wide application-memory emergency.
Workaround
Quit and relaunch ChatGPT/Codex. This releases the retained heap temporarily.
This adds an independent recurrence on build 6067, later than the build originally reported here.
ajayshah76 commentedon Sep 16, 2026
Additional user report with current app details and sanitized pre-reboot evidence.
Symptoms reported by the user
Environment and recovery context
Verified pre-reboot diagnostic summary
These snapshots establish system memory pressure with Codex among the consumers. They do not prove that Codex caused all of the pressure, identify a memory leak, verify a 100 GB footprint, or directly capture the later typing freeze. The exact trigger and relation between the two reported symptoms remain unknown.
Expected behavior
Memory use should stabilize and resources should be reclaimed. The composer should remain responsive without a system-wide stall, force quit, or reboot.
This is additional evidence for a similar symptom on macOS; it is not a confirmed duplicate root cause. No raw logs, prompts, session transcripts, private paths, customer data, or secrets are attached.
ppravdin commentedon Sep 25, 2026
+1 — can confirm this on Apple Silicon running macOS 26.5.2 (25F84) with 16 GB RAM after updating the app.
In our case, the runaway memory growth did not stop at pausing applications — it triggered a complete kernel panic and hardware watchdog reset:
Environment
Mac16,10), 16 GB RAMPanic Log & Diagnostic Summary
ChatGPTprocess footprint: 48.69 GB resident / ~51.05 GB (residentMemoryBytes: 51055525480).Compressor Info: 52% of compressed pages limit (OK) and 100% of segments limit (BAD) with 43 swapfiles and OK swap space.Observed Failure Chain
configdand blocked over 40 dependent system processes attemptingmach_msg sendtocom.apple.SystemConfiguration.configd.configdfailed userspace check-in for 185 seconds, macOSwatchdogdtriggeredAppleARMWatchdogTimer, forcing a hardware reset (wdog,reset_in_1).ajayshah76 commentedon Sep 26, 2026
Follow-up: recurrence on 26.917.71314 with a verified 15.1G renderer footprint
Following my September 16 report in this issue, the slowdown recurred on September 25, 2026. This time there is direct evidence for one renderer retaining a large footprint after a same-day restart.
Environment
Sequence and attempted mitigation
Verified measurements at recurrence
Renderer PID 38090, parent app PID 37414:
footprint -p 38090 --swapped --noCategoriesindependently reported a 15 GB footprint, rounded by that tool.samplealso reported physical footprint 15.1G and peak 15.2G.psRSS was only 826304 KiB. RSS alone substantially understated the footprint.sysctl vm.swapusagereported total 19456.00M, used 18414.00M, free 1042.00M. These are system-wide swap figures, not attribution of all swap to this renderer.swapped_outfigure is quoted as reported; it is not a separate measurement of this process's disk swap allocation.What this establishes, and remaining limits
The restart provided immediate relief, but the optional MCP-server mitigation did not prevent substantial renderer memory retention later the same day. This narrows the unresolved symptom to a renderer, rather than only accumulated MCP server processes.
The exact renderer page/window, retained objects, allocation source, and code-level leak mechanism are not yet identified. vmmap warned that it could not examine the PartitionAlloc malloc zone, so detailed allocation interpretation is incomplete. There is no continuous footprint trace or reliable minimal reproducer yet.
The user has also seen approximately 90–100 GB on other occasions. Those peaks remain user-reported; the independently captured renderer footprint in this update is 15.1G. This is related symptom evidence, not proof that every report in this issue has the same root cause.
Expected behavior
Renderer memory should stabilize or be reclaimed during idle periods. Normal desktop use should not require repeated application restarts to recover memory and responsiveness.
This update contains only sanitized measurements. No raw logs, heap dumps, prompts, conversation contents, screenshots, private file paths, customer data, or credentials are attached.
nullsec444 commentedon Sep 26, 2026
Follow-up on a newer build (2026-09-27)
Environment:
The reporter says Codex-related memory use reached about 30 GB earlier in the day, followed later by sustained high CPU. The exact memory counter and a process-footprint sample were not captured, so the 30 GB figure is user-reported rather than independently verified.
A sanitized Activity Monitor snapshot during the CPU episode showed Google Chrome for Testing at 100.2% CPU, Codex Renderer at 21.5%, and Codex Service at 8.7%. The screenshot does not show process parent/child relationships, so it cannot establish whether that Chrome process was launched by Codex or attribute its full CPU use to Codex. No raw logs, prompts, or session contents are attached.
This is a recurrence on a newer app build than the reports above. The exact trigger and whether the memory and CPU symptoms share a root cause are not yet isolated. Please investigate this against the existing macOS resource-growth reports.