You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows Codex desktop app spawns hundreds of taskkill.exe and conhost.exe during local tool execution #33778
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.exe processes, totaling about 506 MB private memory
197 C:\Windows\System32\conhost.exe processes, totaling about 326 MB private memory
The taskkill.exe processes were created in a tight 10-second window
Inspecting one live taskkill.exe showed its parent process was ChatGPT.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.exe process 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.
Result:
All observed taskkill.exe processes had ParentProcessId pointing to ChatGPT.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.exe loop.
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
Windows x64 system with 15.89 GB RAM.
Performed a full Windows restart before retesting.
Launched Codex from the standard official AppX/Start menu entry.
The main ChatGPT.exe process was parented by explorer.exe and its command line contained no custom launcher or --proxy-server argument.
The AppX package reported status Ok.
Rotating the dedicated Codex log database and rebuildable application caches, while preserving sessions and sign-in state, did not prevent recurrence.
After local shell/tool execution, one live snapshot showed:
Measurement
Value
Total processes
362
taskkill.exe
21
conhost.exe
68
ChatGPT.exe working set / private memory
1780.1 MB / 1589.7 MB
codex.exe working 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.exe processes:
16 were direct children of the main ChatGPT.exe process.
3 were children of codex.exe.
2 were children of other taskkill.exe processes.
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.exe and codex.exe processes 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.
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.exe storm 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 new git.exe and 137 new taskkill.exe processes 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.
While the new task is still initializing, switch to project B.
A large number of taskkill.exe processes begin to appear.
Repeating the project switch causes more processes to accumulate.
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:
Overall CPU usage reached approximately 60%.
A Node.js runtime used approximately 1.5 GB of memory.
Windows Management Instrumentation showed elevated CPU usage.
Security software CPU usage also increased because of the large number
of rapidly created processes.
The system became noticeably slower.
After completely exiting Codex:
New taskkill.exe processes stopped being created.
Existing taskkill.exe processes disappeared after approximately
one to two minutes.
CPU usage remained elevated temporarily while WMI and the remaining
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.exe processes or leave Node.js runtimes and cleanup
processes 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:
Open project A.
Click New task.
Switch to project B while the task is initializing.
Repeat the project switch several times.
After the update, I no longer see the previous taskkill.exe process 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.41059 appears to have fixed the problem. Other users may still need to verify on their own systems.
Activity
github-actions commentedon Jul 17, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
a1014702011 commentedon Jul 17, 2026
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.Paliverse commentedon Jul 18, 2026
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.
eva763057345-lab commentedon Jul 18, 2026
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:
taskkill.execonhost.exeChatGPT.exeworking set / private memorycodex.exeworking set / private memoryParent 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:
taskkill.execonhost.exeThe 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.
HDDen commentedon Jul 19, 2026
Confirmed, is only way to make my computer responsive again is suspending chatgpt.exe via process explorer.
athan614 commentedon Jul 20, 2026
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.
suiyuebaobao commentedon Jul 22, 2026
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.
zhuangbowu commentedon Jul 23, 2026
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.
zhuangbowu commentedon Jul 27, 2026
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.