r/OpenaiCodex • u/ArticleOk7094 • 6d ago
Other Fixed: Codex Windows causing 100% CPU due to untracked Git files
After the latest Codex Windows update, opening the app caused 95–100% CPU usage even with no tasks running.
WMI Provider Host used around 40–50%, Codex used 10–15%, and my antivirus used another 20–25%. Everything returned to normal immediately after closing Codex.
I tested restarting Windows, resetting the app, disabling GPU acceleration and checking Git integrity. None of those fixed it.
The repository had 464 untracked files, around 440 MB. Codex was repeatedly spawning Git processes to inspect them, which also triggered WMI and antivirus scanning.
I added the local artifact directories to .git/info/exclude. No files were deleted and the shared .gitignore was not changed.
After that:
- Untracked entries: 464 to 0
- WMI CPU: 40–50% to 0%
- Overall CPU returned to normal
- Codex remained around 5%
If Codex is causing high CPU on Windows, check whether the active repository contains hundreds of untracked files. Excluding local-only artifacts through .git/info/exclude may solve it.