Windows: Opening Codex tab in non-Git workspace causes continuous git.exe spawning and high Defender CPU
Open 💬 4 comments Opened Jun 24, 2026 by mdyks01
What version of the Codex App are you using (From “About Codex” dialog)?
26.616.81150
What subscription do you have?
Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Observed
--------
- git.exe and conhost.exe continuously appear and exit.
- Microsoft Defender MsMpEng.exe CPU rises to ~8-10% and stays there.
- Behavior Monitoring is responsible.
- Simply opening the Codex tab reproduces the issue.
What steps can reproduce the bug?
Steps to reproduce
------------------
- Open a folder that is NOT a Git repository.
- Switch to the Codex tab.
- Do not issue any commands.
What is the expected behavior?
Expected
--------
Codex should detect a non-Git workspace once and stop retrying, rather than repeatedly launching git.exe.
Additional information
Additional observations
-----------------------
Opening the same project after running:
git init
completely eliminates the issue.
Opening a folder that is already a Git repository also does not reproduce the issue.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗