Skip to content

[Windows desktop] Resuming chat spawns hundreds of binary git diff processes, escalating handles and PC crashes #55051

Open

Description

@Ver-zz-ato

Summary

Codex Desktop on Windows repeatedly destabilises the entire PC when an existing, long-lived chat is resumed. Captured evidence shows hundreds of background Git binary-diff processes and rapidly increasing Codex handles/descendants. In the best-documented incident, the resumed agent issued no Git command before the surge.

Possibly related to #53910: the captured per-file git diff --binary --no-index command pattern matches that report. This report concerns Windows desktop, not a verified Linux zombie leak, and does not establish the same underlying defect.

Environment

  • Windows 11; approximately 32 GB RAM.
  • Codex Desktop, existing local Unity game repository with many image assets.
  • Exact incident-time desktop/backend/Git versions were not captured in the available audit; no version attribution is intended.
  • Very long-lived chat, with approximately 2.38 GB local rollout history. This is context, not a proven trigger.
  • Times below: 18 October 2026, Europe/London (UTC+01:00).

Observed trigger and agent activity

  1. User resumed an existing chat after explicitly requiring one agent-issued Git command at a time, parent ownership of Git, no polling or repeated scans, and a stop on unexpected process growth.
  2. The resumed turn acknowledged those rules. Recorded agent commands were targeted file reads and a CIM query of already-running Git processes.
  3. No agent-issued Git command, new subagent launch, or Unity execution is recorded in that turn before interruption.
  4. Root Git processes began around 06:20:48; recorded turn start was 06:20:50 and desktop thread/read was logged at 06:20:50.617.
  5. Git counts, CPU and Codex handle counts rose rapidly; the PC subsequently rebooted. The user reports repeated crashes. A crash dump establishing the final failure mechanism is not available.

Please do not request an uncontrolled reproduction on this machine: simply resuming this chat appears sufficient to trigger severe resource growth.

Captured measurements

Local time System CPU Git processes System processes Main Codex handles Main Codex descendants
06:20:56 58.30% 86 363 7,285 187
06:21:08 96.64% 192 529 17,719 345
06:21:20 96.00% 303 697 27,270 515

A separate, later CIM snapshot counted 490 git.exe processes; this is not simultaneous with the table rows.

Last durable sample: 06:21:20.607. Next Windows boot: 06:24:28.5. Existing diagnostic monitor resumed at 06:24:49.947.

An earlier incident around 04:56–04:58 saw Git processes grow 0 → 370, Codex handles 896 → 54,378, and Codex descendants 92 → 659 within approximately 85 seconds.

Process evidence

Many root Git instances were directly parented by codex.exe PID 15388. Additional Git children carried the same command line. Representative command, with local project path redacted:

"git" -c safe.bareRepository=explicit -c core.hooksPath=NUL -c core.fsmonitor=false diff --no-textconv --no-ext-diff --binary --no-index -- NUL "<project>/Assets/.../baseline.png"

Other captured paths were individual background, preview and character PNG assets.

The command explicitly disables hooks and fsmonitor. Parent/child Git pairs alone do not prove recursion; normal Git for Windows launcher behaviour must be distinguished from an actual loop.

Expected behaviour

Background repository/review diff collection should have bounded concurrency, bounded output, cancellation, and deduplication/backpressure. Large sets of binary assets or reopening a chat should not cause machine-wide resource exhaustion. Agent instructions limiting Git cannot control desktop/backend work outside agent tool calls.

Interpretation and uncertainty

Timing, parent PIDs, command lines, and absence of agent Git calls strongly implicate automatic Codex background diff activity. The precise internal feature, pipe/child lifetime bug, and final Windows resource allocator failure are not proven. Large history and asset volume are possible amplifiers, not established causes. The pipe-write mechanism reported in #53910 has not been measured on this Windows machine.

Evidence retained locally

A targeted read-only audit, companion bounded process evidence, timestamped JSONL monitor samples, and desktop log excerpts are retained locally. Full raw logs, user paths, project content, and the enormous chat transcript are deliberately omitted from this public issue. A private support channel would be preferable for any additional sensitive evidence.

No Git configuration, security settings, or diagnostic monitor configuration was changed as a workaround. No processes were automatically killed during the audit.

Activity

  1. added
    bug
    app
    windows-os
    session
    on Oct 18, 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

    appbugperformancesessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions