Skip to content

Windows: background Git checks open Terminal windows at turn start (fix commit) #48029

Closed

Description

@JRBusiness

Codex version

Codex App 26.915.4065.0; managed app-server daemon 0.157.0.

Platform

Windows 11 Pro, build 26200.

What happens

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

  1. Open Codex App in a Git repository on Windows with Windows Terminal set as the default terminal application.
  2. Send a message to start a turn.
  3. 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.

Related: #24910 and #30345.

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    windows-osIssues related to Codex on Windows systems
    on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions