High CPU Usage Triggered by Windows Defender & WMI When Launching Codex Desktop on Windows 10
What version of the Codex App are you using (From “About Codex” dialog)?
Codex Desktop Version: 26.715.2305.0
What subscription do you have?
pro 20x
What platform is your computer?
windows
What issue are you seeing?
High CPU Usage Triggered by Windows Defender & WMI When Launching Codex Desktop on Windows 10
Environment
OS: Windows 10 Pro x64
CPU: Intel Core i5-10400F
RAM: 16 GB
GPU: NVIDIA GTX 1650
Codex Desktop Version: 26.715.2305.0
Installation: Microsoft Store
Summary
Launching Codex Desktop immediately causes extremely high CPU usage, even before opening any project.
The CPU reaches 90–100% due to the combination of:
ChatGPT / Codex processes
Windows Defender (Antimalware Service Executable)
WMI Provider Host (WmiPrvSE.exe)
This significantly increases CPU temperature and system load.
Expected Behavior
Opening Codex Desktop without opening any project should result in minimal CPU usage (similar to VS Code extension).
Actual Behavior
Immediately after launching Codex Desktop:
CPU usage jumps to 90–100%.
Windows Defender starts consuming 20–40% CPU.
WMI Provider Host also starts consuming 10–20% CPU.
CPU temperature increases accordingly.
This happens even while sitting on the Home screen without opening any workspace.
Troubleshooting Performed
I tested all of the following:
✅ Replaced CPU thermal paste.
✅ Verified CPU cooler installation.
✅ Tested CPU temperatures (hardware is working normally).
✅ Added Windows Defender exclusions for:
Project folder
C:\Users\<user>\AppData\Local\OpenAI
...\Codex\runtimes
✅ Restarted Windows.
✅ Disabled Windows Defender Real-time Protection.
✅ Tested without opening any project.
✅ Tested after removing NVIDIA RTX Voice.
✅ Checked WMI logs.
✅ Rebuilt Windows Performance Counters.
✅ Verified CPU is normal outside Codex.
None of these resolved the issue.
Important Observation
When Real-time Protection is disabled:
Windows Defender CPU usage disappears.
Codex CPU usage increases instead.
This suggests Defender is scanning Codex activity rather than being the original source.
Comparison with VS Code
Using the Codex extension inside VS Code:
CPU usage remains around 40–70%
No abnormal Defender behavior.
Much lower overall system load.
Only Codex Desktop reproduces this issue.
WMI Activity
Windows Event Viewer shows continuous WMI queries such as:
Win32_Processor
Win32_OperatingSystem
Win32_PerfFormattedData_PerfProc_Process
WMI Provider Host becomes active immediately after launching Codex Desktop.
Additional Notes
The issue occurs:
without opening any project
after reboot
with Defender exclusions configured
even on the Home screen
This suggests the desktop application itself is triggering excessive background activity that causes Defender and WMI to become heavily active.
Request
Could the team investigate whether the current Windows Desktop build performs excessive background indexing, WMI queries, or runtime initialization that triggers Microsoft Defender?
The behavior appears specific to Codex Desktop, since the VS Code extension does not reproduce the same level of CPU usage.
What steps can reproduce the bug?
High CPU Usage Triggered by Windows Defender & WMI When Launching Codex Desktop on Windows 10
Environment
OS: Windows 10 Pro x64
CPU: Intel Core i5-10400F
RAM: 16 GB
GPU: NVIDIA GTX 1650
Codex Desktop Version: 26.715.2305.0
Installation: Microsoft Store
Summary
Launching Codex Desktop immediately causes extremely high CPU usage, even before opening any project.
The CPU reaches 90–100% due to the combination of:
ChatGPT / Codex processes
Windows Defender (Antimalware Service Executable)
WMI Provider Host (WmiPrvSE.exe)
This significantly increases CPU temperature and system load.
Expected Behavior
Opening Codex Desktop without opening any project should result in minimal CPU usage (similar to VS Code extension).
Actual Behavior
Immediately after launching Codex Desktop:
CPU usage jumps to 90–100%.
Windows Defender starts consuming 20–40% CPU.
WMI Provider Host also starts consuming 10–20% CPU.
CPU temperature increases accordingly.
This happens even while sitting on the Home screen without opening any workspace.
Troubleshooting Performed
I tested all of the following:
✅ Replaced CPU thermal paste.
✅ Verified CPU cooler installation.
✅ Tested CPU temperatures (hardware is working normally).
✅ Added Windows Defender exclusions for:
Project folder
C:\Users\<user>\AppData\Local\OpenAI
...\Codex\runtimes
✅ Restarted Windows.
✅ Disabled Windows Defender Real-time Protection.
✅ Tested without opening any project.
✅ Tested after removing NVIDIA RTX Voice.
✅ Checked WMI logs.
✅ Rebuilt Windows Performance Counters.
✅ Verified CPU is normal outside Codex.
None of these resolved the issue.
Important Observation
When Real-time Protection is disabled:
Windows Defender CPU usage disappears.
Codex CPU usage increases instead.
This suggests Defender is scanning Codex activity rather than being the original source.
Comparison with VS Code
Using the Codex extension inside VS Code:
CPU usage remains around 40–70%
No abnormal Defender behavior.
Much lower overall system load.
Only Codex Desktop reproduces this issue.
WMI Activity
Windows Event Viewer shows continuous WMI queries such as:
Win32_Processor
Win32_OperatingSystem
Win32_PerfFormattedData_PerfProc_Process
WMI Provider Host becomes active immediately after launching Codex Desktop.
Additional Notes
The issue occurs:
without opening any project
after reboot
with Defender exclusions configured
even on the Home screen
This suggests the desktop application itself is triggering excessive background activity that causes Defender and WMI to become heavily active.
Request
Could the team investigate whether the current Windows Desktop build performs excessive background indexing, WMI queries, or runtime initialization that triggers Microsoft Defender?
The behavior appears specific to Codex Desktop, since the VS Code extension does not reproduce the same level of CPU usage.
What is the expected behavior?
_No response_
Additional information
High CPU Usage Triggered by Windows Defender & WMI When Launching Codex Desktop on Windows 10
Environment
OS: Windows 10 Pro x64
CPU: Intel Core i5-10400F
RAM: 16 GB
GPU: NVIDIA GTX 1650
Codex Desktop Version: 26.715.2305.0
Installation: Microsoft Store
Summary
Launching Codex Desktop immediately causes extremely high CPU usage, even before opening any project.
The CPU reaches 90–100% due to the combination of:
ChatGPT / Codex processes
Windows Defender (Antimalware Service Executable)
WMI Provider Host (WmiPrvSE.exe)
This significantly increases CPU temperature and system load.
Expected Behavior
Opening Codex Desktop without opening any project should result in minimal CPU usage (similar to VS Code extension).
Actual Behavior
Immediately after launching Codex Desktop:
CPU usage jumps to 90–100%.
Windows Defender starts consuming 20–40% CPU.
WMI Provider Host also starts consuming 10–20% CPU.
CPU temperature increases accordingly.
This happens even while sitting on the Home screen without opening any workspace.
Troubleshooting Performed
I tested all of the following:
✅ Replaced CPU thermal paste.
✅ Verified CPU cooler installation.
✅ Tested CPU temperatures (hardware is working normally).
✅ Added Windows Defender exclusions for:
Project folder
C:\Users\<user>\AppData\Local\OpenAI
...\Codex\runtimes
✅ Restarted Windows.
✅ Disabled Windows Defender Real-time Protection.
✅ Tested without opening any project.
✅ Tested after removing NVIDIA RTX Voice.
✅ Checked WMI logs.
✅ Rebuilt Windows Performance Counters.
✅ Verified CPU is normal outside Codex.
None of these resolved the issue.
Important Observation
When Real-time Protection is disabled:
Windows Defender CPU usage disappears.
Codex CPU usage increases instead.
This suggests Defender is scanning Codex activity rather than being the original source.
Comparison with VS Code
Using the Codex extension inside VS Code:
CPU usage remains around 40–70%
No abnormal Defender behavior.
Much lower overall system load.
Only Codex Desktop reproduces this issue.
WMI Activity
Windows Event Viewer shows continuous WMI queries such as:
Win32_Processor
Win32_OperatingSystem
Win32_PerfFormattedData_PerfProc_Process
WMI Provider Host becomes active immediately after launching Codex Desktop.
Additional Notes
The issue occurs:
without opening any project
after reboot
with Defender exclusions configured
even on the Home screen
This suggests the desktop application itself is triggering excessive background activity that causes Defender and WMI to become heavily active.
Request
Could the team investigate whether the current Windows Desktop build performs excessive background indexing, WMI queries, or runtime initialization that triggers Microsoft Defender?
The behavior appears specific to Codex Desktop, since the VS Code extension does not reproduce the same level of CPU usage.
17 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Happening all the time on my Win machine, Version 26.715.21425
Every Codex app start, and every task start in Codex.
This is a blocker, its taking all the cpu.
I can confirm this issue still exists on Windows 11 with the latest desktop release 26.715.31251.
I tested the following:
ChatGPT Classic does not reproduce the issue.
Opening Codex without opening any workspace immediately causes WMI Provider Host and Windows Management Instrumentation CPU usage to increase.
Closing Codex immediately returns CPU usage to normal.
winmgmt /verifyrepository reports "WMI repository is consistent".
Microsoft Defender exclusions did not resolve the issue.
This appears to affect at least Windows 10 and Windows 11.
I’m experiencing what appears to be the same issue on Windows 11.
System:
When Codex is open, total CPU usage stays around 34–41%, even when no task is actively running. The mouse and the entire Windows interface begin to stutter.
The following processes showed noticeable CPU usage:
After completely terminating Codex through Task Manager:
After launching Codex again, the CPU load immediately increased and the stuttering returned.
This strongly suggests that Codex is triggering additional CPU activity in Microsoft Defender and WMI. The issue is reproducible after restarting Codex.
I also captured and uploaded a performance trace while the issue was occurring.
Feedback ID:
019f7532-b24d-7a53-899d-f973659191c4<img width="733" height="592" alt="Image" src="https://github.com/user-attachments/assets/fadacb33-2bb8-4649-be14-b37109dbd753" />
<img width="756" height="592" alt="Image" src="https://github.com/user-attachments/assets/f690e3c8-a3fc-4af0-9598-70cbb21084ba" />
I can confirm this on another Windows 11 system, with additional WMI/Delivery Optimization evidence.
Environment
26200.8875OpenAI.Codex 26.715.4045.01125.27.50.919(current ASUS release)Observed behavior
WMI evidence
The WMI Activity/Operational log recorded Event ID 5858 every ~2 seconds:
The client PID consistently mapped to the Windows Delivery Optimization service (
DoSvc). Temporarily stoppingDoSvcimmediately stopped the repeated NetAdapter WMI events and WMI CPU usage.DoSvcitself is configured normally as Automatic (Delayed Start).One captured occurrence overlapped a Store acquisition/reinstall:
731,261,669bytes forOpenAI.CodexThis suggests at least part of the Windows-specific CPU spike involves the Store/MSIX update path activating
DoSvc, which then repeatedly queries NetAdapter statistics. The app/Store trigger and the WMI provider load may be overlapping aspects of the same regression.I can reproduce this on another Windows 11 x64 machine with the current Microsoft Store build, and the process breakdown is consistent with this issue.
Environment
OpenAI.Codex_26.715.4045.0_x6410.0.2610031.0.101.4502Reproduction
The Codex CLI by itself does not reproduce the same CPU behavior.
Measurements
A 10.02-second sample produced the following values. “One-core %” treats one logical processor as 100%; “system %” is normalized across all 32 logical processors.
| Process group | One-core % | System % |
|---|---:|---:|
|
ChatGPT.exe| 29.8% | 0.93% ||
WmiPrvSE.exe| 15.6% | 0.49% ||
MsMpEng.exe| 14.0% | 0.44% || bundled
codex.exe| 0.2% | ~0% |The combined value is approximately 59.6% of one logical CPU core (about 1.86% of the whole 32-thread system), which matches the user-visible ~60% reading.
A separate 15-second sample of the desktop process tree after restart showed approximately:
| Desktop process | One-core % |
|---|---:|
|
ChatGPT.exemain | 30.1% || GPU process | 9.5% |
| renderer | 8.9% |
|
codex.exe app-server| 1.4% || Total | 50.0% |
The previous launch produced essentially the same result: 51.1% of one core. Restarting did not materially change it.
Additional observations
Expected behavior: when there is no build/test/browser workload, the desktop shell and its WMI/Defender side effects should settle close to idle instead of continuously consuming roughly half of a logical CPU core.
I found that the high CPU usage (both ChatGPT/Codex, and WMIProvider) can be triggered, if you hover your mouse on the (projects) sidebar, and move quickly up and down.
I have the same issue. Constant WMI and Antimalware CPU activity while Codex is open.
This looks related to #34014, although it may not have exactly the same trigger.
The important difference is that this issue reproduces on the Home screen without opening a repository, while my reproduction required opening a repository with a very large dirty working tree. The existing report that rapidly hovering over projects in the sidebar can trigger the problem also suggests that project/sidebar metadata refresh may be another entry point.
In my reproduction, WMI Provider Host and Defender were downstream effects rather than the original workload. The standalone app continuously created and cancelled short-lived Git processes:
git.exeprocesses per 10 secondstaskkill.exeprocesses per 10 secondsconhost.exeprocesses per 10 secondsThe parent was the main
ChatGPT.exeprocess. Repeated commands includedgit config,git hash-object, per-filegit diff, andtaskkill /t /f.Reducing the repository from 2,286 untracked files to 10 stopped the process storm:
git.exeprocesses: 0taskkill.exeprocesses: 0Full process-level evidence and the workaround are documented here:
https://github.com/openai/codex/issues/34014#issuecomment-5026272173
This suggests there may be at least two standalone-app triggers:
Both may share the same underlying problem: refreshes are not sufficiently coalesced or debounced, causing repeated local process creation and cancellation. It may be useful to instrument Git worker invocations, child-process creation rate, and sidebar/project metadata refresh separately.
If I launch Codex Desktop directly in user mode, it spawns a large number of terminal processes and keeps failing repeatedly, with up to five or six hundred such processes running. Meanwhile, the WMI Provider Host process consumes over 50% of system resources. However, when I run it as administrator, no excessive terminal processes are created and WMI operates normally. This issue is most likely caused by a permission-checking process that keeps failing and restarting continuously.
Right Click Codex And Run As Administrator may be helpful.
I’m experiencing the same problem with Codex Desktop 26.715.61943. There are too many git.exe and taskkill.exe processes, and WMI Provider Host consumes over 80% of the CPU, making the system unusable.
Running as Administrator didn’t help me.
The high CPU usage begin when I open an existing chat or conversation. I believe it dies in reading old conversation especially when it is large.
I’ve switched back to Codex CLI, which works without any issues.
I was able to stop the process storm on my machine with a practical Windows workaround.
In my reproduction, WMI Provider Host and Microsoft Defender were downstream effects. The Codex desktop app was continuously creating and cancelling short-lived Git processes:
git.exeprocesses per 10 secondstaskkill.exeprocesses per 10 secondsconhost.exeprocesses per 10 secondsI now launch the original Microsoft Store/MSIX Codex app with a process-scoped
GIT_DIR=NUL. After startup stabilized, a 15-second trace recorded:git.exeprocessestaskkill.exeprocessesI published the single-file launcher and bilingual documentation here:
Usage: fully exit Codex from the Windows system tray, then run
Codex-Git-Disabled.cmd.This is an unofficial workaround rather than an upstream fix. The trade-off is that Review, Changes, branch detection, commit, and other Git-backed Codex features will be unavailable or incomplete. The script does not patch the Codex installation, modify repositories or Git configuration, write system environment variables, require elevation, terminate processes, or remove chat history. Launching Codex normally restores its Git integration.
I found an additional trigger that may help narrow down the cause.
### Environment
### Additional observations
I saw the same relationship between the active UI route and WMI load:
WmiPrvSE.exeandMsMpEng.exeCPU usage increased.I then found that a large dirty Git working tree was a strong trigger in my environment.
During the affected period, the Codex Desktop logs recorded:
requestKind=review-summarygit hash-objectcommandsgit diffcommandsabortedTypical commands included:
``
text
``git diff
git diff --no-index /dev/null <untracked-file>
git hash-object <file>
Many of the affected files were untracked images, screenshots, WebP files, documents, and source files.
The review baseline covered 1,066 changed files, including 277 binary files. The final set of commits that made the
working tree mostly clean contained 185 files and 12 binary files.
After committing those changes, the abnormal WMI and Defender usage stopped. The Codex Desktop version remained
unchanged, so this was not caused by an application update.
### Possible mechanism
Based on the Desktop logs, the behavior appears to involve two interacting paths:
Large dirty working tree
→ review-summary repeatedly recalculates diffs and file hashes
→ previous calculations are cancelled and restarted
→ many short-lived Git and PowerShell processes
→ Desktop samples the changing process tree through WMI
→ WmiPrvSE CPU usage increases
→ Defender scans the processes and files being read
→ MsMpEng CPU usage increases as a secondary effect
This also explains why the issue can occur on the Home or New Chat screen without explicitly opening a repository.
Those views still load project, thread, repository, and review-related state. Settings does not appear to keep those
components active.
I found no actual gh.exe invocation in the logs. Entries labeled gh-pr-status only executed a small number of git
config --get remote.upstream.url commands, so GitHub CLI does not appear to be involved.
### Suggested test for other affected users
This may not explain every clean-install or empty-repository reproduction. The dirty working tree appears to be a
trigger or amplifier, while the underlying issue is likely the Desktop review refresh and WMI process-sampling
behavior.
Potential improvements may include debouncing review-summary refreshes, allowing only one calculation per repository,
avoiding immediate restarts after cancellation, and avoiding full WMI process enumeration during frequent UI state
updates.
I can reproduce this consistently on another Windows system, with a controlled Desktop-open/Desktop-closed comparison.
Environment
Controlled A/B result
WmiPrvSE.exeis about 1%.The separate native Codex CLI remained open during this comparison and did not reproduce the load, so the trigger is specifically the Desktop app lifecycle.
Task Manager's per-logical-processor view shows 14 of 16 processors heavily active, with only the two low-power cores near idle.
Counters captured while affected
WmiPrvSE.exe: 24.3%svchost.exehostingWinmgmt: 8.5%MsMpEng.exe: 7.9%Docker containers were below 0.2% combined, and no WSL distribution was installed. This strongly supports WMI and Defender being downstream effects; opening Codex Desktop is the strict trigger. This is severe enough to cause sustained fan noise, heat, battery drain, and makes leaving the desktop client open impractical.
Also experiencing the same issues Windows 11:
Constant jump in WMI and Antimalware. Especially with the Delivery Optimization service. And a large number of hanging terminate process commands. It's making it almost unusable.
I can reproduce this consistently on Windows with Codex Desktop 26.715.10079.0.
A controlled Codex-off/Codex-on A/B test showed:
Completely exiting Codex immediately made the desktop and mouse smooth.
Reopening Codex immediately brought the stuttering back.
Native process capture showed ChatGPT.exe repeatedly spawning PowerShell commands containing:
WMI Analytic Trace linked those calls to CIMWin32/WmiPrvSE.
Read-only inspection of resources/app.asar located the Windows implementation in:
The current package does not appear to expose a user setting or feature flag for disabling this sampler.
Physical C: disk latency and queue remained low, while DWM and other major applications were nearly unchanged across the A/B test.
I have a sanitized investigation report and PDH/heartbeat evidence available if maintainers need it.
Whatever opening the settings page does to reduce the cpu usage, please implement that.