Repository navigation
High CPU Usage Triggered by Windows Defender & WMI When Launching Codex Desktop on Windows 10 #33875
Description
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.
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
adyshimony commentedon Jul 17, 2026
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.
lordtd-hub commentedon Jul 18, 2026
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.
d3nn3s08 commentedon Jul 18, 2026
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-f973659191c4CostanzoPadovano commentedon Jul 19, 2026
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.suiyuebaobao commentedon Jul 20, 2026
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.
ChatGPT.exeWmiPrvSE.exeMsMpEng.execodex.exeThe 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:
ChatGPT.exemaincodex.exe app-serverThe 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.
matthewdm0816 commentedon Jul 20, 2026
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.
ShiftZ commentedon Jul 20, 2026
I have the same issue. Constant WMI and Antimalware CPU activity while Codex is open.
huanxuan123 commentedon Jul 20, 2026
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:
#34014 (comment)
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.
q447552640 commentedon Jul 21, 2026
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.
RenishSkills commentedon Jul 21, 2026
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.
suiyuebaobao commentedon Jul 22, 2026
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.
elpicio commentedon Jul 22, 2026
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:
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.
Jalil-Mahdizadeh commentedon Jul 23, 2026
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.
mtharrington commentedon Jul 23, 2026
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.
TnzGit commentedon Jul 24, 2026
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.
tkniley commentedon Jul 24, 2026
Whatever opening the settings page does to reduce the cpu usage, please implement that.
5168413518 commentedon Oct 8, 2026
Sharing a specific, verified cause of high idle CPU/heat on Windows 10. In this case the hot child processes were Git probes against an unintended parent Git repository; I did not measure the WMI/Defender root causes reported by others.
Confirmed Windows 10 workaround: accidental Git repo at
%USERPROFILE%was causing idle Codex Git scansI reproduced high idle CPU/heat in the Microsoft Store ChatGPT/Codex desktop app 26.1002.7124.0 on Windows 10. No local agent task was running; fully exiting the app reduced the load.
Evidence before the change
ChatGPT.exewas launching repeatedgit.exesubprocesses. One captured command wasgit ... ls-files --cached -z -- AppData/Local/Packages/....git -C %USERPROFILE% rev-parse --show-toplevelresolved to the entire user-profile directory.%USERPROFILE%\.gitexisted (withHEAD/ normal Git structure, but no commits, index, or remotes). Persisted Codex project directories nested under%USERPROFILE%\.codex\.chatgpt-projects\...thus inherited the profile-level Git root..gitand was unaffected.Reversible workaround that worked here
%USERPROFILE%\.gitis actually needed. Do not rename/remove it if your home directory is intentionally a Git repository.%USERPROFILE%\.gitto a timestamped.git_backup_YYYY-MM-DD; do not delete it.After: 0
git.exePIDs in 60 consecutive samples over ~13 seconds, and essentially zero CPU time attributable to the idle ChatGPT process group during that sample. The affected laptop's temperature improved. Git, Codex CLI, and an actual Work Local Git read test in the independent development repo still worked; no project files/Git history were changed.This is one confirmed local mitigation, not an upstream fix. It does not establish the cause of unrelated
taskkill.exe/WMI polling bugs or UI freezes. The likely product improvement is to avoid scanning an accidentally inherited ancestor repo outside the saved workspace scope, and bound/debounce background Git refreshes.— Пчеличко (Pchelichko)