Severe memory growth while resuming a large local Codex thread on macOS

Open 💬 1 comment Opened Aug 3, 2026 by roman-yakovlev-psy
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Summary

On macOS, resuming a large local Codex thread after a fresh app restart causes the codex process to grow rapidly from roughly 116 MB to 13.82 GB RSS in about two minutes. This drives memory pressure into red and creates more than 14 GB of swap on a Mac with 8 GB RAM, making the computer nearly unusable.

This has been recurring for several days; it did not occur previously.

Environment

  • macOS
  • 8 GB physical memory
  • ChatGPT desktop app with bundled Codex
  • Local Codex thread with a long history

Steps to reproduce

  1. Quit and relaunch the desktop app.
  2. Let it restore/resume a large local Codex thread.
  3. Open Activity Monitor's Memory tab and observe the codex process.

Actual behavior

The process grew in the captured run as follows:

  • 13:43: ~116 MB
  • 13:44: 2.61 GB → 5.05 GB → 6.28 GB → 7.25 GB → 7.84 GB → 8.65 GB
  • 13:45: 13.82 GB

At the peak, memory pressure was red and swap usage reached 14.52 GB. Other Codex renderer/service processes remained in the few-hundred-MB range; the growth was concentrated in the main codex process.

Local app logs correlate the incident with resuming the thread: thread/resume took about 82 seconds.

Expected behavior

Resuming a thread should keep memory bounded and should not consume more RAM and swap than the machine has available.

Attachments

Eight screenshots are attached in chronological order, showing the process and memory-pressure growth.

View original on GitHub ↗

1 Comment

github-actions[bot] contributor · 24 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #36431

Powered by Codex Action