Repository navigation
Windows Codex App 26.519.11010.0 flashes git.exe console windows during tasks #24910
Description
What version of the Codex App are you using?
OpenAI.Codex_26.519.11010.0_x64__2p2nqsd0c76g0
The app package reported locally:
Name: OpenAI.Codex
Version: 26.519.11010.0
PackageFullName: OpenAI.Codex_26.519.11010.0_x64__2p2nqsd0c76g0
What subscription do you have?
ChatGPT / Codex desktop app user. Please let me know if you need a more specific subscription value.
What operating system are you using?
Windows 11 x64.
What Git version are you using?
git version 2.54.0.windows.1
git resolves to:
D:\Software\Git\cmd\git.exe
D:\Software\Git\bin\git.exe
What issue are you seeing?
During normal Codex App task execution on Windows, a git.exe command-line window repeatedly flashes/pops up. The window appears almost instantly and disappears too quickly to read the full command; only git.exe is visible.
This started recently. Rebooting Windows multiple times and restarting Codex does not resolve it.
Based on local inspection, git.exe is the normal Git for Windows console executable. The visible popup looks consistent with Codex launching Git from the desktop GUI context without hiding the console window.
Why this seems app-side
- The behavior happens while using Codex App tasks, not from a user-initiated terminal command.
- Restarting Windows and reopening Codex does not fix it.
- Git itself works normally from PowerShell.
- The symptoms resemble earlier Windows app reports where Codex repeatedly spawned Git and conhost processes.
Related prior issues that look similar:
- Codex Windows App keeps spawning
git.exe status --porcelain=v1 -zand leaves orphangit.exe/conhost.exeprocesses #17229: Codex Windows App repeatedly spawninggit.exe status --porcelain=v1 -zandconhost.exe - Windows desktop app triggers multiple git.exe add -A processes when opening a project/chat, causing severe CPU and disk usage #20933: Windows desktop app triggering multiple
git.exe add -A/rev-parseprocesses when opening a project/chat - Windows 26.429 desktop becomes unresponsive with long threads, MCP auto-start duplicates, and non-Git workspace warnings #20867: Windows desktop app update causing unresponsiveness and repeated Git metadata work
Expected behavior
Codex should be able to run Git status/snapshot commands on Windows without showing transient git.exe / console windows to the user. If Git is launched from the desktop app, it should use a hidden/no-window process creation mode.
Actual behavior
A git.exe console window repeatedly flashes during Codex task execution.
Additional notes
I considered a local workaround using a Git wrapper, but this should ideally be fixed in the app by launching Git with the appropriate Windows no-console/no-window flags rather than requiring users to replace or wrap Git.
Activity
Happy-DJ commentedon Jun 2, 2026
May I ask if you have solved it?
rwang23 commentedon Jun 2, 2026
Not fully solved upstream yet. I think the real fix needs to come from the Codex Windows app itself: when it launches Git from the desktop/GUI process, it should start
git.exewith the appropriate no-console/no-window flags.For now I made a local temporary workaround here:
https://github.com/rwang23/codex-windows-console-guard
What it does:
PATHgit.exewrapper under the user profileCREATE_NO_WINDOWBasic usage:
If Git is installed in a custom location, use
-RealGit, for example:Rollback:
This is only a workaround until Codex fixes the Windows Git process launch behavior officially.
rwang23 commentedon Jun 12, 2026
Update: I refreshed the workaround repo after seeing another Windows-specific edge case.
Repo: https://github.com/rwang23/codex-windows-console-guard
Changes:
Environment.CurrentDirectorybefore launching Git. This avoids one.NET Runtime/fondue.exefailure mode I hit locally when Codex inherited a broken/unavailable working directory.fondue.exe / Windows Featurestroubleshooting section.This is still only a local workaround for visible
git.execonsole windows. It does not reduce Codex's Git polling frequency; the upstream fix still needs Codex Desktop on Windows to launch internal Git subprocesses with hidden/no-window process flags.fix(windows): suppress console window flash on shell tool spawns
suiyuebaobao commentedon Jul 22, 2026
The visible
git.execonsole-process churn reported here is part of the same Git-backed desktop integration surface that this workaround disables.I published a single-file Windows launcher for the original Microsoft Store/MSIX Codex app:
It starts Codex with a process-scoped
GIT_DIR=NUL. On my machine, the stable trace changed from 247 newgit.exeand 137 newtaskkill.exeprocesses per 10 seconds to 0 and 0 over 15 seconds; WMI Provider Host fell from about 6.6% to 0.9%.Usage: fully exit Codex from the Windows system tray, then run the script.
This is an unofficial workaround, not an upstream fix. It deliberately disables or limits Review, Changes, branch detection, commit, and other Git-backed Codex features. It does not patch Codex, modify repositories or Git configuration, write system environment variables, require elevation, terminate processes, or remove chat history. Launching Codex normally restores Git integration.
shimtimultimedia commentedon Jul 25, 2026
Still present in 26.721.4979.0 — spawns visible powershell/conhost windows during tasks and up to one per second during connection retries, stealing keyboard focus.
ScienHAC commentedon Sep 28, 2026
Likely the same root cause as #48826:
codex-rs/git-utils/src/git_process.rsspawns git viaJobObject::spawn_contained, whose sharedprepare_suspended_spawn(codex-rs/utils/pty/src/win/job.rs) never setsCREATE_NO_WINDOWon Windows, so git.exe child processes show a console window. Full diagnosis + fix: #48826 (comment)