Severe reproducible memory leak in ChatGPT/Codex desktop version 26.818.21641 on macOS.
What version of the Codex App are you using (From “About Codex” dialog)?
Codex/Chagtp desktop Mac
What subscription do you have?
PLUS
What platform is your computer?
_No response_
What issue are you seeing?
Severe reproducible memory leak in ChatGPT/Codex desktop version 26.818.21641 on macOS.
Opening one specific local project causes the main codex process to consume approximately 12 to 15 GB of RAM almost immediately, even when the only request is git status. The Mac has 16 GB of physical memory, and the issue causes 7 to 10 GB of swap usage, freezes, and crashes.
The problem started after Codex was merged into the ChatGPT desktop application.
Reproduction:
- Open local project
/Users/dhonnytheodoro/Downloads/project-6817315. - Start a completely new chat.
- Ask only for
git status. - The main
codexprocess immediately grows to 12 to 15 GB.
Project details:
- Total project size: 610 MB
- Source directory: 2.5 MB
- Public directory: 5 MB
.git: 231 MBnode_modules: 358 MB- 397 npm packages
- No files larger than 100 MB
- No recursive symbolic links
- No development server running
node_modulesis correctly excluded by.gitignore
Results:
- With
node_modulesabsent,codexuses approximately 153 MB. - After a clean
npm ci, the issue immediately returns. - Replacing
node_moduleswith a symbolic link to an external directory does not help because Codex follows the link and memory again reaches approximately 13 GB. - Disabling Browser, Chrome, Computer Use, Visualize, Sites, Node REPL, memories, and external-agent synchronization does not resolve it.
- Other projects do not exhibit the same behavior.
This bug also consumed a substantial amount of my Codex usage credits through repeated failed, compacted, and crashed attempts that produced no usable work.
Please investigate the project-scanning behavior, particularly traversal of ignored dependency directories and symbolic links.
What steps can reproduce the bug?
Feedback ID: no-active-thread-01a01e47-6b45-74b1-ab8c-3e3a5092f786
What is the expected behavior?
_No response_
Additional information
_No response_
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
On windows also
<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/687b9f39-3b75-45b7-a054-145d08405304" />