You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: background Git checks open Terminal windows at turn start (fix commit) #48029
Sending a message in a Git repository opens several short-lived Windows Terminal windows. Their tab titles show git.exe. A process trace captured four new OpenConsole.exe instances at a turn start. The Codex app-server daemon launched Git metadata and status commands including rev-parse HEAD, remote -v, and status --porcelain.
Steps to reproduce
Open Codex App in a Git repository on Windows with Windows Terminal set as the default terminal application.
Send a message to start a turn.
Watch for transient Git terminal windows during turn startup.
Expected behavior
Background Git checks should run without creating or focusing terminal windows.
Root cause and proposed fix
codex-rs/git-utils/src/git_process.rs starts these commands through JobObject::spawn_contained. On Windows, the job-object spawn sets CREATE_SUSPENDED but does not set CREATE_NO_WINDOW. Its fallback clears creation flags to zero, so that path can also open a console.
Proposed fix: JRBusiness/codex@67858bd. It combines CREATE_NO_WINDOW with the suspended job-object spawn and retains the no-window flag in the fallback. This is a fork commit because the repository's contribution policy does not accept external pull requests.
Verification
A local Windows launcher using CREATE_NO_WINDOW ran the same turn-start Git checks with zero new OpenConsole.exe or Windows Terminal processes in the watcher. The upstream patch itself has not been deployed in the Codex App.
just fmt passed on the proposed patch.
just test -p codex-git-utils -p codex-utils-pty passed: 63 tests on Windows.
Activity
github-actions commentedon Sep 25, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
JRBusiness commentedon Sep 25, 2026
This