Skip to content

Codex triggers high CPU usage in WMI Provider Host on Windows after startup #29499

Description

@Artasov

What version of the Codex App are you using (From “About Codex” dialog)?

26.616.51431

What subscription do you have?

Pro x20

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64 13th Gen Intel(R) Core(TM) i5-13500

What issue are you seeing?

Image **Title:** Codex triggers high CPU usage in WMI Provider Host on Windows after startup

Issue:

Hi. I’m seeing a serious performance issue on Windows that appears to be triggered by launching Codex.

When my PC is idle, CPU usage is normally around 0-1%. After I start Codex, I expect some temporary CPU usage while the app loads projects, chats, and the sidebar. That part looks normal: the Codex process uses CPU for a few seconds, then its usage drops.

However, shortly after Codex finishes loading, CPU usage from WMI Provider Host (WmiPrvSE.exe) starts increasing significantly. In some cases it reaches around 50% CPU, even though I am not doing anything inside Codex. The app is just open and idle.

This causes severe system lag: the mouse cursor freezes every couple of seconds, the system becomes noticeably unresponsive, and the CPU appears to start throttling.

I’m fairly sure this is related to Codex because:

  1. The system is idle before launching Codex.
  2. The issue starts shortly after Codex is opened.
  3. If I close Codex and kill/restart the WMI Provider Host process, CPU usage returns to normal.
  4. If I launch Codex again, the same WMI Provider Host CPU spike happens again, even before I interact with the app.

Expected behavior:

After Codex finishes loading, both Codex and WMI Provider Host should return to low idle CPU usage.

Actual behavior:

Codex itself drops CPU usage after startup, but WMI Provider Host starts consuming a large amount of CPU and causes system-wide freezes.

Environment:

Environment:

  • OS: Windows
  • Shell configured in Codex: PowerShell
  • WSL: not used / disabled in Codex settings
  • Process affected: WmiPrvSE.exe / WMI Provider Host
  • Trigger: launching Codex and leaving it idle
  • CPU impact: sometimes up to ~50%
  • Result: fully system freezing every 1-2 second on 1-10 seconds and apparent CPU throttling

Please let me know if there are any logs, diagnostics, or traces I can provide to help identify which WMI queries or monitoring behavior Codex may be triggering.

What steps can reproduce the bug?

Uploaded performance trace: 019edb95-e480-70e2-9a8a-e3156ea2b9b3

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingperformancewindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions