Skip to content

Codex Windows App keeps spawning git.exe status --porcelain=v1 -z and leaves orphan git.exe / conhost.exe processes #17229

Open

Description

@xiaoye-520

What version of the Codex App are you using (From “About Codex” dialog)?

26.325.3894.0

What subscription do you have?

On Windows, the Codex Windows App repeatedly spawns Git processes such as: - git.exe status --porcelain=v1 -z and also creates matching console host processes such as: - \??\C:\WINDOWS\system32\conhost.exe 0x4 After closing the Codex window, new processes stop appearing, but many existing git.exe / conhost.exe processes remain alive. Even after ending Codex.exe from Task Manager, the leftover Git-related processes are still present. This looks like the app is polling Git state very aggressively and not cleaning up child processes correctly on exit.

What platform is your computer?

No response

What issue are you seeing?

Image Image Image

C:\Users\root\Documents\New project\ is the default project directory used by Codex.

What steps can reproduce the bug?

  1. Open Codex Windows App.
  2. Open a Git repository.
  3. Observe Task Manager / Process Explorer.
  4. Notice repeated creation of:
    • git.exe status --porcelain=v1 -z
    • conhost.exe 0x4
  5. Close the Codex app window.
  6. New Git processes stop appearing, but many previously created git.exe / conhost.exe processes remain.
  7. End Codex.exe manually in Task Manager.
  8. Leftover git.exe / conhost.exe processes are still not cleaned up.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Apr 9, 2026
  2. added
    bug
    windows-os
    on Apr 9, 2026
  3. msg7086 commented on May 1, 2026

    @msg7086

    Same, I'm seeing git process being called multiple times per second hogging resources. Windows 10.

    In my case it also calls git add -A, git add -u, git write-tree, git add -- files files... and git rev-parse. NON STOP.

  4. nobadwordss commented on Jun 5, 2026

    @nobadwordss

    I hit what looks like the same Windows Codex git/conhost churn issue, but with RAMMap evidence of kernel memory fallout.

    RAMMap snapshot after the event:

    • Page Table: 6.636 GiB
    • Driver Locked: 0.375 GiB
    • ProcessList entries in the .RMP snapshot: 210,410
    • git.exe entries: 138,169
    • conhost.exe entries: 69,607
    • Current live git.exe count after the event: 0
    • Current live conhost.exe count after the event: 4

    So the active process churn had already stopped, but RAM stayed around 24-25 GiB used because the Page Table bucket remained huge. This caused severe system/game freezing symptoms after FH6 launch, with GPU usage dropping to single digits.

    This seems more severe than normal CPU churn because the aftermath persists even after git.exe/conhost.exe are gone.

  5. yuzhiyang1 commented on Jun 5, 2026

    @yuzhiyang1

    Adding a source-level datapoint and a proposed mitigation branch from a Windows/HDD reproduction.

    Observed user impact:

    • Codex Desktop/CLI work against a large repository can drive disk usage to 100% on a mechanical HDD.
    • On older disks this can make the whole machine appear frozen, not just Codex.
    • The suspicious process activity is repeated Git metadata collection, especially git status --porcelain-style worktree scans.

    Source-level finding:

    • codex-rs/core/src/turn_metadata.rs collects WorkspaceGitMetadata for turns.
    • That path currently includes get_has_changes(cwd).
    • get_has_changes is implemented in codex-rs/git-utils/src/info.rs using git status --porcelain.
    • For large worktrees, and especially when run on an HDD, this can scan many small files and saturate disk I/O.
    • This metadata is useful, but it is not important enough to block a turn or make the app keep hammering the disk.

    Proposed mitigation:

    I prepared a branch that keeps commit hash and remote URL metadata, but makes only the has_changes signal best-effort with a short timeout. If git status does not return quickly, turn metadata simply omits has_changes instead of continuing to wait on a full worktree scan.

    Branch:
    https://github.com/yuzhiyang1/codex/tree/codex/throttle-git-metadata-on-hdd

    Compare:
    https://github.com/openai/codex/compare/main...yuzhiyang1:codex:codex/throttle-git-metadata-on-hdd?expand=1

    Testing performed locally:

    • cargo check -p codex-core --tests
    • just test -p codex-core turn_metadata_state_omits_has_changes_when_status_budget_expires
    • cargo fmt -p codex-core --check
    • just fix -p codex-core

    Note: I tried to open a PR from the fork, but GitHub returned GraphQL: yuzhiyang1 does not have the correct permissions to execute CreatePullRequest, so I am leaving the branch here for maintainers to inspect or cherry-pick.

  6. YooKyubin commented on Jun 6, 2026

    @YooKyubin

    I am seeing what appears to be the same class of issue on Windows with the Codex desktop app.

    In my case, opening or keeping a Git repository session active causes git.exe and conhost.exe to be spawned thousands of times per minute. ProcMon shows repeated git status --porcelain=v1 -z, rev-parse, remote, add -u, and write-tree commands with CODEX_SHELL=1. Some commands use a temporary Codex Git index via GIT_INDEX_FILE=<temp>\codex-index-...\index.

    The additional impact I observed is Windows Nonpaged Pool growth, with PoolMon growth in tags such as Proc, MiP2, PsIn, and EtwS.

    I filed a more detailed report here: #26812

  7. null0526 commented on Jun 15, 2026

    @null0526

    I can reproduce a very similar issue on Windows after restarting Codex Desktop.

    Environment

    • OS: Windows
    • Codex Desktop version: 26.609.41114
    • Workspace: Git repository at D:\ProjTerra
    • Repository state: one normal Git worktree only
    • No active Python test/runner was running when the screenshots were taken

    What I observe

    After restarting Codex Desktop, the problem is still reproducible.

    When the main Codex thread is focused, Task Manager shows roughly:

    • Codex (22)
    • Codex CPU: about 1.0%
    • Memory: about 841 MB
    • System CPU: about 16%

    When I switch away from that main thread / the thread is unfocused, Task Manager expands to roughly:

    • Codex (215) or previously Codex (269)
    • Codex group CPU: about 20-25%
    • System CPU: about 62-83%
    • Memory: about 1.0-1.46 GB
    • Many child processes appear, especially:
      • Git for Windows
      • conhost.exe
      • node_repl.exe
      • PowerShell / pwsh
      • multiple Codex helper/renderer processes

    When I focus the main thread again, the process tree shrinks back to a much smaller number of child processes and CPU drops.

    This makes the issue look less like normal UI rendering cost and more like background workspace/thread/runtime restoration triggering a burst of Git/process polling.

    Evidence from local checks

    I captured one of the Git commands being spawned:

    git.exe -c core.hooksPath=NUL -c core.fsmonitor=false status --porcelain
    Local checks from the repository:
    C:\Users\ml292.codex\worktrees
    is empty.
    git worktree list --porcelain
    shows only one worktree:
    worktree D:/ProjTerra
    branch refs/heads/codex/projterra-restructure-lab
    A single Git status call is not extremely slow:
    git -c core.hooksPath=NUL -c core.fsmonitor=false status --porcelain
    elapsed: about 178 ms
    So the high CPU does not appear to be caused by one slow Git command. It looks more like Codex Desktop repeatedly or concurrently spawning many Git status checks and console host processes.
    I also closed the only visible pending subagent record before restarting Codex. After a full Codex Desktop restart, the issue still reproduced, so this does not look like a stale project task or leftover test runner.
    Expected behavior
    Codex Desktop should not spawn hundreds of Git/console/runtime child processes just because the user switches focus or changes thread context.
    Workspace status polling should be throttled, deduplicated, cancellable, and child processes should be cleaned up promptly.
    Actual behavior
    Switching focus/thread context appears to trigger a large burst of Git/status/runtime process creation. This causes high CPU and makes the app difficult to use for long-running projects.
    Why this may be related to this issue
    This appears to match the issue description here: repeated Git status polling and many Git/conhost child processes on Windows.
    The additional detail in my case is that the process explosion is strongly correlated with focus/thread switching:
    focused main thread: Codex (22), low CPU
    unfocused/switched thread: Codex (215+), high CPU
    refocus main thread: process count drops again
    I can provide screenshots showing both states.

    Image Image
  8. VMescheryakov commented on Jun 26, 2026

    @VMescheryakov

    This should be treated as blocker severity for Codex Desktop.

    Reason:
    Codex Desktop is a coding agent whose primary workflow is opening Git workspaces. In affected workspaces, the app continuously spawns git.exe / git processes in the background while idle. On Windows, every spawned git.exe and the files it touches are inspected by Defender/corporate AV; on macOS, each git spawn can trigger Gatekeeper/code-signature checks via syspolicyd/trustd. This turns a background SCM watcher into a system-wide CPU/I/O storm.

  9. antonnevm-cloud commented on Jul 2, 2026

    @antonnevm-cloud

    This still appears reproducible on Codex Desktop 26.623.11225.0 on Windows. I opened #30926 with ETW/WPR evidence showing a link between repeated git.exe launches and Windows kernel Token / pool tag Toke growth.

    In a mostly-idle trace, Codex.exe started git.exe 263 times in ~54.6 seconds, mostly for:

    "C:\Program Files\Git\cmd\git.exe" -c core.hooksPath=NUL -c core.fsmonitor= rev-parse --show-toplevel
    

    The kernel stack for the corresponding Toke allocations goes through NtCreateUserProcess -> PspInitializeProcessSecurity -> SeSubProcessToken -> SepDuplicateToken. Closing Codex stopped new Token objects growth; reopening Codex resumed it.

  10. tstoppe89 commented on Jul 5, 2026

    @tstoppe89

    I can reproduce a very similar issue on Windows with the Codex desktop app: while Codex is open on a local Git repository, it spawns an extremely large number of git.exe and conhost.exe processes. In my case this does not only cause CPU/process churn; it also causes Windows kernel pool growth until physical memory is exhausted.

    codex-windows-git-polling-bugreport.md

  11. idk commented on Jul 10, 2026

    @idk

    Windows desktop app: ETW-confirmed runaway git rev-parse, hidden kernel-memory growth; CLI unaffected

    I reproduced what appears to be the same bug class on a current Windows desktop build, with a different repeated Git command and severe hidden memory growth.

    Environment

    • Windows 11 23H2, build 22631.6199, x64
    • Codex/ChatGPT desktop app: package build 26.707.3748.0; user-visible/plugin build 26.707.31428
    • Git for Windows
    • Standalone Codex CLI tested separately: 0.144.0-alpha.4

    Reproduction and process evidence

    With the desktop GUI open, the ChatGPT.exe host repeatedly launched:

    git.exe -c core.hooksPath=NUL -c core.fsmonitor= rev-parse --show-toplevel
    

    Each root Git process launched another git.exe and usually a conhost.exe.

    Windows Performance Recorder ETW traces showed:

    • 1,039 repeated rev-parse --show-toplevel process rows in one short capture
    • 1,113 total Git process rows
    • 567 conhost.exe rows
    • Every repeated root Git probe was a direct child of the same ChatGPT.exe host

    Restarting the desktop app changed the host PID but immediately reproduced the loop. Initializing the working directory as a Git repository did not stop it.

    Memory impact

    Physical memory rose to 97–99% after roughly 45–120 minutes with 3 codex windows open, while Task Manager's Processes page did not account for most of it. A high-memory Resident Set trace showed approximately:

    • 3.63 GB page tables
    • 3.82 GB working-set metadata
    • 2.69 GB nonpaged pool
    • 0.53 GB driver-locked system pages

    The PageTable category contained 1,548 git.exe instances and 816 conhost.exe instances. About 7.1 GB of page-table/working-set metadata was attributed to terminated/unknown process instances. A reboot was required to reclaim the stranded kernel memory.

    Desktop-vs-CLI validation

    After closing the desktop GUI and rebooting, I used only standalone Codex CLI. Two sparse snapshots about 12 minutes apart showed:

    Counter Start End Delta
    ChatGPT.exe 0 0 0
    Available memory 23,833 MB 23,723 MB -110 MB
    Committed bytes 9.032 GB 9.204 GB +0.172 GB
    Paged pool 0.294 GB 0.301 GB +0.007 GB
    Nonpaged pool 0.393 GB 0.397 GB +0.004 GB
    Process count 145 151 +6
    Resident git.exe 0 0 0

    Memory stayed near 25% during normal CLI use. This is sharply different from the GUI traces, where paged/nonpaged pools rose by roughly 0.17/0.19 GB in only five minutes and continued accelerating.

    Other causes checked

    • Reproduced with Task Manager closed
    • Restarting the desktop app did not help
    • The captured process trees did not contain the separate development-control application initially suspected

    Current workaround

    Keeping the Windows desktop GUI completely closed and using standalone Codex CLI avoids the observed process storm and memory growth. Closing only the window may not be sufficient if ChatGPT.exe remains in the background; I verify it is absent in Task Manager/PowerShell.

    I can provide redacted WPR ETL summaries or exact counter data if useful. The raw ETLs may contain local paths, so I would prefer guidance on the minimum artifact needed before uploading them publicly.

  12. yangyilun commented on Jul 13, 2026

    @yangyilun

    Their recorded parent PIDs no longer existed.
    Another 4 processes formed two outer/inner Git-for-Windows process pairs, executing:
    git ... ls-files --others --exclude-standard -z

    The remaining process was a transient repository probe:
    git rev-parse --show-toplevel

    The directly spawned Git wrapper processes were children of ChatGPT.exe, from the Codex desktop package version OpenAI.Codex_26.707.6957.0_x64.

    Process working-directory inspection showed:
    6 orphaned status workers running at one mapped-drive Android monorepository root.
    10 orphaned status workers running at another mapped-drive Android monorepository root.
    The opened Codex workspaces were narrower source/package directories, but the background Git commands were executed from the top-level monorepository roots.

    Several workers had remained alive for hours and continued accumulating CPU time.

    Project names, usernames and full local paths have been omitted from this report.
    Cleanup and respawn behavior
    I terminated 20 stale status / ls-files workers.
    Immediately afterward, Codex launched 3 replacement Git processes, including a new ls-files pair. The old heavy scans were cleared, but Codex continued periodically spawning short-lived rev-parse --show-toplevel probes.
    This confirms that the processes were being created by Codex background repository inspection rather than by a terminal command or a user-started Git operation.
    Installed application inspection
    Inspection of the installed Codex application's resources/app.asar shows that its Git runner:
    Adds -c core.hooksPath=NUL.
    Adds -c core.fsmonitor=false for these repository scans.
    Spawns Git with process-tree termination requested.
    Calls the child-process kill routine when an operation is aborted or times out.
    Runs both repository status collection and ls-files --others --exclude-standard -z for untracked-file discovery.
    The UI-side repository inspection code repeatedly invokes these operations to build Git status summaries.
    However, the observed Git-for-Windows process lineage showed that the outer executable under the Git cmd directory exited while the inner executable under mingw64\bin remained alive.
    This suggests that the current Windows process-tree cleanup does not reliably terminate the inner Git-for-Windows process after the outer wrapper exits. Once that happens, the remaining worker becomes orphaned and later refreshes can create additional workers.
    Likely contributing conditions
    The issue appears particularly easy to trigger when:
    A Codex workspace is located below a very large monorepository.
    The repository is accessed through a mapped Windows drive.
    Multiple Codex tasks or workspaces resolve to the same repository root.
    A full-root git status or untracked-file scan is aborted, times out, or is superseded by another refresh.
    Expected behavior
    Abort, timeout and application exit should terminate the complete Git-for-Windows process tree, including the inner mingw64\bin\git.exe process.
    Status scans resolving to the same repository root should be deduplicated.
    A previous scan should be cancelled and fully reaped before a replacement scan starts.
    Large or mapped-drive repositories should not cause unbounded full-root background scans.
    Codex should provide a supported setting to disable, debounce or limit background Git status/untracked-file scanning.
    Closing Codex should leave no orphaned git.exe or related console-host processes.
    I verified the command lines, process parent relationships, creation times, CPU accumulation and process working directories. I can provide a further sanitized process table if the maintainers need it.

  13. 0x-abdul commented on Jul 13, 2026

    @0x-abdul

    I can reproduce this class of issue on a newer Windows Codex desktop build, including persistent orphaned Git-for-Windows children and measurable memory/handle cost.

    Environment

    • Windows 11 Home, build 10.0.26200, x64
    • Codex Desktop package: OpenAI.Codex_26.707.8479.0_x64
    • Git for Windows: 2.53.0.windows.1
    • 16 GB physical RAM
    • Reproduced while the active Codex workspace was a non-Git directory

    Process evidence

    During active Codex use I observed approximately 60–67 surviving git.exe processes. Their command lines were Codex read-only metadata probes such as:

    git.exe -c core.hooksPath=NUL -c core.fsmonitor=false rev-parse HEAD
    git.exe -c core.hooksPath=NUL -c core.fsmonitor=false rev-parse --git-dir
    git.exe -c core.hooksPath=NUL -c core.fsmonitor=false remote -v
    git.exe -c core.hooksPath=NUL -c core.fsmonitor=false status --porcelain
    git.exe config --null --get core.fsmonitor
    

    Current probes could be traced from codex.exe through the Git-for-Windows wrapper. For the older surviving processes, the recorded parent PID no longer existed or had been reused. The oldest processes remained for more than seven minutes with near-zero CPU, mostly waiting in the Windows Executive wait state.

    At roughly 60 processes, the pool held about:

    • 2.0 GiB private committed memory
    • 427 MiB working set
    • 6,120 handles
    • 101 threads
    • only 0.77 accumulated CPU-seconds

    An identical manual rev-parse HEAD invocation from the same non-Git workspace exited in 35 ms, while the Codex-launched copies remained alive.

    User impact

    With the larger pool present, the 16 GB machine showed about 73% commit use, 922 MB in Windows memory compression, pagefile use, and page-read spikes up to roughly 140/sec. Closing other Codex sessions improved responsiveness but did not return the machine to post-reboot behavior. The user also reports that a complete Codex quit during an update did not clear the already-orphaned Git processes; restarting Windows did.

    Expected behavior

    Read-only metadata probes should have a bounded timeout and their complete Git-for-Windows process tree should be reaped when the request is cancelled, superseded, or the app exits. A failed/non-Git workspace probe should exit promptly rather than leave the inner mingw64\bin\git.exe process behind.

    I can provide a sanitized process table or additional counter sampling if maintainers need it. Usernames, repository names, and full local paths have been omitted.

  14. 10 remaining items

  15. Mavumavu commented on Jul 19, 2026

    @Mavumavu

    Additional quantified reproduction on Codex Windows desktop 26.715.4045.0, with a valid Git repository and a visible Not Responding UI state.

    Environment

    • Codex MSIX package: OpenAI.Codex_26.715.4045.0_x64
    • Desktop executable product version: 150.0.7871.124
    • Windows 10 Pro 22H2, build 19045.6456, x64
    • Git for Windows: 2.54.0.windows.1
    • Native Windows workspace on a local drive
    • The workspace is a valid private Git repository. Its name, remote, paths, and contents are intentionally omitted.
    • No WSL process was running and WSL_DISTRO_NAME was absent.

    Visible reproduction

    A 21-second local recording shows this sequence:

    1. Launch Codex.
    2. The sidebar and local project list load normally.
    3. The empty project overview appears; no conversation is opened.
    4. At approximately 15 seconds, the window title changes to ChatGPT (Not Responding).
    5. The UI remains frozen through the end of the recording.

    The recording is not attached publicly because it contains private project names and conversation titles. I can provide sanitized diagnostics through an appropriate private support channel.

    Git process evidence

    Codex repeatedly creates the following read-only metadata probes:

    git.exe -c core.hooksPath=NUL -c core.fsmonitor=false rev-parse HEAD
    git.exe -c core.hooksPath=NUL -c core.fsmonitor=false rev-parse --git-dir
    git.exe -c core.hooksPath=NUL -c core.fsmonitor=false remote -v
    git.exe -c core.hooksPath=NUL -c core.fsmonitor=false status --porcelain
    git.exe config --null --get core.fsmonitor
    

    The immediate parent PIDs had already exited when sampled. The retained Git processes were idle, normally had one thread in Wait / Executive, used about 5.7 MB working set each, and held 93 handles each.

    Observed progression:

    • First cleanup: 39 confirmed orphaned read-only metadata probes were terminated. Within about eight seconds the main desktop process changed from Responding=False to Responding=True.
    • Later recurrence: six confirmed orphan probes were present; the main process moved from Responding=False to Responding=True during a 15-second sample without user interaction.
    • The count subsequently grew from 6 to 15 while Codex remained open.
    • A later conservative snapshot found 16 candidates. All 16 were at least five seconds old, had missing parents, and showed no CPU delta during a five-second sample.
    • Those 16 processes accounted for approximately 90.8 MB working set, 537.8 MB private memory, and 1,488 handles.
    • After terminating only those 16 verified candidates, three new matching probes had already appeared eight seconds later. In that later sample the main UI process still reported Responding=False, so cleanup is temporary and does not recover every freeze.

    No active Git operation was terminated. Candidate selection used an exact read-only command allowlist, a missing-parent check, a minimum age, and a zero-CPU gate.

    Repository and Git differential checks

    The same commands complete normally when run outside Codex in the same repository:

    Command Exit Duration
    rev-parse HEAD 0 30.4 ms
    remote -v 0 18.0 ms
    status --porcelain 0 23.4 ms
    config --null --get core.fsmonitor 1 (unset, expected) 18.8 ms

    This makes an intrinsically slow repository or broken Git installation unlikely.

    Remediation already attempted

    • Repaired the installed app.
    • Uninstalled and reinstalled the Codex app twice.
    • Installed all available Windows updates and rebooted.
    • Rotated an oversized local diagnostics database and let Codex create a fresh one.
    • Rebuilt the local Codex state/index from a reversible backup and quarantined old rollout history without deleting it.
    • Started with a much smaller live history/state set.
    • Confirmed the repository itself and the exact metadata commands are fast.

    The hang still reproduces immediately after launch. The history/database cleanup reduced local state substantially but did not resolve this failure.

    Current interpretation

    High confidence: this is an app-side Windows child-process lifecycle, cancellation, or reaping failure around repeated Git metadata probes. Git itself and repository latency do not appear to be the bottleneck.

    Moderate confidence: orphan-process/handle accumulation materially contributes to the renderer/UI hang. One cleanup directly coincided with recovery from Responding=False to True, but a later cleanup did not immediately recover the UI, so I cannot claim it is the only cause.

    Possible secondary factor: the Chromium renderer/GPU process also consumed CPU during a freeze. A --disable-gpu launch remains a useful differential test, but the repeated orphaned Git probes are independently confirmed.

    The Windows process-tree cleanup proposed in #30428 appears consistent with this reproduction: on timeout or cancellation, retain and reap the wrapper, terminate the full Windows child tree (for example with the established taskkill /PID <pid> /T /F pattern), and avoid overlapping metadata refreshes. Short-TTL deduplication/backoff for repository metadata probes would also limit recurrence. I am not claiming this is definitively the complete fix.

    Questions for maintainers

    1. Is the Windows process-tree cleanup proposed in Windows app stutters when switching chats or opening Settings #30428 expected to address the orphan mechanism tracked here?
    2. Is there currently a supported feature flag or configuration to disable or back off background Git metadata polling on Windows?
    3. Can support provide a private upload route for the recording and sanitized diagnostics if needed?
  16. yemerablue-ui commented on Jul 20, 2026

    @yemerablue-ui

    Reproduced on Windows with Codex Desktop 26.715.4045.0, ChatGPT/Chromium 150.0.7871.124, and bundled Codex CLI 0.145.0-alpha.18.

    I observed repeated orphaned git.exe processes using these commands:

    • git.exe -c core.hooksPath=NUL -c core.fsmonitor=false rev-parse HEAD
    • git.exe -c core.hooksPath=NUL -c core.fsmonitor=false remote -v
    • git.exe -c core.hooksPath=NUL -c core.fsmonitor=false status --porcelain
    • git.exe config --null --get core.fsmonitor

    This also reproduced from a non-Git workspace under C:\Users\<user>\Documents\...: 8–20 Git processes accumulated, their parent processes had exited, and the Git processes remained alive. Over an 8-second delta measurement, each stuck process showed 0 CPU-time delta, 0 read bytes, and 0 write bytes; the threads were waiting, mostly with WaitReason=Executive.

    Running the same commands manually from the same directory completed in 23–30 ms and returned exit code 128 with not a git repository. Only the processes started through Codex Desktop remained stuck. Killing the known probe processes reduced the count to zero, but a later user turn spawned eight again. No public or experimental feature flag in codex features list appeared to disable this Git probing.

    Windows Error Reporting also recorded AppHangTransient events for ChatGPT.exe. This looks like the same child-process cleanup/polling bug reported here, still reproducible in 26.715.4045.0.

  17. Mavumavu commented on Jul 20, 2026

    @Mavumavu

    Follow-up with two important differential results from the same Windows reproduction:

    --disable-gpu does not prevent the hang

    Codex was launched through the packaged-app activation API with --disable-gpu. Process inspection confirmed the switch on the main desktop process and renderer processes.

    The desktop still entered Responding=False. During a five-second frozen-state sample:

    • main window process: 0.000 s CPU delta;
    • measured main-process threads: 0.000 s CPU delta and waiting;
    • GPU process: approximately 0.781 s CPU delta;
    • busiest renderer: approximately 0.078 s CPU delta.

    Windows Application log contains five formal event ID 1002 hangs for ChatGPT.exe version 150.0.7871.124 during the investigation period.

    Windows Wait Chain Traversal, captured during a short responsive interval, reported the window thread as blocked but found no supported multi-node chain or deadlock cycle. This does not identify the waiting Chromium/Electron IPC path, but it rules out a simple WCT-visible mutex/COM cycle in that sample.

    The UI can hang with zero orphaned Git probes

    A bounded 45-second monitor kept a strict count of the known orphaned Git metadata probes. The main window changed from responsive to non-responsive while the orphan count remained zero throughout the measured period.

    This means the orphaned Git lifecycle bug is real and independently reproducible, but it is not sufficient to explain every desktop UI hang.

    Remote versus Windows delivery

    While the Windows window remained Not Responding, the remote/mobile client sometimes displayed newly generated text first. Approximately ten seconds later, the Windows client rendered the same text in a batch, remained usable briefly, and then returned to Not Responding after roughly five seconds.

    This suggests two layers:

    1. the shared response/event stream continues to advance;
    2. the Windows desktop main process intermittently fails to process or render those events.

    The active long-running thread has a local rollout of approximately 31.2 MB and 10,267 JSONL records. This may amplify event/rendering cost, but I cannot claim it is the root cause because earlier hangs also occurred on the empty project overview.

    Current confidence:

    • high: Windows desktop process/UI lifecycle bug;
    • high: separate Windows Git child-process cleanup bug;
    • moderate: long-thread/status-event processing amplifies the desktop hang;
    • low: GPU acceleration is the primary cause.
  18. Mavumavu commented on Jul 20, 2026

    @Mavumavu

    Additional isolation results from the same Windows reproduction. No private workspace names, paths, repository contents, screenshots, or configuration values are included.

    Clean renderer profile does not resolve the hang

    The entire per-user Codex renderer profile was moved to a timestamped recovery location and Codex regenerated a fresh profile. The app still became visibly Not Responding approximately 3–4 seconds after launch, including on the project overview.

    This makes corrupted Chromium cache/storage and the old renderer profile unlikely to be the primary cause.

    Fresh central Codex configuration does not resolve the hang

    The existing ~/.codex/config.toml was reversibly isolated and Codex generated a new default configuration.

    • old configuration size: 14,379 bytes;
    • fresh generated configuration size: 2,350 bytes;
    • the old configuration inventory included 75 project sections, 9 plugin sections, 4 MCP roots, hooks, and custom UI configuration;
    • the visible desktop hang still occurred immediately with the fresh configuration.

    Sessions, authentication, repositories, and project files were not deleted for this test.

    This makes the project registry, plugin/MCP startup configuration, hooks, and the prior custom configuration unlikely to be the root cause.

    Additional negative differentials

    • WinINET user proxy: disabled;
    • PAC URL: absent;
    • HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, and NO_PROXY: absent;
    • WinHTTP proxy: direct access;
    • no common VPN/proxy process was present;
    • Windows was fully updated and rebooted before retesting;
    • app repair and two uninstall/reinstall cycles did not resolve it.

    Main-thread and Git cleanup result

    Windows Wait Chain Traversal identified the visible desktop process's UI thread as blocked, but returned a one-node chain with no supported multi-node wait dependency or deadlock cycle.

    In a clean-profile run, 20 conservatively identified orphaned, inactive, read-only Git metadata probes were terminated. The WCT result remained identical immediately afterward: the same UI thread stayed blocked and the visible app remained frozen.

    Together with the earlier 45-second sample in which the UI transitioned to non-responsive while the orphan count stayed zero, this confirms:

    1. the Windows Git child-process cleanup bug is real;
    2. it is not sufficient to explain this desktop UI hang.

    Remote/client differential

    The mobile Remote client continues to receive generated output promptly while the Windows desktop remains frozen. The Windows client later renders accumulated text in a batch, is briefly usable, and freezes again. The agent/backend therefore continues progressing while the Windows desktop main/render path stalls.

    Current interpretation

    • High confidence: app-side Windows desktop main-thread, renderer IPC, or event-delivery/processing regression in desktop package 26.715.4045.0 / executable 150.0.7871.124.
    • High confidence: a separate orphaned Git subprocess lifecycle bug is also present.
    • Low confidence: GPU, proxy/VPN, repository latency, renderer cache/profile corruption, or the old config.toml is the primary cause.
    • Not yet proven: the exact native wait inside the closed-source desktop process.

    I am attempting a local non-invasive WinDbg stack capture. Any dump or potentially sensitive diagnostics will remain local unless maintainers/support provide a private upload route and confirm exactly what is needed.

    Could maintainers provide one of the following?

    1. a private diagnostic upload route;
    2. the preferred hang-dump/WPR capture procedure for this packaged desktop build;
    3. confirmation whether a newer internal desktop build contains Windows main-thread/event-delivery fixes beyond the Git child-process work;
    4. a supported way to disable workspace restoration/background project scanning as a temporary diagnostic workaround.
  19. Mavumavu commented on Jul 20, 2026

    @Mavumavu

    Case-specific resolution and corrected root-cause evidence from the same Windows reproduction. This contains no private workspace names, paths, repository contents, screenshots, or configuration values.

    Correction to my previous isolation result

    Resetting ~/.codex/config.toml did not reset the separate .codex-global-state.json workspace/UI state. Therefore my earlier statement that the fresh configuration made workspace restoration unlikely was too broad. It ruled out config.toml, plugins/MCP configuration, hooks, and related settings, but not the persisted desktop workspace registry.

    Strong differential: global workspace state

    Reversibly isolating .codex-global-state.json had two simultaneous effects:

    1. all locally restored projects disappeared from the Windows sidebar;
    2. the recurring Not Responding hang stopped.

    The same projects/chats remained visible through the Remote client, confirming that this was local Windows desktop state rather than account/project deletion.

    A historical automatic state snapshot contained 20 saved workspace roots. Because this machine had previously been migrated from another Windows user/profile and between drives:

    • 14 saved roots used logical paths below the old Windows profile;
    • those 14 paths resolved through directory junctions from the system drive to a second drive;
    • all 20 directories existed;
    • all final targets were unique;
    • direct one-shot filesystem/Git probes were fast.

    So this was not a missing-directory or intrinsically slow-repository problem. The risky condition was restoring logical workspace identities that traversed an old-profile, cross-volume junction topology.

    Recovery performed

    I built a selective replacement state from the current clean/stable state and the historical project registry:

    • imported all 20 project roots and necessary project/sidebar/thread mappings;
    • replaced the 14 old-profile aliases with their direct canonical target paths;
    • retained 6 projects that genuinely live on the system drive;
    • excluded bulky historical persisted UI atoms, prompt history, heartbeat/permission cache, drafts, output-directory state, and queued follow-up state;
    • did not change config.toml;
    • did not move, copy, edit, or delete any repository/project files;
    • created a rollback copy before applying it.

    Post-application validation:

    • 20 registered roots, 20 existing, 20 unique;
    • 0 registered old-profile aliases;
    • direct root distribution: 6 on the system drive, 14 on the second drive;
    • all projects and this long-running thread became visible again in the Windows sidebar;
    • no recurring Not Responding state observed afterward.

    A 30-second health sample showed stable aggregate working set around 1.07–1.11 GB, near-zero CPU while idle, no growing handle/process trend, and zero new WER event-ID-1002 hangs. A later check showed zero git.exe processes and zero WER hangs in the preceding 15 minutes.

    As a heavier validation, a bounded local audit scanned 23,067 text/configuration files across all 20 registered roots over several minutes while the desktop app remained usable. The user continued typing and receiving streamed responses in the Windows app without another Not Responding transition.

    For this machine, canonicalizing the persisted workspace roots and rebuilding only the minimal workspace/sidebar state appears to have resolved the desktop hang. I am not claiming this is the universal cause of every hang reported in this issue.

    Likely mechanism (inference, not proven native stack evidence)

    The strongest current hypothesis is that desktop startup/restoration treated logical junction paths and canonical target paths as distinct or repeatedly reinitialized identities. That may multiply or invalidate filesystem watchers, Git metadata refreshes, workspace/thread subscriptions, or renderer events. Once persisted state crossed a threshold, replaying it on each launch caused the Windows main/render path to stall approximately 3–4 seconds after startup.

    This is consistent with another report here correlating focus/thread switching with background workspace/runtime restoration bursts. It also explains why reinstalling the app did not help: the per-user global state survived. However, the exact closed-source Electron/Chromium wait path remains unproven.

    Separate Git lifecycle issue remains real

    The earlier orphaned git.exe metadata probes remain independently reproduced. Canonical state recovery stopped the observed UI hang even though earlier samples proved the UI could hang with zero Git orphans. Therefore:

    • canonical workspace restoration fixed this user's recurring UI hang;
    • Git child-process cancellation/reaping and metadata throttling still need product fixes;
    • a short timeout for git status --porcelain is useful, but is unlikely to cover the full UI failure mode by itself.

    Product feedback / suggested safeguards

    1. Canonicalize and deduplicate Windows workspace roots by final path/volume identity before registering watchers or Git metadata work.
    2. Detect roots that traverse an old user-profile junction or cross-volume reparse point and show a migration/review prompt instead of silently restoring them.
    3. Restore workspaces progressively and keep one problematic root from blocking the desktop UI thread.
    4. Add a supported “start without workspace restoration” safe mode and a “reset only workspace/sidebar state” action that preserves authentication, sessions, config.toml, and project files.
    5. Bound, deduplicate, cancel, and back off Git metadata probes; on timeout/cancellation, reap the full Windows child process tree.
    6. Expose a privacy-safe diagnostic summary: logical root count, canonical unique root count, reparse/cross-volume root count, watcher/subscription count, and active metadata probes.
    7. Apply size/count limits and compaction to persisted UI atoms so a large historical desktop state cannot indefinitely replay into the renderer.
    8. During uninstall/reinstall or repair, explain that per-user workspace state is retained and offer an explicit, reversible reset option.

    I am leaving the issue open because the local recovery is a workaround for a desktop state-restoration failure that the app should detect and handle safely.

  20. Mavumavu commented on Jul 21, 2026

    @Mavumavu

    Fresh recurrence of the separate Git child-lifecycle bug after the case-specific workspace-state workaround had stopped the recurring UI hang.

    Observation window: 2026-07-21 13:55-13:57 Europe/Brussels. The Windows desktop remained responsive during this sample.

    • At 13:55:00, git.exe count was 0.
    • At 13:56:19, count was 8 during a read-only Codex review task.
    • Five PIDs remained alive and unchanged from 13:56:31 through 13:57:03. Each showed 0 CPU-time delta over both an 8-second and a subsequent 10-second interval.
    • At 13:57:30, six git.exe processes were live. A single parent-lifecycle snapshot found that all six recorded parent PIDs no longer existed.
    • Three of those six were the same long-lived PIDs first observed roughly a minute earlier; each had 0 cumulative CPU and one thread.
    • The other three had been created seconds earlier and had already lost their parents, showing that new orphan candidates continued to appear while older ones remained.
    • npm and npx counts were 0. No process was terminated during this observation.

    For privacy, this follow-up did not inspect or publish command lines, workspace names, paths, repository identity, or file contents. Earlier comments on this issue already established the exact read-only metadata-probe command family.

    This strengthens the distinction from the case-specific renderer fix: canonicalizing the persisted workspace roots appears to have fixed the recurring Not Responding loop on this machine, but it did not fix the independent Windows Git cancellation/reaping defect. The orphan mechanism can recur during ordinary read-only review work even while the UI remains responsive.

    Suggested product action remains: on cancellation or timeout, retain enough wrapper ownership to reap the full Windows child tree; deduplicate/back off overlapping metadata refreshes; and expose a privacy-safe active/orphan probe count for diagnosis.

  21. suiyuebaobao commented on Jul 22, 2026

    @suiyuebaobao

    The repeated git status plus orphaned git.exe/conhost.exe behavior here closely matches my reproduction.

    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 new git.exe and 137 new taskkill.exe processes 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.

  22. Mavumavu commented on Jul 22, 2026

    @Mavumavu

    Fresh host-wide wake/dispatcher recurrence after the case-specific Windows renderer hang had remained resolved.

    Observation: 2026-07-22, approximately 15:24-15:54 Europe/Brussels.

    • A long-running local Codex task had three read-only subagent results become available, but the parent task stopped visibly progressing and emitted no new update for roughly 30 minutes.
    • The Windows app itself was not in a classic Not Responding crash state during the check.
    • The user opened a different Codex task and submitted a prompt there.
    • Immediately after that unrelated prompt, both the newly prompted task and the previously stalled task resumed work.
    • The user has observed the same pattern on earlier occasions: returning to the PC and prompting any task causes CPU/fans and pending Codex work to “wake up.” Remote control may also be unable to connect while the host is in the dormant state, then resumes after a local prompt.

    Safe diagnostics immediately after wake:

    • git.exe: 0
    • gh.exe: 0
    • npm/npx: 0
    • Codex/ChatGPT processes reported Responding=True
    • no new Windows Application Hang / WER event was present in the preceding two-hour window
    • one Codex process consumed CPU after wake, consistent with work resuming

    This does not prove a native root cause. It does show that this recurrence is not explained by a live Git/npm command or a newly recorded renderer hang. It looks like a separate host-wide background dispatch / wake / heartbeat issue: queued agent completion or parent continuation may stop being scheduled until any foreground user turn wakes the shared host.

    Suggested product checks:

    1. Parent tasks should be re-enqueued when a subagent completes, independent of foreground UI input.
    2. Add a watchdog for an active task with completed child work but no parent scheduling/progress event.
    3. Keep remote-control connectivity/heartbeat independent from foreground turn submission.
    4. Expose a privacy-safe diagnostic counter for queued turns, runnable turns, last scheduler wake, and last host heartbeat.
    5. Treat a prompt in another task waking all pending work as a reportable scheduler anomaly.

    This appears separate from the orphaned Git child-process lifecycle bug documented elsewhere in this issue, although both may share app-host lifecycle or cancellation infrastructure.

  23. Mavumavu commented on Jul 22, 2026

    @Mavumavu

    Additional Windows evidence after updating to Codex Desktop package OpenAI.Codex_26.715.10079.0_x64 (ChatGPT/Chromium file version 150.0.7871.124):

    • An active long-running task stopped making progress for roughly two hours. A task-bound heartbeat configured for every 5 minutes also produced no visible continuation.
    • The bounded System-log window shows no sleep/resume transition before the failure. At 2026-07-22 18:29:50 +02:00, Windows Application log recorded Event ID 1002 (Application Hang) for ChatGPT.exe, and WER Event ID 1001 with Event Name: MoAppHang; Windows reports that the program stopped interacting and was closed.
    • At the same timestamp, AppModel-Runtime Event ID 217 destroyed the Codex Desktop AppX container.
    • Windows initiated a full shutdown at 18:30:17 and booted again at 18:30:36; a fresh Codex AppX container/process was then created at 18:31:08. This reboot is part of the recovery timeline and limits causal inference from post-hang network events, but the MoAppHang preceded shutdown by roughly 27 seconds.
    • After reopening/interacting, multiple previously stalled tasks resumed/woke together.
    • At recovery, no git, gh, npm, or npx process was running; the repository index and local commit state were unchanged. This recurrence therefore was not a long-running project command.
    • Mobile/remote availability and task heartbeats cannot be relied on while the Windows host is in this state, because they appear to depend on the same hung AppX/renderer host. The in-app heartbeat has since been paused because it cannot recover its own failed host.

    This materially strengthens the whole-host/renderer-liveness hypothesis rather than a per-task Git-probe-only stall. A robust fix may need the task scheduler/heartbeat and remote-host liveness to run outside the renderer lifecycle, plus a watchdog that detects MoAppHang, preserves queued task/subagent completions, and safely restarts/re-enqueues the host. Privacy-safe diagnostics showing last scheduler tick, pending task count, renderer event-loop lag, and restart reason would also make this diagnosable without exposing project data.

  24. alimohajer commented on Jul 24, 2026

    @alimohajer

    Additional Windows recurrence on 2026-07-23 with installed Codex Store package 26.721.3404.0 on Windows 11 build 26200.

    Review and process timeline

    A review ran first as one single-agent session and then as one root session with three subagents. After all review sessions had completed, 53 git.exe processes remained alive.

    Their start times clustered with the review lifecycle:

    • 1 process at approximately 21:53 CDT, aligned with the initial review
    • 10 processes at approximately 22:27 CDT, aligned with the root multi-agent review
    • 42 processes at approximately 22:31-22:32 CDT, aligned with the three subagent starts

    All 53 recorded parent PIDs no longer existed. Their threads were in Wait / Executive; CPU use was near zero. Collectively they occupied approximately 344 MB working set and 1.80 GB private bytes.

    The command family was limited to read-only repository probes:

    git -c core.hooksPath=NUL -c core.fsmonitor=false status --porcelain
    git -c core.hooksPath=NUL -c core.fsmonitor=false rev-parse --git-dir
    git -c core.hooksPath=NUL -c core.fsmonitor=false rev-parse HEAD
    git -c core.hooksPath=NUL -c core.fsmonitor=false remote -v
    git config --null --get core.fsmonitor
    

    The review-session records did not contain these Git commands as model-issued tool calls. Their timing and command family are consistent with app or repository-inspection machinery.

    Cleanup targeted only dead-parent git.exe processes matching those commands. The count fell from 53 to 0, and delayed checks remained at 0.

    This is the same Windows Git-child cleanup failure reported here, with additional evidence that root-plus-subagent execution can multiply the retained probes. The process-tree behavior is also relevant to #34614.

    A pre-existing empty workspace-root .git directory was present during cleanup. It contained no entries and no HEAD, config, index, or lock, and was renamed. I did not capture the process that created it in this recurrence, so I am not attributing its creation; the instrumented empty-.git reproduction is documented in #32324.

    No repository identity, workspace path, project data, prompts, or client information is included here.

  25. zoomerland commented on Jul 25, 2026

    @zoomerland

    I ran a controlled Windows follow-up with one active Codex Desktop task and no subagents/parallel tasks, instrumenting process lifecycle rather than relying on a Task Manager snapshot.

    In a 45-minute window (15-second full-process-table polling because CIM process-start tracing was unavailable, so the observed start count is a lower bound):

    • 139 distinct git.exe processes were observed; peak concurrency was 12.
    • Peak Git private memory was 372.2 MB and peak Git handles were 1,128.
    • 139 exits were observed; 2 were watchdog terminations, with 0 failed actions and no safety suspension.
    • Available memory stayed between 9.89 and 10.81 GB and system commit stayed between 78% and 80%, so this particular short run did not show a system/user-mode memory leak.

    The useful lifecycle distinction was:

    • One Codex-style remote -v probe and one config --null --get core.fsmonitor probe remained alive for about 309 seconds and 21 CPU/I/O-stable samples. Their parents were missing. They passed the remaining strict gates and final native identity revalidation (PID creation time, executable path, owner SID), then were terminated successfully.
    • Two status --porcelain probes remained alive for about 349 seconds, but were deliberately never termination candidates (Tier B / display-only). Both exited naturally.

    That supports a cancellation/reaping defect affecting a subset of read-only probes; it does not support killing every old Git process.

    I published the experimental PowerShell 7 watchdog and live dashboard here:

    https://github.com/zoomerland/codex-git-watchdog

    The core script defaults to Observe. Containment is opt-in and limited to an exact Tier A allowlist plus age, repeated CPU/I/O stability, dead/reused parent, no children, same owner/session, allowed workspace, no index.lock, action caps, and final native identity checks. Existing-at-start probes can be considered only through explicit delayed-adoption switches. Unknown commands and Codex-style status --porcelain are never terminated automatically.

    The dashboard reads JSON/JSONL logs live, supports time ranges, and has English/Russian UI. Personal paths are blurred in this screenshot:

    Redacted Codex Git Watchdog dashboard

    This is a reactive diagnostic/containment aid, not an upstream fix; it does not prevent Codex from spawning the probes.

  26. Evan-Haug commented on Aug 31, 2026

    @Evan-Haug

    Root cause for the orphaned git.exe half of this thread, filed separately as #41783 so it does not get lost in a long report.

    I attached cdb non-invasively to six orphans that had been alive 6.8 hours. All six had the identical stack, and it is not what most of us assumed:

    ntdll!NtQueryObject+0x14
    git+0x285702
    git+0x2864d7
    git+0x284647
    git+0x12ef      <- wmain
    

    That is detect_msys_tty() in git-for-windows compat/winansi.c, called from winansi_init() during startup. Identified from the call site (mov edx,1 = ObjectNameInformation, mov r9d,3FEh = its 1024-byte buffer minus 2). It runs against fd 0/1/2 whenever the handle is a pipe. NtQueryObject on a wedged pipe handle never returns and the wait is not alertable.

    So the process is frozen before main(). That explains the things several people here measured but could not account for: the 0 CPU-time deltas, the survival past app exit, and why no timeout reaches them. It is not aggressive polling and it is not a blocked stdout write.

    Practical consequence for anyone cleaning up: the signature is that all four of KernelModeTime, UserModeTime, ReadOperationCount and WriteOperationCount are exactly 0 and never move, while any git doing real work shows hundreds to thousands of reads within milliseconds. That distinguishes a wedged process from a slow-but-working one, which a plain age-or-parent-gone check does not.

    One correction to something I see assumed upthread, including by me at first: on a stock Git for Windows install git resolves to the cmd\git.exe shim, which spawns mingw64\bin\git.exe as a child. The process that hangs is a grandchild, so cleanup that reaps only the direct child cannot reach it. Details and the two candidate gaps in the Codex spawn paths are in #41783.

  27. Evan-Haug commented on Aug 31, 2026

    @Evan-Haug

    Addendum to my earlier comment, after tracing the producer. Not repeating the stack; this is only what is new.

    Which code path launches the processes that end up orphaned.

    TurnMetadata::fetch_workspace_git_metadata in codex-rs/core/src/turn_metadata.rs, called from spawn_git_enrichment_task:

    let (head_commit_hash, associated_remote_urls, has_changes) = tokio::join!(
        get_head_commit_hash(&self.cwd),
        get_git_remote_urls_assume_git_repo(&self.cwd),
        get_has_changes_in_repo(&self.cwd, repo_root),
    );

    That is rev-parse HEAD, remote -v, and the status path (with its config --null --get core.fsmonitor probe in front), fanned out concurrently once per enrichment round. It accounts for all six of the orphans I debugged, and for the command list in #29110. So the status --porcelain in this issue's title is one arm of a three-way concurrent fan-out, not a standalone poller.

    A cancellation path, distinct from the timeout path.

    cancel_git_enrichment_task calls task.abort(). That drops the in-flight futures and with them the KillGitProcessTreeOnDrop guard in codex-rs/git-utils/src/git_process.rs.

    That guard has an impl Drop only under #[cfg(unix)], where it calls kill_process_group. There is no #[cfg(windows)] impl Drop. So on Windows an aborted enrichment task relies on the JobObject handle drop plus tokio's kill_on_drop(true) — and as covered in my earlier comment, kill_on_drop reaps only the direct child, which on a stock Git for Windows install is the cmd\git.exe shim rather than the mingw64\bin\git.exe grandchild that actually wedges.

    Being fair to the code: spawn_git_command does job-contain on its success path, so I am not claiming this is outright broken. The question is narrower: on Windows, does dropping that JobObject actually terminate the job (is JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE set on it), and does that hold on the abort() path as well as the timeout path? If yes, the remaining exposure is the uncontained Err(_) fallback in spawn_git_command and any spawn path that does not go through it at all — the app-server WorkspaceCommand path being the one I could not verify. I could not settle this from the published source, so it is an ask, not an accusation.

    For anyone here cleaning up manually. The wedged processes are safe to kill: they are blocked before their first file read, so there is nothing to lose. The gate I use is all four of KernelModeTime, UserModeTime, ReadOperationCount, WriteOperationCount exactly zero, plus an age threshold, plus no live child. That last clause matters — a cmd\git.exe shim parked waiting on a real working git also reads as zero-work, and killing it would orphan live work.

    Full detail and the current state of the three candidate gaps: #41783.

  28. merrymaker14 commented on Sep 13, 2026

    @merrymaker14

    I am experiencing a severe recurrence on Codex Desktop 26.908.4834.0 (Windows 11 25H2, build 26200.9445, 32 GB RAM) on September 13–14, 2026. It repeatedly freezes the entire computer and has required many reboots. The mouse can still move initially, but switching the focused window can coincide with the freeze. It also happens with Unity and Blender closed.

    A local logger using Windows Toolhelp process snapshots and GetPerformanceInfo captured the following (UTC+08:00):

    • 2026-09-13 23:39:31: 10,470 processes in total, including 10,199 git.exe. 6,001 git.exe processes had codex.exe PID 17704 as their immediate parent; other Git processes were descendants or had already-exited parents.
    • 23:39:42: 11,449 total processes, including 11,174 git.exe; 6,701 were immediate children of the same codex.exe.
    • In the preceding run, 23:31:38: 18,623 total processes, 1,945,267 handles, committed memory 75,323 / 75,728 MiB, available physical memory only 34 MiB, paged kernel memory 15,301 MiB.

    Windows subsequently reported VIDEO_MEMORY_MANAGEMENT_INTERNAL (0x10e, parameter 0x2d), bucket nvlddmkm!LDDM_MapCpuHostAperture. I am reporting this as an associated failure, not proof that NVIDIA is the root cause. The process explosion and memory exhaustion are directly measured.

    Git resolves to C:\Program Files\Git\cmd\git.exe (Git for Windows 2.55.0.3). I have stopped heavy workloads and am manually terminating the runaway Git processes. Is there a supported way to disable background Git metadata/snapshot collection while this is investigated? I can supply a redacted process timeline. Repository content, credentials and memory dumps are not included here.

  29. merrymaker14 commented on Sep 13, 2026

    @merrymaker14

    Follow-up with a live capture and a much narrower source match.

    During normal work, my temporary Windows Job limit filled with 64 processes, including 60 git.exe: 30 cmd/git.exe → mingw64/bin/git.exe pairs. All 30 commands had this exact shape, against different untracked project assets:

    git -c safe.bareRepository=explicit -c core.hooksPath=NUL -c core.fsmonitor=false diff --no-textconv --no-ext-diff --binary --no-index -- NUL <untracked-file>

    This matches diff_against_sha in the current public source: it maps every untracked file to a subprocess future and calls join_all(futures_iter), without a concurrency bound. The lower-level five-second timeout does not bound the initial fan-out. Large asset-heavy workspaces can therefore be especially exposed.

    The captured real Git children were already 45–48 seconds old, had nonzero CPU/read counters, and several showed exactly 65,536 bytes written. This particular recurrence is not the zero-work/pre-main signature in #41783. Pipe backpressure is a hypothesis; I have not captured their thread stacks. I also have not established that public main exactly matches my installed desktop backend.

    Could this path use bounded concurrency (and ideally a shared limit across concurrent requests), with regression coverage for many untracked files, cancellation and descendant cleanup? The process cap contained this recurrence but also temporarily blocked normal command launches with OS1816.

    This is additional evidence, not a claim of a verified application fix. No intentional stress test was run.

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

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions