ChatGPT/Codex macOS app continuously leaks zombie subprocesses while idle

Open 💬 3 comments Opened Aug 6, 2026 by TiagoGouvea

What version of the Codex App are you using (From “About Codex” dialog)?

151.0.7922.71

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Darwin 22.6.0 arm64 arm

What issue are you seeing?

The ChatGPT/Codex macOS app continuously accumulates zombie (<defunct>) subprocesses while
idle.

The issue happens from the GUI app, not from the separately installed Codex CLI.

Observed parent process:

```sh
/Applications/ChatGPT.app/Contents/MacOS/ChatGPT

Observed related child process:

/Applications/ChatGPT.app/Contents/Resources/codex -c features.code_mode_host=true app-server
--analytics-default-enabled

Zombie process count increased quickly after launching the app:

  • 12 zombies after approximately 27 seconds
  • 38 zombies after approximately 1 minute
  • In a previous run, it grew from 68 to 286 without user interaction

All zombie processes were <defunct> children of the ChatGPT app parent process.

Example output:

zombies=38
ppid=92090 zombies=38
92090 1 S 12.1 1.9 324928 01:09 /Applications/ChatGPT.app/Contents/MacOS/ChatGPT

The app was idle when the zombie count continued increasing.

What steps can reproduce the bug?

```markdown

  1. Install or reinstall the ChatGPT/Codex macOS app.
  2. Launch the app.
  3. Leave the app idle.
  4. In Terminal, run:

```sh
ps -axo stat= | awk '$1 ~ /^Z/ {count++} END {print count + 0}'

  1. Check zombie parent processes:

ps -axo ppid=,stat= | awk '$2 ~ /^Z/ {count[$1]++} END {for (ppid in count) printf "ppid=%s
zombies=%d\n", ppid, count[ppid]}'

  1. Inspect the ChatGPT/Codex app processes:

ps -axo pid=,ppid=,stat=,%cpu=,%mem=,rss=,etime=,command= | awk '/\/Applications\/ChatGPT.app\//
{print}'

The zombie count increases over time even without interacting with the app.

What is the expected behavior?

``markdown
The ChatGPT/Codex macOS app should reap child processes correctly and should not accumulate
zombie (
<defunct>`) subprocesses while idle.

Additional information

Quitting the ChatGPT app clears the zombie processes because the parent process exits.

The Codex CLI remains installed separately and appears unrelated:

```sh
codex --version
codex-cli 0.146.1

The issue reproduced after removing and reinstalling the ChatGPT/Codex GUI app.

Additional information

_No response_

View original on GitHub ↗

3 Comments

b-yass · 21 days ago

suffering from the exact same issue starting today (august 6th)

hao-Jian-Qiang · 21 days ago

+1

xiashuqin89 · 18 days ago

anybody can see this bug?it's really serious