Windows Codex desktop app spawns hundreds of taskkill.exe and conhost.exe during local tool execution
Open 💬 9 comments Opened Jul 17, 2026 by WangZhehao37
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Environment
- Windows build: 10.0.26200.8875
- Codex desktop app package:
OpenAI.Codex_26.715.2305.0_x64 - Local Codex task using shell/tool calls. Multiple plugins/MCP integrations may be installed.
Observed behavior
During a local Codex desktop session, the ChatGPT/Codex renderer repeatedly spawned a large number of taskkill.exe processes, each with a paired conhost.exe process.
A process snapshot showed:
- 178
C:\Windows\System32\taskkill.exeprocesses, totaling about 506 MB private memory - 197
C:\Windows\System32\conhost.exeprocesses, totaling about 326 MB private memory - The
taskkill.exeprocesses were created in a tight 10-second window - Inspecting one live
taskkill.exeshowed its parent process wasChatGPT.exe(a Codex desktop renderer process) - The counts persisted rather than promptly returning to a bounded baseline
This contributes substantial memory pressure and makes the process list difficult to inspect. The system has 16 GB RAM and only about 1.7 GB was available during the investigation.
Expected behavior
Command-cleanup helpers and their console hosts should exit promptly after a tool invocation. The number of taskkill.exe / conhost.exe children under the desktop app should remain bounded.
Notes
- This may be related to the existing Codex desktop/MCP child-process lifecycle reports, but the observable Windows symptom here is specifically a large, persistent
ChatGPT.exe -> taskkill.exe -> conhost.exeprocess tree. - I did not confirm a GPU-memory leak: total shared GPU usage was about 0.67 GB at the snapshot, which does not explain the overall RAM pressure.
- Restarting the desktop app is currently the only reliable cleanup observed.
9 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I can reproduce a very similar issue on Codex Desktop for Windows.
Environment:
OpenAI.Codex_26.715.2305.0_x64__2p2nqsd0c76g0Impact:
ChatGPT.exeprocess immediately restores system responsiveness.Process evidence:
A
ChatGPT.exeprocess repeatedly spawned large numbers oftaskkill.exechildren with commands like:Observed parent processes in separate reproductions:
ChatGPT.exePID50164ChatGPT.exePID23596Executable path:
Diagnostic command used:
Result:
All observed
taskkill.exeprocesses hadParentProcessIdpointing toChatGPT.exe.This appears to be per-conversation/session state: unloaded conversations do not consume resources, but entering the affected conversation can retrigger the
ChatGPT.exe -> taskkill.exeloop.Can confirmed with two concurrent ultra sessions, taskkill was reaching nearly 1,500 separate processes. It was Wild! Sadly have to use the CLI for now until this is fixed.
I can still reproduce this after the Microsoft Store app updated to Codex Desktop 26.715.3651.0.
New reproduction evidence
ChatGPT.exeprocess was parented byexplorer.exeand its command line contained no custom launcher or--proxy-serverargument.Ok.After local shell/tool execution, one live snapshot showed:
| Measurement | Value |
| --- | ---: |
| Total processes | 362 |
|
taskkill.exe| 21 ||
conhost.exe| 68 ||
ChatGPT.exeworking set / private memory | 1780.1 MB / 1589.7 MB ||
codex.exeworking set / private memory | 348.0 MB / 272.3 MB || System memory used / free | 70.2% / 4.73 GB |
Parent breakdown for the 21 live
taskkill.exeprocesses:ChatGPT.exeprocess.codex.exe.taskkill.exeprocesses.A separate six-second stability sample after the earlier clean restart showed active growth:
| Measurement | Start | Six seconds later |
| --- | ---: | ---: |
| Total processes | 323 | 381 |
|
taskkill.exe| 3 | 36 ||
conhost.exe| 14 | 44 |The number of
ChatGPT.exeandcodex.exeprocesses stayed constant during that sample, while the cleanup/console processes increased.There were no matching Windows Application Error or Hang events (Event IDs 1000/1002) during the latest two-hour observation window, so this recurrence presented as a process-cleanup/performance failure rather than a new crash.
Once the system was affected, a later local shell invocation failed immediately with process exit code
-1073741502. I am treating that as a possible secondary symptom rather than the root cause.Conclusion
The problem remains reproducible in 26.715.3651.0 after a full reboot and through the ordinary official AppX entry. This also rules out the machine's optional custom proxy launcher as a necessary trigger. The strongest observable trigger remains local tool/shell execution inside Codex Desktop.
No conversation data, usernames, repository names, raw databases, or complete logs are attached. I can provide additional sanitized counters if maintainers request them.
Confirmed, is only way to make my computer responsive again is suspending chatgpt.exe via process explorer.
Same issue here, ChatGPT/Codex windows app is stuck in a runaway process-enumeration loop with taskkill.exe whenever launched, causing WMI to get stuck at 25% CPU constantly, lagging my entire PC.
The
taskkill.exe/conhost.exestorm during local tool execution here is very close to the downstream behavior I measured. In my reproduction, repeated desktop Git refreshes were upstream, so this workaround is worth testing if the same parent chain is present.I published a single-file Windows launcher for the original Microsoft Store/MSIX Codex app:
It starts Codex with a process-scoped
GIT_DIR=NUL. On my machine, the stable trace changed from 247 newgit.exeand 137 newtaskkill.exeprocesses per 10 seconds to 0 and 0 over 15 seconds; WMI Provider Host fell from about 6.6% to 0.9%.Usage: fully exit Codex from the Windows system tray, then run the script.
This is an unofficial workaround, not an upstream fix. It deliberately disables or limits Review, Changes, branch detection, commit, and other Git-backed Codex features. If the process storm in this issue has a different upstream cause, this may not apply. The launcher does not patch Codex, modify repositories or Git configuration, write system environment variables, require elevation, terminate processes, or remove chat history. Launching Codex normally restores Git integration.
I can reproduce this issue on:
I found a more specific and reliable trigger:
taskkill.exeprocesses begin to appear.Remaining inside the same project generally does not trigger the issue.
It is especially easy to reproduce by clicking "New task" and then
switching projects before initialization finishes.
Observed behavior:
of rapidly created processes.
After completely exiting Codex:
taskkill.exeprocesses stopped being created.taskkill.exeprocesses disappeared after approximatelyone to two minutes.
processes were clearing.
Expected behavior:
Switching projects should cancel and clean up the previous task
initialization only once. Codex should not repeatedly spawn large
numbers of
taskkill.exeprocesses or leave Node.js runtimes and cleanupprocesses behind.
Update: this issue appears resolved on my machine after updating to Codex App / ChatGPT Desktop version
26.721.41059(released July 25, 2026).I retested the previously reliable trigger:
After the update, I no longer see the previous
taskkill.exeprocess storm, and the system no longer becomes sluggish or unresponsive. CPU and memory usage also remain normal during this workflow.For my environment, version
26.721.41059appears to have fixed the problem. Other users may still need to verify on their own systems.