Windows app repeatedly spawns \git ls-files --others --exclude-standard -z`; `ntfs.sys` `NtFC` nonpaged pool grows continuously`
What version of the Codex App are you using (From “About Codex” dialog)?
26.325.31654 (1272)
What subscription do you have?
pro
What platform is your computer?
Microsoft Windows 11 Pro 10.0.26200 x64
What issue are you seeing?
I traced a Windows nonpaged pool growth problem to Codex Desktop repeatedly spawning child git.exe processes during normal app use.
In this environment, the user-mode trigger was Codex repeatedly launching:
git ls-files --others --exclude-standard -z
The kernel-side memory growth showed up under ntfs.sys pool tag NtFC.
I am reporting this here because the reproducible trigger appears to be Codex Desktop behavior, even if part of the retention/cleanup problem may also involve Windows NTFS or Microsoft Defender.
Observed evidence from the same affected session:
- System nonpaged pool was growing while process-level nonpaged pool remained tiny, which pointed to kernel-side growth rather than a normal user-mode process pool leak.
- Direct pool-tag sampling showed
NtFCdominating and increasing. - After deleting all temporary trace files I created for diagnosis,
NtFCstill increased from4984.46 MBto5072.56 MBin 30 seconds (+88.10 MB). NtFCownership was confirmed locally by matching the tag string insideC:\Windows\System32\drivers\ntfs.sys.- During that same window,
Codex.exekept spawning childgit.exeprocesses with the exact command:<br>git ls-files --others --exclude-standard -z - New child
git.exepairs were observed at local times2026-04-04 22:16:23,22:16:26,22:16:49, and22:16:58, all parented byCodex.exe. - A short Procmon capture showed
git.exegenerating the most filesystem activity by a large margin (131,169file events in about 3 seconds). MsMpEng.exewas also highly active in the same capture (10,736file events), which suggests Microsoft Defender amplifies the I/O pressure once Codex starts the scans.
What I ruled out in the same session:
- This was not explained by process-local nonpaged pool usage.
- High-handle but low-file-activity processes did not match the growth pattern.
What steps can reproduce the bug?
- On Windows 11 Pro 26200 x64, launch Codex Desktop 26.325.31654 (1272).
- Open a local workspace under the user profile.<br>In my affected session, the active thread cwd was
C:\Users\JW\Documents\playground. - Leave the app open and use it normally, or keep the session open long enough for background repo/status activity to happen.
- Observe the process tree from elevated PowerShell / Process Explorer:
Codex.exerepeatedly spawnsgit.exe- the command line repeats as
git ls-files --others --exclude-standard -z
- In parallel, sample Windows nonpaged pool / pool tags.
- Observe
ntfs.sysNtFCnonpaged pool continuing to increase while those repeated git scans are occurring.
Repro status:
- This reproduced multiple times in the same affected session.
- I have not yet reduced it to a fully minimal deterministic repro outside the affected environment.
What is the expected behavior?
- Codex Desktop should not repeatedly spawn unbounded background
git ls-files --others --exclude-standard -zscans during normal or idle app use. - Repo scanning should stay scoped to the active workspace roots and should be debounced/cached appropriately.
- Codex should not act as a user-mode trigger that drives continuously growing NTFS nonpaged pool on Windows.
Additional information
I understand the ultimate pool-retention bug may also involve Windows NTFS or Microsoft Defender, but the reproducible user-mode trigger in this environment was Codex repeatedly spawning git.exe.
Directionally related Codex reports:
- openai/codex#13717 runaway
rgprocesses with high CPU/RAM - openai/codex#13809 long git diffs create lag in Codex App
- openai/codex#14469 Windows app lag from oversized
git-origins/ Git-worktree scans
If useful, I can provide follow-up artifacts from the affected machine, including:
- process tree snapshots showing repeated
Codex.exe -> git.exe - pool tag samples showing
NtFCgrowth over time - Procmon summaries showing
git.exeas the top filesystem event source
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗