Codex App leaks Node/MCP child processes when switching tasks on Windows
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- PR merge metrics
- PR metrics pending
Description
Feedback ID
01a00148-cf38-7e00-9592-ccbf935b0543
What happened?
After the latest Codex App update, switching between tasks repeatedly spawns additional Node/MCP child processes that do not get cleaned up.
During one session, Task Manager showed 81 Node-related processes:
node.exeprocesses running MCP servers, including repeatednpx -y vp0-mcpprocess trees- OpenAI-signed
node_repl.exeprocesses - All observed process chains traced back to
codex.exeunderChatGPT.exe
The number of processes increases as I switch tasks. After enough accumulation, the laptop becomes noticeably choppy. Fully restarting Codex immediately removes the accumulated processes and restores normal performance.
I disabled the vp0 MCP server afterward as a mitigation, but that only removes one noisy process chain; it does not address the apparent task/process lifecycle cleanup issue.
Steps to reproduce
- Start Codex App on Windows.
- Note the current number of
node.exeandnode_repl.exeprocesses in Task Manager. - Switch repeatedly between several Codex tasks.
- Observe that additional Node/MCP process trees appear.
- Wait and continue switching tasks.
- Observe that the older process trees remain alive and the process count keeps increasing.
- Restart Codex and observe that the accumulated processes disappear.
Expected behavior
Node/MCP processes that are no longer required should be reused or terminated when their task/runtime is closed or replaced. Switching tasks should not cause the number of child processes to grow continuously.
Actual behavior
New Node/MCP child processes are created during task switching, while older processes remain alive. Resource usage and UI responsiveness progressively degrade until Codex is restarted.
Environment
- Codex App version:
26.810.4967.0 - Operating system: Windows
- First noticed: August 14, 2026, after the latest Store-delivered Codex App update
- Restarting Codex reliably clears the accumulated processes
Additional notes
The timing with the update is a strong correlation, not proof of the precise regression source. The process ancestry and restart behavior do confirm that the accumulated Node processes are associated with the Codex/ChatGPT process tree rather than unrelated software.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the leak on Windows by switching repeatedly between Codex tasks, then monitor node.exe and node_repl.exe in Task Manager and trace their process trees back to Codex. Investigate task and runtime cleanup around the Codex/ChatGPT process tree; done means obsolete Node/MCP processes are reused or terminated and repeated task switching no longer increases the process count.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, rust
- Domain
- desktop, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100