Skip to content

macOS ChatGPT desktop: app-server leaks a full MCP server stack per conversation (545 procs / 28 GB in ~10h) #32339

Description

@hunterbohm

My Mac mini (24GB) hard-froze with an OOM yesterday and I traced it back to the ChatGPT desktop app's codex host.

Every codex conversation in the app spawns a fresh copy of every stdio MCP server from ~/.codex/config.toml (playwright, context7, github, shadcn, exa, firecrawl, node_repl...) and nothing ever reaps them when the conversation ends. The parent codex app-server stays alive, so they aren't orphans either — they just pile up until the machine falls over.

Numbers from yesterday, ~10 hours after a clean reboot:

  • codex app-server subtree: 545 processes, 28.0 GB total footprint (measured with footprint -a)
  • 282 node processes: ~36 copies each of exa-mcp-server, firecrawl-mcp, shadcn mcp, context7-mcp, playwright-mcp, mcp-server-github
  • swap 12.3/13 GB full on a 24 GB machine, then the OOM freeze

Environment:

  • macOS 26 (Darwin 25.4.0), Apple Silicon, 24 GB
  • ChatGPT desktop 150.0.7871.115, app-server launched with -c features.code_mode_host=true
  • ~8 stdio MCP servers in config.toml — any of them reproduce it

Looks like the same family as #28361 (Windows CLI path), #25015 (Linux subagents), #26773 / #26869 — filing separately because none of those cover the macOS desktop app, and this confirms the bug is cross-platform rather than windows-os. Same signature as #28361 too: one-shot codex exec cleans up its children fine, the persistent app-server path never does.

Current workaround is a launchd job that restarts the whole app once the subtree passes ~120 processes, which works but is not exactly a fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serversperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions