Skip to content

[Windows][Remote] Opening a task from Android triggers git.exe crash storm and system-wide OOM #41982

Open

Description

@chadsmith1973

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

Version 26.825.51511

What subscription do you have?

Pro Plan

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

[Windows][Remote][Critical] Opening a Remote chat exhausts system commit, crashes many git.exe processes, and can crash Windows

Severity

Critical. This has repeatedly exhausted approximately 49 GB of Windows commit, destabilized the desktop, crashed multiple processes, and on one run caused a VIDEO_TDR_FAILURE blue screen/reboot. There is a material risk of losing unsaved work. Please do not ask the reporter to reproduce it again on this machine.

Summary

Opening an existing Codex Remote chat from the ChatGPT mobile app can cause the connected Windows laptop to consume all available virtual memory. A prompt does not need to be sent: simply opening the chat has reproduced the problem.

The latest test was made after disabling desktop ambient suggestions. The relevant desktop logs contain zero ambient-suggestion entries, but the failure still occurred. In the seconds around the Remote refresh, the desktop app logged a stale automatic Git snapshot and a batch of 15 simultaneous review-summary Git operations across 15 worktrees. Windows reported low virtual memory 28 seconds after that batch began, followed by multiple git.exe crashes and bitmap-allocation failure.

The repository contents are not the user action that triggers the failure. The problem has also reproduced when opening a Remote chat attached to “Pause Toshy,” the reporter's smallest codebase. The common trigger across multiple days is opening the Remote chat from the phone.

Environment

  • Desktop app package: OpenAI.Codex 26.825.6671.0 (Microsoft Store)
  • Desktop executable version: ChatGPT.exe 151.0.7922.174
  • Bundled Codex: codex-cli 0.151.0-alpha.7.2
  • OS: Windows 11 Home, version 10.0.26200, build 26200
  • Git: git version 2.54.0.windows.1, C:\Program Files\Git\cmd\git.exe
  • RAM: 15.71 GB
  • Pagefile: 30,720 MB allocated
  • Total commit limit: 49,081,217,024 bytes (about 45.7 GiB)
  • GPUs:
    • NVIDIA GeForce RTX 4070 Laptop GPU, driver 32.0.16.1062
    • Intel UHD Graphics, driver 31.0.101.4255
  • Both mobile and desktop apps were updated before testing.
  • Desktop Remote was paired and enabled normally.

After the latest reboot, the laptop was stable at about 13.8 GB committed out of the 49.1 GB limit, confirming that the normal baseline does not exhaust commit.

Reliable user trigger

  1. Leave the ChatGPT/Codex desktop app running on the Windows host with Remote enabled.
  2. On the paired phone, open Remote.
  3. Open an existing local Codex chat.
  4. Do not send a prompt.
  5. Within seconds to roughly one minute, system commit is exhausted. Windows shows out-of-virtual-memory and git.exe application-error dialogs; other UI operations begin failing for lack of memory. A reboot may be required.

This has happened repeatedly over multiple days. The reporter has stopped further reproduction because one run blue-screened Windows and later runs made the whole desktop unusable.

Expected result

Opening a Remote chat should hydrate its messages and project state without starting unbounded background work or materially changing host memory use.

Actual result

  • Windows exhausts all available virtual memory despite a 30 GB pagefile.
  • Many automatically launched git.exe processes crash.
  • Observed Git exceptions include:
    • 0xc00000fd (STATUS_STACK_OVERFLOW) in ntdll.dll
    • 0xc0000005 access violations in msvcrt.dll
  • Windows displays “Out of Virtual Memory.”
  • Windows later displays “Insufficient memory to create the bitmap.”
  • A PowerShell diagnostic process could not initialize during the incident (0xC0000142-style process initialization failure), consistent with system-wide resource starvation.
  • One prior run ended in bugcheck 0x116 (VIDEO_TDR_FAILURE) with parameter 0xC000009A (insufficient system resources).

Latest post-mitigation timeline

Local time is America/Vancouver (UTC-7). UTC timestamps are from Codex desktop logs.

Local time UTC Evidence
21:30:16 04:30:16 Desktop session starts.
21:30:23 04:30:23 review_model starts an automatic review-summary Git batch across 15 separate worktrees.
21:32:08 04:32:08 Automatic turn_diff_analytics starts git add --sparse --pathspec-from-file=- --pathspec-file-nul in the project.
21:32:49 04:32:49 That command is cancelled after 41.379 seconds with 158,728 stderr bytes; desktop reports Git snapshot became stale.
21:32:50–51 04:32:50–51 Two refresh_remote_control cycles occur. A second batch of 15 review-summary / review_model Git commands begins simultaneously across 15 worktrees.
21:33:18 04:33:18 Windows Resource Exhaustion Detector receives low-virtual-memory notification.
21:33:20 04:33:20 Detector itself has a memory-allocation failure and cannot diagnose the top consumer.
21:33:25–51 04:33:25–51 Five separate git.exe Application Error events occur. Four are stack overflows in ntdll.dll; one is an access violation in msvcrt.dll.
21:33:42 04:33:42 Two visible git.exe dialogs report memory could not be written/read.
21:36:14 04:36:14 Desktop still reports another stale Git snapshot.
21:36:43 04:36:43 User manually restarts the computer because the desktop is unusable.

The second 15-worktree batch has one shared start timestamp (startTimeMs=1788237170508), so these were concurrent operations rather than a sequential scan.

Earlier severe run (same day)

  • 21:15:43: a Remote chat is resumed. The reporter says this was the tiny “Pause Toshy” project and no message was typed.
  • 21:15:55: an ambient_suggestion_generation background conversation starts in this earlier run.
  • 21:15:59, 21:16:01, 21:16:11: Remote refresh activity is logged.
  • 21:16:47: Windows reports low virtual memory.
  • 21:16:49: Resource Exhaustion Detector allocation fails.
  • 21:17:07–21:17:45: Windows records 11 git.exe Application Error events and 19 git.exe application-error popups.
  • 21:18:15: unexpected reboot (Kernel-Power event 41).
  • Windows Error Reporting subsequently records a blue screen:
    • Event: BlueScreen
    • Bugcheck: 0x116 (VIDEO_TDR_FAILURE)
    • Parameter: 0xC000009A (insufficient system resources)
    • Report ID: 1eefac20-14e0-4601-896f-e93a916c8ab5
    • Minidump: C:\Windows\Minidump\083126-17031-01.dmp

Ambient suggestions may have amplified that earlier incident, but they are not required for the failure: the latest incident reproduced with ambient suggestions disabled and no ambient entries in either desktop log.

Ambient-suggestions A/B result

The latest test used this supported desktop setting:

[desktop]
ambient-suggestions-enabled = false

The setting was verified in %USERPROFILE%\.codex\config.toml, and both logs from the latest session contain zero matches for ambient_suggestion or ambient-suggestion. The same OOM/Git failure still occurred. Therefore ambient suggestions are not the root cause, although they may add load when enabled.

Windows event evidence from the latest run

  • Resource Exhaustion Detector:
    • Event 1003 at 21:33:18: low virtual memory notification
    • Event 1007 at 21:33:20: detector memory-allocation failure
    • Event 1008 at 21:33:20: Windows failed to diagnose the low-memory condition
  • Application Error event 1000, git.exe:
    • Report IDs 63dabd38-bf57-44e6-bc4d-1dc2f2e6f35d
    • be8a7ad6-1aad-46de-9ee6-e0dda6d4007d
    • ae74762c-20cd-4ab3-8f25-5fb8d6cdf549
    • efd4b3af-8b6c-453e-b5f5-b7d88e000c06
    • d728eb39-15c8-406d-adb5-d0cf9cf902b5
  • WER preserved several Git minidumps and one memory.hdmp under %PROGRAMDATA%\Microsoft\Windows\WER\ReportArchive / ReportQueue.

Mitigations already tried

All of the following were completed before the latest reproduction:

  • Updated ChatGPT on both phone and laptop.
  • Removed and re-paired the phone/desktop Remote connection.
  • Fully restarted the desktop app.
  • Used Windows Repair, Reset, and reinstall/recovery flows.
  • Closed ChatGPT Classic; only the current desktop app was used.
  • Tested a small, focused task and the smallest available codebase.
  • Rebooted Windows between incidents.
  • Confirmed a large, system-managed pagefile (30 GB).
  • Disabled desktop ambient suggestions and restarted the app.

These steps did not resolve the issue.

Engineering hypothesis (not asserted as proven root cause)

The strongest evidence points to an automatic Git review/snapshot lifecycle triggered or refreshed while Remote hydrates a chat:

  1. turn_diff_analytics starts a Git snapshot.
  2. The snapshot becomes stale and is cancelled.
  3. Remote refreshes immediately afterward.
  4. review_model fans out Git work across many saved worktrees at once.
  5. Refresh/retry or overlapping snapshot work consumes the system commit limit.
  6. Once commit is exhausted, Git, desktop rendering, diagnostics, and GPU recovery fail as collateral damage.

The logs prove the overlapping automatic Git work, the stale-snapshot cycle, the timing, and the system-wide OOM. They do not prove which process owns every byte because the Windows Resource Exhaustion Detector also ran out of memory before it could produce a top-consumer report.

Requested engineering checks

  • Correlate Remote chat hydration with review_model, review-summary, and turn_diff_analytics refreshes.
  • Check whether stale Git snapshots are cancelled cleanly and whether child processes/resources are released.
  • Cap Git worker concurrency globally and per project/worktree.
  • Coalesce duplicate Remote/review refreshes and cancel obsolete work before starting another batch.
  • Add hard memory/commit safeguards so background review work cannot exhaust the host.
  • Record worker spawn count, active worker count, aggregate commit, and cancellation outcome in diagnostics.
  • Provide a supported setting to disable automatic Git review/snapshot refresh independently of normal Git access.

Attachments and integrity manifest

Before sharing raw logs, review them for private paths, project names, and other sensitive content.

Latest run (ambient disabled)

  • %LOCALAPPDATA%\Codex\Logs\2026\09\01\codex-desktop-c1f6623b-d3f3-4b17-aab1-bc1ef756df5e-23368-t0-i1-043016-0.log
    • 178,695 bytes
    • SHA-256 C00B5B06778B91E064474ED6568D8C1DFBD32F85F979C8DECE4499F7A9C291BF
  • %LOCALAPPDATA%\Codex\Logs\2026\09\01\codex-desktop-c1f6623b-d3f3-4b17-aab1-bc1ef756df5e-23368-t1-i1-043020-0.log
    • 78,844 bytes
    • SHA-256 4A24C8E233465FE0BD88B72C4EEF78C9184708B7C98329852273EE1F9D6BDC24

Earlier severe run

  • %LOCALAPPDATA%\Codex\Logs\2026\09\01\codex-desktop-8bda396c-0905-4ecf-ba07-da726759ee36-10668-t0-i1-040322-0.log
    • 308,247 bytes
    • SHA-256 465E8C8107BEB913A7571DBEBBECE8EB61DA174B1CF830B7B09C72EDCD3E1EF9

Photographs captured during the latest incident

  1. git.exe null write error, SHA-256 1047609D4A5B577603C91443F5B84C19EFBDD181A253D1442AF872A0F71B2619
  2. git.exe invalid read error, SHA-256 BA90DA571E5AB4C1929AD74C4B68EC379E86550E091A10BB97D8CAE6569217EA
  3. “Insufficient memory to create the bitmap,” SHA-256 3B3D9FF940BA84B81336F22781F1D3A9FCC033F5EB44B1740E3D1A2ED59EACCE

Relevant task IDs

  • Current evidence task: 01a05ad7-361a-7b32-9d62-9e050d0b9d8a
  • Small-project Remote reproduction: 019f23d5-bf2b-76c1-9089-895d77087375
  • Earlier automatically created ambient conversation: 01a05b2e-49c9-7a21-bd0d-71dadf52daf9

Safety note

The reporter has already reproduced this many times across several days and has suffered repeated full-system OOM events and a blue screen. The existing logs, Windows events, WER dumps, photographs, and task/session data should be used for investigation instead of requesting another reproduction.

What steps can reproduce the bug?

  1. Run Codex Desktop 26.825.51511 on the Windows laptop.
  2. Open the latest ChatGPT Android app on a Samsung Galaxy S23 Ultra.
  3. Open Remote and select any Codex task, including the tiny Pause project.
  4. Do not type or send a message.
  5. The task never loads. Windows memory is exhausted, git.exe errors appear, bitmap allocation fails, and the laptop requires a reboot.

What is the expected behavior?

the expected is I can see the chat remote on my phone, and give it instructions.

Additional information

Feedback/session ID: 01a05ad7-361a-7b32-9d62-9e050d0b9d8a

This reproduces across multiple projects, including a very small repository, and still occurs with ambient suggestions and background refresh disabled. It begins merely by opening the remote task; no message needs to be sent.

Please do not request another reproduction. Repeated attempts have caused full-system out-of-memory events and one Windows blue screen.

The complete raw evidence bundle is available privately to OpenAI on request.

Activity

  1. added
    app
    on Sep 1, 2026
  2. added
    bug
    windows-os
    on Sep 1, 2026
  3. github-actions commented on Sep 1, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. claudiomartinez123 commented on Sep 1, 2026

    @claudiomartinez123

    Additional reproduction from a different Windows machine; symptoms strongly match this issue and show it is not limited to Windows 11/high-RAM systems.

    Environment:

    • Codex About dialog: 26.825.51511
    • Installed MSIX package: OpenAI.Codex 26.825.6671.0
    • Windows 10 x64, build 19045.7663
    • Git for Windows 2.55.0.5
    • 6 GB DDR3 RAM (5.8 GB usable)
    • Windows commit limit shown by Task Manager: 13.4 GB
    • System SSD has ~21.3 GB free
    • Remote is paired to Android phone

    Observed behavior:

    • Codex worked normally for more than a month; failures began only in the last few days after the recent app update.
    • Messages/tasks sent from Android Remote may remain spinning, never appear on the desktop chat, and disappear from mobile after leaving/reopening the chat.
    • Existing Remote chats can hydrate incompletely or show stale history.
    • During Codex tasks, total RAM rises to 98-99%, CPU can reach 100%, disk activity spikes, Codex/ChatGPT turns completely white/unresponsive, and Windows Explorer windows can hang.
    • The display has repeatedly gone completely black. Win+Ctrl+Shift+B produces the expected beeps and can restore video, but Codex often remains frozen afterward. Several incidents required forced reboot.
    • Windows Reliability Monitor shows many Git for Windows - Stopped working entries at the same time as Codex - Stopped working.
    • One captured Git crash: C:\Program Files\Git\cmd\git.exe, APPCRASH, failing module msvcrt.dll, exception c0000005.
    • System log recorded multiple Kernel-Power event 41 entries after forced restarts.
    • After force-closing the ChatGPT/Codex process group, total system memory dropped immediately from ~98% to ~35%, CPU to ~2%, and disk to 0%.

    Isolation already performed:

    • Windows memory test completed.
    • Drivers checked/updated.
    • Git updated.
    • git status works normally with Codex closed.
    • git status also works from inside Codex during a short controlled test.
    • browser@openai-bundled and computer-use@openai-bundled were disabled in config.toml; the white-screen / high-memory / black-screen behavior still reproduced during a local analysis task without browser use.
    • When Codex is open but idle, its ChatGPT/Codex/Node process group already uses roughly 1.7 GB RAM on this 6 GB machine.

    This looks consistent with the same Remote/Git/background-work resource-exhaustion class described here, but on Windows 10 with much less RAM, making the failure occur very quickly. The black-screen recovery via Win+Ctrl+Shift+B suggests GPU/display recovery is collateral to system resource pressure rather than necessarily the root cause.

    Please use this as corroborating evidence. I would avoid asking for repeated reproduction on this machine because the failure has already caused multiple black screens and forced restarts.

  5. claudiomartinez123 commented on Sep 6, 2026

    @claudiomartinez123

    Update from the Windows 10 / Android reporter who previously added corroborating evidence above:

    After updating both the Codex Desktop app and the mobile app today, I have not been able to reproduce the previous failure so far.

    Current desktop version:

    • Codex Desktop: 26.901.5280.0
    • Mobile app: updated to the latest version available today

    What I tested successfully:

    • Opened and used Codex Remote from Android
    • Sent instructions from the phone and they synchronized/ran normally
    • Codex accessed Chrome and completed the requested browser interaction without freezing
    • No abnormal git.exe storm observed during these tests
    • No excessive memory growth observed
    • No white/black Codex window during the test
    • The display did not go black again
    • No crash or forced reboot

    This is a meaningful improvement compared with my previous reproduction on 26.825.51511 / 26.825.6671.0, where Remote usage was associated with high memory usage, git.exe crashes, white/black screens, and forced restarts.

    I cannot confirm the underlying bug is fixed for every trigger or repository, especially given the separate reports of Git fan-out on 26.901.5280.0, but on my Windows 10 machine the specific Remote/Android + black-screen/crash behavior described in my earlier comment appears resolved after updating both desktop and mobile apps.

  6. claudiomartinez123 commented on Sep 6, 2026

    @claudiomartinez123

    Correction / regression update from the same Windows machine:

    My previous comment saying the issue appeared resolved on Codex Desktop 26.901.5280.0 was premature.

    Shortly after that successful test, the failure reproduced again on the same machine:

    • the display went completely black;
    • I had to use the keyboard display-recovery shortcut to get video back;
    • the computer remained heavily stalled/frozen afterward and only recovered gradually;
    • this occurred after updating both Codex Desktop and the mobile app;
    • therefore the earlier apparently successful Remote / Chrome-control test does not mean the underlying issue is fixed.

    So, on this machine, 26.901.5280.0 still appears vulnerable to the same black-screen / system-stall class of failure previously reported. Please treat my earlier "resolved" comment only as a transient successful test, not as confirmation of a fix.

  7. SamSteProjects commented on Sep 8, 2026

    @SamSteProjects

    I’m seeing the same failure pattern on a newer Codex build.

    Environment

    • Codex Desktop: 26.901.6511.0
    • Windows 11, build 26100
    • 64 GB RAM
    • RTX 4090, 24 GB
    • Git for Windows: 2.51.0
    • Remote task monitoring enabled

    Observed behavior

    Codex appears to enter a background Git process/crash loop. Windows Event Viewer recorded numerous git.exe failures, primarily:

    • 0xc00000fd — stack overflow
    • 0xc0000005 — access violation
    • 0xc000012d — commitment limit
    • 0xc0000142 — DLL initialization/process-start failure

    Once this begins, PowerShell and CMD can no longer start. Unrelated processes—including ChatGPT.exe, DWM, Explorer, NVIDIA Overlay, Huion services, and Windows components—then begin failing.

    The problem returned shortly after a clean restart. The second incident ended in an actual Windows bugcheck:

    0x000000EF — CRITICAL_PROCESS_DIED

    A minidump was saved as 090726-8640-01.dmp.

    The active repository contains a generated artifact directory with approximately 12,361 files and 6.51 GB of data that was not excluded from Git. Remote access and reopening the task appear correlated with the failure.

    Because this can destabilize and reboot the entire machine, I will not intentionally reproduce it again. I can provide sanitized Codex logs, Event Viewer records, and the minidump through a private maintainer-approved channel.

  8. TomaxMe commented on Sep 9, 2026

    @TomaxMe

    Additional Windows / Android Remote reproduction — 9 September 2026

    Reporting another affected machine, with the owner's authorization. This report was prepared with Codex assistance from local process samples, Windows events, isolated app-server tests, and the owner's observations. Raw logs and private workspace paths are omitted.

    Versions

    • Windows desktop package: OpenAI.Codex 26.903.8094.0.
    • Bundled app-server/CLI: 0.153.4.
    • System Git: 2.51.0.windows.1.
    • Tablet: Samsung Galaxy Tab S6 Lite, SM-P615; ChatGPT Android 1.2026.244 (2624421).

    User-visible trigger

    The owner reports more than ten laptop lockups after connecting from the tablet and switching existing tasks two or three times. Some incidents occurred with no active agent turns. The display and input became unusable and required a forced reboot. Connecting both devices to the same Wi-Fi network did not prevent recurrence.

    A later phone Remote test also produced Git application errors while switching tasks, although the laptop remained usable during that test. The difference in severity between phone and tablet remains unresolved. Desktop-only use has been stable in this owner's experience; this is not a claim that the defect is globally Remote-exclusive.

    Recorded evidence

    • Android Remote task opening was correlated with app-server gitDiffToRemote requests.
    • During one failure, the last process sample recorded 2,343 git.exe processes with 40.683 GiB aggregate private memory.
    • Windows committed memory subsequently reached 65,468,776,448 / 65,474,822,144 bytes. The laptop became unusable and the owner rebooted it.
    • During the phone test, Windows Application Error events at approximately 16:04 UTC recorded Git exceptions 0xc0000005 in msvcrt.dll and 0xc00000fd in msvcrt.dll / ntdll.dll. Hundreds of Git processes were observed shortly afterward; a later sample recorded zero. These events establish Git failure and process pressure, not every intermediate allocation owner.
    • An isolated replay against the installed app-server reproduced concurrent commands of the form git diff --no-textconv --no-ext-diff --binary --no-index -- NUL <untracked-path>. The diagnostic controller stopped the test before a full response; it was not a successful full-diff test.
    • Local exclusions reduced returned untracked entries from 20,734 to 2,121. Another isolated replay still reached its process safety threshold within about three seconds. Reducing the untracked set did not establish a fix.
    • A different repository with 13 untracked entries returned complete diff responses in three isolated requests (approximately 1.5–2.1 seconds). A tablet test on that repository completed two task switches under temporary process/memory limits without a laptop crash. This establishes only the bounded test result, not unrestricted stability.

    Source-level evidence and requested fix

    The inspected public rust-v0.153.4 source has the per-untracked-file join_all path in codex-rs/git-utils/src/info.rs::diff_against_sha, reached through the app-server Git request processor. This matches the mechanism discussed in #30345 and #43019. Git for Windows commonly adds a launcher/worker pair, increasing the OS process count per invocation.

    Please consider a bounded queue for Android/iOS Remote diff work, with:

    1. A shared maximum number of active Git subprocesses across overlapping Remote requests. Serializing requests alone is insufficient because one request can create thousands of subprocesses.
    2. Duplicate-request coalescing and cancellation of obsolete refreshes, with child-process cleanup.
    3. Complete results, or an explicit truncation/error signal; no silent omission of changed files.
    4. Regression coverage at gitDiffToRemote / shared git-utils level, with thousands of synthetic untracked files and repeated requests. Account for Windows launcher/worker pairs and verify cleanup.

    For a local mitigation, the owner's requirement is to preserve desktop-initiated Git work. A whole-app GIT_DIR=NUL workaround would disable needed functionality. No custom binary or permanent concurrency patch has been installed.

    Please identify a fixing commit and desktop-compatible release when available. The owner has already experienced repeated forced reboots; further uncontained reproduction on this laptop would risk more lost work. Sanitized measurements can be supplied through an appropriate channel.

  9. hanarchy commented on Sep 12, 2026

    @hanarchy

    I can independently reproduce what appears to be the same Windows + Android Remote failure, and I captured the missing memory with PoolMon.

    In my environment, the first Remote connection works normally. After disconnecting, the second Remote connection reliably triggers rapidly increasing system commit / paged-pool usage, eventually making the entire Windows host nearly unusable.

    Additional evidence from my reproduction:

    • Windows host with 64 GB RAM
    • Android Codex Remote client
    • System commit was initially stable at about 26 GB
    • After the second Remote connection, commit increased continuously to over 200 GB
    • In one run, Task Manager showed Paged Pool ~122 GB with system commit around 207/208 GB
    • codex.exe itself remained relatively small (around ~1 GB scale), so the growth was not in the normal Codex user-mode heap

    I then reproduced it again while running PoolMon. The paged-pool growth was overwhelmingly dominated by the Obtb tag:

    • Obtb outstanding allocations (Diff): 22,369,435
    • Obtb bytes: 91,491,257,088 bytes (~85.2 GiB)
    • average allocation size: 4090 bytes

    The next-largest paged-pool tags were only in the hundreds of MB, so Obtb accounted for essentially all of the abnormal pool growth.

    My approximate reproduction steps are:

    1. Start Codex on Windows with Remote enabled
    2. Connect from Android Remote — works normally
    3. Disconnect Remote
    4. Connect from Android Remote again
    5. System commit and Paged Pool begin growing continuously
    6. Windows becomes extremely sluggish/unresponsive as commit is exhausted

    This strongly suggests that, at least in this reproduction, the missing memory is accumulating in Windows kernel paged pool / object tables rather than in codex.exe user-mode memory.

    This also looks potentially related to #31212, which reported Codex-associated kernel pool / object-table growth.

    I have the raw PoolMon output and a 1-second system-memory CSV log from the reproduction if they would be useful for investigation.

  10. miaogen123 commented on Sep 20, 2026

    @miaogen123

    I can not believe this disaster bug has lasted months.

  11. paulodic commented on Sep 28, 2026

    @paulodic

    Additional Windows + Android Remote case: process proliferation and system commit exhaustion

    This is corroborating evidence for Android Remote issue #41982 and the per-untracked-file Git process proliferation in #43019. The report was prepared with Codex assistance using local logs, Windows events, a retained resource-monitor CSV and an isolated synthetic reproduction. It has not been independently reproduced by OpenAI.

    Frequency and user-visible trigger

    In my normal workflow, the Windows host hangs every time I send a message through ChatGPT Android Remote. This has also happened with previous Android app versions. This is my repeated experience, not a measured failure percentage: a complete count of attempted sends was not retained. Separate incidents are documented on September 25 and 27, 2026.

    The recorded workflow opens/resumes a project chat from Android and sends a message. Automatic diff requests can begin before sending; the exact physical UI gesture that starts resource growth has not been isolated.

    Environment and workload

    • Android: ChatGPT 1.2026.265 (27), Motorola razr 60 ultra XT2551-6, Android 16. This is a product model number, not a device serial/IMEI.
    • Windows 10 Pro x64, build 19045, Ryzen 9 5900X, 95.913 GiB usable RAM; Git 2.44.0.windows.1.
    • Desktop package identified before the September 27 reboot: 26.924.1866.0. Exact shipped source commit was not recovered.
    • After reboot / bounded test: desktop 26.924.2738.0, core 0.158.0-alpha.2.1. These are distinct builds.
    • A September 26 inventory of one affected repository found 42,058 untracked, nonignored files, including 29,262 inside node_modules and 12,796 outside. Large groups were under tmp/ and output/. This is a dated inventory, not the exact crash-time count. The other repository's enumeration did not complete.

    Measured incident: September 25

    An Android-client gitDiffToRemote request was logged immediately after the baseline sample. During the following 211.168 seconds:

    System metric Before growth Last recorded sample
    Processes 608 17,816
    Committed memory 57.630 GiB 196.890 GiB
    Commit limit 101.913 GiB 207.300 GiB
    Commit / limit 56.55% 94.98%
    Physical RAM available 58.131 GiB 2.687 GiB
    Allocated pagefile capacity 6.000 GiB 111.388 GiB
    Free space on paging volume 106.157 GiB 0.031 GiB
    System handles 230,279 1,955,695

    Windows subsequently reported insufficient virtual memory, and the monitor itself failed to allocate memory. The final sample precedes those failures; it does not measure the final maximum. Committed memory is not resident RAM, and pagefile capacity is not the amount of data paged out.

    Named ChatGPT/Codex process counts stayed at 22/4. Their combined private memory rose only 0.186 GiB while system commit rose 139.260 GiB. No complete PID census or kernel-pool attribution exists for that historical peak; it must not be described as 17,816 individually identified Git processes.

    Separate recurrence: September 27

    The same Android connection issued four gitDiffToRemote requests at 20:18:02, 20:20:19, 20:21:27 and 20:21:58 UTC, then turn/start at 20:23:13 UTC. Windows recorded:

    • 20:24:36: ChatGPT exception 0xe0000008.
    • 20:24:58: Resource-Exhaustion-Detector event 1007, memory allocation failure.
    • 20:25:02: Git launcher exception 0xc00000fd in ntdll.dll.
    • Subsequent reboot with bugcheck 0x51. Its precise cause is unresolved; this report does not prove Codex caused the kernel failure.

    No equivalent process/memory time series exists for September 27. Completion records for the four diff requests were not recovered, so overlap between those requests is unproven.

    Bounded reproduction of the Git mechanism

    An isolated Windows fixture exercised the installed app-server's gitDiffToRemote RPC using fresh synthetic repositories, without a model call or private project:

    Eligible untracked files Per-file comparisons Peak overlapping internal Git comparisons Peak memory of test job
    1 1 1 163.96 MiB
    12 12 11 452.91 MiB
    Same 12 files ignored 0 0 163.34 MiB

    All three RPCs completed successfully. Each of the 12 comparisons had a Windows Git launcher/worker pair, under the app-server. The command shape was:

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

    The observed process tree was codex.exe app-server -> Git/bin/git.exe -> Git/mingw64/bin/git.exe. Ignoring the same synthetic files removed the per-file work and reduced peak test-job memory by 289.57 MiB. This is one run per condition; it is not a fixed per-file cost or proof of an unlimited binary-level concurrency ceiling.

    The prepared three-file Python harness requires Windows x64, Python 3.10+ and Git. It creates only 1/12-file fixtures. A Windows Job Object limits the workload to 48 active processes, 1 GiB and 12 seconds, with a host-health guard and cleanup confined to that test job. No full-system crash was deliberately reproduced.

    Requested engineering investigation

    Please investigate the shared/app-server untracked-diff path, including process concurrency and aggregate output limits, repeated Remote refreshes, cancellation and complete Git descendant cleanup. A deterministic regression should use many synthetic filenames with a fake Git runner and assert bounded concurrency; testing only the TUI diff path may miss this helper.

    The local evidence supports per-file Git work as a concrete source of resource demand. It does not assign every historical byte to Git or establish the exact kernel failure. The external kernel-pool observations in this issue are an additional investigation lead, not a local PoolMon finding.

    Public evidence bundle

    Attachment pending: the sanitized companion file OpenAI_bug_report_20260928_v6_PUBLIC.zip is prepared locally and will be added separately. It contains the detailed report, filtered request/events, process/memory CSV, two graphs, bounded reproduction source/results, versions and SHA-256 manifest.

    Names, private project/user paths, account/device identifiers, original conversation/session/report UUIDs, host-derived trace hashes, authentication data, full transcripts, private repository contents and raw memory dumps are excluded. Original diagnostic identifiers remain local and can be supplied separately through a private support channel if required. Numeric request IDs, ephemeral PIDs, timestamps, versions and measurements are retained for technical correlation.

  12. andreseugenio-dev commented on Oct 1, 2026

    @andreseugenio-dev

    Adding another independent reproduction of this issue.

    I am seeing the same failure pattern repeatedly on a Windows PC when I start controlling an existing Codex session from my phone. It has happened roughly 4–6 times. The sequence is consistent: Codex is running normally on the PC; I connect/control it from the phone; shortly afterward git.exe throws an Application Error, the machine's memory/resources collapse, the display can go black, and it becomes difficult or impossible to resume work without recovering/restarting the PC.

    One of the visible dialogs reports an access violation in the usual Windows form: The instruction at 0x00007FFC9634AE67 referenced memory at ... The memory could not be read. The referenced-memory address was dictated/transcribed from the dialog as 0x000000000E 11 EDF 0 0 0 0, so spacing/digit grouping on that second address may not be exact; the important reproducible signature is the git.exe Application Error / memory-could-not-be-read failure immediately after beginning mobile Remote control.

    This is not a one-off crash: it has reproduced several times with the same mobile-control trigger and has caused system-wide instability/black screen. I am no longer going to intentionally reproduce it because of the disruption and risk of losing work.

    Please count this as an additional independent Windows + mobile Remote reproduction of #41982.

  13. 3 remaining items

  14. onlinegroeicoach commented on Oct 3, 2026

    @onlinegroeicoach

    Same issue here was using and older GIT version from november 2023, updated to newest hope it helps.

  15. LeeJinSoo-BIN commented on Oct 7, 2026

    @LeeJinSoo-BIN

    Additional Windows / Android Remote reproduction with native process-parent evidence:

    Environment: Codex desktop 26.1002.7124.0, bundled native server codex-cli 0.162.0-alpha.2, Windows, approximately 32 GB physical RAM.

    Opening an existing conversation from Android Remote triggered a gitDiffToRemote request before a new message was sent. The native app-server request log and Windows process-start trace establish this chain:

    • One Android Remote connection resumed the thread, then sent gitDiffToRemote to the native app-server about one second later.
    • That same native server PID directly launched 2,933 git.exe processes. An additional 2,919 nested Git processes were recorded, for 5,852 Git start events.
    • A captured command was 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].
    • Recorded system commit reached 95,570.77 MB. After an explicitly armed local safety guard stopped Codex / related Git processes, commit fell to 13,913.41 MB. The OS boot time remained unchanged in this protected reproduction. Earlier unprotected episodes rebooted the PC.

    The installed version's git-utils/src/info.rs runs one no-index comparison per untracked file via unbounded join_all(futures_iter):
    https://github.com/openai/codex/blob/rust-v0.162.0-alpha.2/codex-rs/git-utils/src/info.rs#L743-L759

    The same fan-out remains in main at 9dd7988:

    // Use platform-appropriate null device and guard paths with `--`.
    let null_device: &str = if cfg!(windows) { "NUL" } else { "/dev/null" };
    let futures_iter = untracked.into_iter().map(|file| async move {
    let file_owned = file;
    let args_vec: Vec<&str> = vec![
    "diff",
    "--no-textconv",
    "--no-ext-diff",
    "--binary",
    "--no-index",
    // -- ensures that filenames that start with - are not treated as options.
    "--",
    null_device,
    &file_owned,
    ];
    run_git_command_with_timeout_from(git, &args_vec, cwd, fsmonitor).await
    });
    let results = join_all(futures_iter).await;
    for extra in results.into_iter().flatten() {
    if extra.status.code().is_some_and(|c| c == 0 || c == 1)
    && let Ok(s) = String::from_utf8(extra.stdout)
    {
    diff.push_str(&s);
    }

    Requests can overlap: GitDiffToRemote is declared with serialization: None. A limit applied independently to each request would still multiply under overlapping requests.

    GitDiffToRemote => "gitDiffToRemote" {
    params: v1::GitDiffToRemoteParams,
    serialization: None,
    response: v1::GitDiffToRemoteResponse,
    },

    Proposed narrow fix: use an ordered buffered(8) stream and a process-wide shared semaphore of 8 for the per-untracked-file comparisons. Acquire before polling the future that spawns Git, hold until it completes, and append completed patches in listing order. This preserves complete diffs and ordering while limiting active comparison operations across concurrent requests. It also avoids retaining every completed subprocess output until the whole batch completes.

    Exact-version Windows validation is now complete against the final full codex-cli 0.162.0-alpha.2 executable built from the bundled source tag with the attached patch:

    • Three native regression tests passed: two overlapping 2,048-item batches share one process-wide limit of 8 and retain all ordered results; cancellation returns permits; the actual git_diff_to_remote future retains its required Send contract.
    • All 447 exported protocol schema files have identical relative paths and SHA-256 values to the original bundled executable.
    • Real native gitDiffToRemote tests passed for two overlapping requests over 64 files, then two overlapping requests over 2,048 files (4,096 actual no-index comparisons). Both large responses contained every expected file and content marker in listing order, with identical complete diffs (303,104 characters per response). The large test completed in 25.975 seconds and the disposable app-server shut down normally with exit 0; no emergency process stop was needed.
    • At 20 ms sampling, the large test's observed peak was 8 directly spawned no-index Git processes and 16 related launcher/core Git processes. Including separate metadata commands, peaks were 9 direct / 18 descendant Git processes. The limit is on active comparison operations, not every OS Git process. Command-line queries failed 424 times without per-failure cause classification, so sampling alone is not a proof of a hard process ceiling; the source semaphore and concurrency regressions provide the complementary evidence.
    • The disposable app-server's peak private memory was 230,965,248 bytes (about 220.3 MiB); this is app-server memory, not total system commit.

    The full Windows build and --version check passed; the executable imports only Windows system DLLs/API sets. The attached patch includes one compile-only codex-core recursion-limit increase to 256, required after the new future layout exceeded rustc's default limit; app-server already uses 256. Reproducing the tagged workspace also required normalizing 161 internal Cargo.lock package versions to the tag version. External dependency versions and checksums were unchanged; that build-metadata normalization is excluded from the focused patch below.

    Executable SHA-256: 3BD51C60CDD90A7CBD1F3DA8DD17082E2303C0B05F6BBBA55CD23A77650CD343. Sanitized source patch SHA-256 (including its final newline): 5ECB0A71AA3CE2FB0D2259661D1C804198D9FFEBF80D2317812CE332666F377D.

    Raw logs remain private because they contain local project paths and conversation identifiers. This report concerns process fan-out; it does not add a cap on total diff bytes or change untracked filename parsing.

    Proposed exact-version source patch, including regression tests
    diff --git a/codex-rs/core/src/lib.rs b/codex-rs/core/src/lib.rs
    index e7753db..d47b660 100644
    --- a/codex-rs/core/src/lib.rs
    +++ b/codex-rs/core/src/lib.rs
    @@ -1,5 +1,6 @@
     //! Root of the `codex-core` library.
     
    +#![recursion_limit = "256"]
     // Prevent accidental direct writes to stdout/stderr in library code. All
     // user-visible output must go through the appropriate abstraction (e.g.,
     // the TUI or the tracing stack).
    diff --git a/codex-rs/git-utils/Cargo.toml b/codex-rs/git-utils/Cargo.toml
    index c9409d4..cacddbc 100644
    --- a/codex-rs/git-utils/Cargo.toml
    +++ b/codex-rs/git-utils/Cargo.toml
    @@ -26,7 +26,7 @@ serde = { workspace = true, features = ["derive"] }
     similar = { workspace = true }
     tempfile = { workspace = true }
     thiserror = { workspace = true }
    -tokio = { workspace = true, features = ["macros", "process", "rt", "time"] }
    +tokio = { workspace = true, features = ["macros", "process", "rt", "sync", "time"] }
     ts-rs = { workspace = true, features = [
         "uuid-impl",
         "serde-json-impl",
    diff --git a/codex-rs/git-utils/src/info.rs b/codex-rs/git-utils/src/info.rs
    index aec8a01..aec0a68 100644
    --- a/codex-rs/git-utils/src/info.rs
    +++ b/codex-rs/git-utils/src/info.rs
    @@ -1,13 +1,17 @@
     use std::collections::BTreeMap;
     use std::collections::HashSet;
    +use std::future::Future;
     use std::path::Path;
     use std::path::PathBuf;
     
    -use futures::future::join_all;
    +use futures::Stream;
    +use futures::StreamExt;
    +use futures::stream;
     use schemars::JsonSchema;
     use serde::Deserialize;
     use serde::Serialize;
     use tokio::process::Command;
    +use tokio::sync::Semaphore;
     use tokio::time::Duration as TokioDuration;
     use ts_rs::TS;
     
    @@ -39,6 +43,8 @@ pub fn get_git_repo_root(base_dir: &Path) -> Option<PathBuf> {
     /// Timeout for git commands to prevent freezing on large repositories
     const GIT_COMMAND_TIMEOUT: TokioDuration = TokioDuration::from_secs(5);
     const DISABLED_HOOKS_PATH: &str = if cfg!(windows) { "NUL" } else { "/dev/null" };
    +const MAX_CONCURRENT_UNTRACKED_DIFFS: usize = 8;
    +static UNTRACKED_DIFF_SEMAPHORE: Semaphore = Semaphore::const_new(MAX_CONCURRENT_UNTRACKED_DIFFS);
     
     #[derive(Serialize, Deserialize, Clone, Debug, JsonSchema, TS)]
     pub struct GitInfo {
    @@ -756,8 +762,12 @@ async fn diff_against_sha(cwd: &Path, sha: &GitSha) -> Option<String> {
                     ];
                     run_git_command_with_timeout_from(git, &args_vec, cwd, fsmonitor).await
                 });
    -            let results = join_all(futures_iter).await;
    -            for extra in results.into_iter().flatten() {
    +            let results = bounded_untracked_diffs(futures_iter);
    +            futures::pin_mut!(results);
    +            while let Some(extra) = results.next().await {
    +                let Some(extra) = extra else {
    +                    continue;
    +                };
                     if extra.status.code().is_some_and(|c| c == 0 || c == 1)
                         && let Ok(s) = String::from_utf8(extra.stdout)
                     {
    @@ -770,6 +780,31 @@ async fn diff_against_sha(cwd: &Path, sha: &GitSha) -> Option<String> {
         Some(diff)
     }
     
    +fn bounded_untracked_diffs<I, F>(diffs: I) -> impl Stream<Item = F::Output> + Send
    +where
    +    I: IntoIterator<Item = F>,
    +    I::IntoIter: Send,
    +    F: Future + Send,
    +    F::Output: Send,
    +{
    +    stream::iter(diffs)
    +        .map(|diff| async move {
    +            // Remote requests may overlap, so share the limit across requests and
    +            // acquire it before polling the future that spawns the Git process.
    +            let _permit = UNTRACKED_DIFF_SEMAPHORE
    +                .acquire()
    +                .await
    +                .unwrap_or_else(|_| unreachable!("untracked diff semaphore is never closed"));
    +            diff.await
    +        })
    +        // Preserve the file listing order without retaining every completed diff.
    +        .buffered(MAX_CONCURRENT_UNTRACKED_DIFFS)
    +}
    +
    +#[cfg(test)]
    +#[path = "untracked_diff_tests.rs"]
    +mod untracked_diff_tests;
    +
     fn find_ancestor_git_entry(base_dir: &Path) -> Option<(PathBuf, PathBuf)> {
         let mut dir = base_dir.to_path_buf();
     
    diff --git a/codex-rs/git-utils/src/untracked_diff_tests.rs b/codex-rs/git-utils/src/untracked_diff_tests.rs
    new file mode 100644
    index 0000000..b61c573
    --- /dev/null
    +++ b/codex-rs/git-utils/src/untracked_diff_tests.rs
    @@ -0,0 +1,136 @@
    +use super::*;
    +use std::sync::Arc;
    +use std::sync::Mutex;
    +use std::sync::atomic::AtomicUsize;
    +use std::sync::atomic::Ordering;
    +use std::task::Poll;
    +
    +use pretty_assertions::assert_eq;
    +
    +static TEST_SEMAPHORE: Semaphore = Semaphore::const_new(1);
    +
    +#[test]
    +fn untracked_diff_request_future_is_send() {
    +    fn assert_request_future_is_send(cwd: &Path) {
    +        fn assert_send(_: impl Future + Send) {}
    +        assert_send(git_diff_to_remote(cwd));
    +    }
    +
    +    // Construct and drop the real request future without polling or spawning Git.
    +    assert_request_future_is_send(Path::new("."));
    +}
    +
    +struct ActiveDiff(Arc<AtomicUsize>);
    +
    +impl Drop for ActiveDiff {
    +    fn drop(&mut self) {
    +        self.0.fetch_sub(1, Ordering::SeqCst);
    +    }
    +}
    +
    +#[tokio::test]
    +async fn untracked_diffs_bound_overlapping_requests_and_preserve_all_results() {
    +    let _test_guard = TEST_SEMAPHORE.acquire().await.expect("serialize tests");
    +    let active = Arc::new(AtomicUsize::new(0));
    +    let peak = Arc::new(AtomicUsize::new(0));
    +    let completion_order = Arc::new(Mutex::new(Vec::new()));
    +    let batch_size = 2048;
    +    let batch = |start| {
    +        let active = Arc::clone(&active);
    +        let peak = Arc::clone(&peak);
    +        let completion_order = Arc::clone(&completion_order);
    +        let first_file_ready = Arc::new(tokio::sync::Notify::new());
    +        bounded_untracked_diffs((start..start + batch_size).map(move |index| {
    +            let active = Arc::clone(&active);
    +            let peak = Arc::clone(&peak);
    +            let completion_order = Arc::clone(&completion_order);
    +            let first_file_ready = Arc::clone(&first_file_ready);
    +            async move {
    +                let current = active.fetch_add(1, Ordering::SeqCst) + 1;
    +                let _active_diff = ActiveDiff(active);
    +                peak.fetch_max(current, Ordering::SeqCst);
    +                if index == start {
    +                    first_file_ready.notified().await;
    +                } else {
    +                    tokio::task::yield_now().await;
    +                }
    +                completion_order.lock().unwrap().push(index);
    +                if index == start + 1 {
    +                    first_file_ready.notify_one();
    +                }
    +                format!("patch-{index}\n")
    +            }
    +        }))
    +        .collect::<Vec<_>>()
    +    };
    +
    +    let (first, second) = tokio::time::timeout(TokioDuration::from_secs(10), async {
    +        tokio::join!(batch(0), batch(batch_size))
    +    })
    +    .await
    +    .expect("bounded diff requests should complete");
    +
    +    assert_eq!(peak.load(Ordering::SeqCst), MAX_CONCURRENT_UNTRACKED_DIFFS);
    +    assert_eq!(active.load(Ordering::SeqCst), 0);
    +    let expected = |start| {
    +        (start..start + batch_size)
    +            .map(|index| format!("patch-{index}\n"))
    +            .collect::<Vec<_>>()
    +    };
    +    assert_eq!(first, expected(0));
    +    assert_eq!(second, expected(batch_size));
    +    let completed = completion_order.lock().unwrap();
    +    assert_eq!(completed.len(), batch_size * 2);
    +    assert_ne!(completed.first(), Some(&0));
    +}
    +
    +#[tokio::test]
    +async fn untracked_diffs_release_shared_permits_when_canceled() {
    +    let _test_guard = TEST_SEMAPHORE.acquire().await.expect("serialize tests");
    +    let active = Arc::new(AtomicUsize::new(0));
    +    let mut request = Box::pin(
    +        bounded_untracked_diffs((0..MAX_CONCURRENT_UNTRACKED_DIFFS * 2).map(|_| {
    +            let active = Arc::clone(&active);
    +            async move {
    +                active.fetch_add(1, Ordering::SeqCst);
    +                let _active_diff = ActiveDiff(active);
    +                futures::future::pending::<usize>().await
    +            }
    +        }))
    +        .collect::<Vec<_>>(),
    +    );
    +
    +    tokio::time::timeout(
    +        TokioDuration::from_secs(5),
    +        futures::future::poll_fn(|cx| {
    +            assert!(request.as_mut().poll(cx).is_pending());
    +            if active.load(Ordering::SeqCst) == MAX_CONCURRENT_UNTRACKED_DIFFS {
    +                Poll::Ready(())
    +            } else {
    +                Poll::Pending
    +            }
    +        }),
    +    )
    +    .await
    +    .expect("request should acquire the shared permits");
    +    assert_eq!(UNTRACKED_DIFF_SEMAPHORE.available_permits(), 0);
    +
    +    drop(request);
    +    assert_eq!(active.load(Ordering::SeqCst), 0);
    +    assert_eq!(
    +        UNTRACKED_DIFF_SEMAPHORE.available_permits(),
    +        MAX_CONCURRENT_UNTRACKED_DIFFS
    +    );
    +
    +    let results = tokio::time::timeout(
    +        TokioDuration::from_secs(5),
    +        bounded_untracked_diffs((0..MAX_CONCURRENT_UNTRACKED_DIFFS).map(futures::future::ready))
    +            .collect::<Vec<_>>(),
    +    )
    +    .await
    +    .expect("a subsequent request should be able to run");
    +    assert_eq!(
    +        results,
    +        (0..MAX_CONCURRENT_UNTRACKED_DIFFS).collect::<Vec<_>>()
    +    );
    +}
  16. RicchiutiDev commented on Oct 10, 2026

    @RicchiutiDev

    I am experiencing what appears to be the same severe Windows freeze while using Codex Desktop with Codex Remote on Android.

    Observed behavior

    • Intermittently, while working with Codex on Windows, the entire display turns black except for a git.exe - Application Error dialog indicating that memory could not be written.
    • The mouse stops responding, so I cannot even press OK on the error dialog.
    • The computer remains unusable and I have had to hold the physical power button to force shutdown.
    • This has happened repeatedly, and so far only when using Codex.

    Environment / context

    • Codex Desktop on Windows (updated to the latest version available to me).
    • Codex Remote is also used from an Android phone.
    • Exact Codex build, Git version, Windows build, RAM/commit figures and logs have not yet been collected.

    I have a photograph showing the black screen and Git application-error dialog. I cannot yet confirm that opening a Remote chat is the immediate trigger, only that the freezes occur during Codex use with Remote in use.

    Reporting this here rather than opening a duplicate because the symptoms closely match this issue. Reproduction is risky due to repeated forced shutdowns and possible unsaved work loss.

  17. UnsctMagic commented on Oct 11, 2026

    @UnsctMagic

    Adding another affected-user report with a concrete data-loss impact.

    I've experienced two incidents involving Codex Mobile/Remote and my PC crashing, and lost work both times. This is more serious than a Codex app hang: a remote interaction should never put the host computer or unsaved work at risk.

    I cannot yet confirm whether my incidents share the exact Git-process/memory-exhaustion mechanism described above, and I am not claiming specific logs or versions I haven't checked. But please count this as another report of repeated lost work associated with the mobile-to-PC workflow.

    Please prioritize an engineering fix, add safeguards to prevent Remote/background Git operations from exhausting the host, and communicate a safe temporary workaround and the affected/fixed versions. Users should not have to risk losing more work to reproduce the issue.

  18. golee commented on Oct 12, 2026

    @golee

    Another affected user here, still experiencing this issue on October 12, 2026.

    Environment:

    • Codex Desktop: 26.1007.2314.0
    • Git: 2.55.0.5
    • Windows build: 26100
    • Android Remote

    Multiple applications crash, including git.exe, ChatGPT.exe, conhost.exe, and even Windows sihost.exe.

    Observed exception codes include 0xc00000fd, 0xc0000005, and 0xe0000008.

    The entire Windows desktop becomes nearly unusable. Mouse input stutters severely, Bluetooth sometimes stops working, and a forced reboot is required.

    This is no longer just a Remote performance issue. It is a serious host stability problem.

    Please prioritize a fix and provide an update on the affected versions and expected resolution. I'm reluctant to reproduce it again because of the risk of system instability and data loss.

  19. lavinoys commented on Oct 13, 2026

    @lavinoys

    Additional affected-user report, reproduced on October 14, 2026 with Windows app package 26.1007.2314.0.

    User-confirmed trigger

    1. Leave the ChatGPT desktop app running on the Windows PC.
    2. Connect to that PC using Remote in the ChatGPT smartphone app.
    3. Open a chat on the phone.

    The user reports that entering the chat causes host RAM usage to reach 100% and makes the entire PC uncontrollable. Opening the chat is the reported trigger; a new task submission was not identified as a required step. Phone OS/model and mobile app version have not been collected.

    Environment

    • Windows 11 Pro, version/build 10.0.26300, x64.
    • Approximately 31.92 GiB usable RAM (32 GB installed).
    • Microsoft Store/MSIX package: OpenAI.Codex 26.1007.2314.0.

    Live observations from this reproduction

    Times below are 2026-10-14, Asia/Seoul (UTC+09:00). These are sequential samples, not an atomic snapshot.

    • During the roughly 08:19–08:20 incident window, Windows reported 99.3% physical RAM used, 216 MiB available, and system commit 74,836,344,832 / 75,283,972,096 bytes (about 99.4% of the current commit limit).
    • At 08:20:31.833, a lightweight read from an already-running Node process reported only 0.035884857 GiB free physical memory, approximately 36.7 MiB.
    • The process snapshot included one codex.exe with 48,264 handles, approximately 286 MiB private memory and 328 MiB working set. This is an observed count, not proof that this process owned the missing memory or caused the exhaustion.
    • Diagnostic process startup and responses were heavily delayed during the incident.
    • By 08:21:37, available memory had recovered to approximately 21.3 GiB and the snapshot showed only three remaining ChatGPT processes. The exact recovery action was not recorded, so no causal conclusion is drawn from that change.

    Earlier corroborating records on the same machine

    All times are also October 14, UTC+09:00.

    • 02:57:50 — Windows Resource Exhaustion Detector, Operational event 1003: system commit 137,327,951,872 / 137,358,086,144 bytes (99.978%). The following event 1008 says Windows failed to diagnose the low-virtual-memory condition.
    • 02:59:19 — Desktop log: browser sidebar render process gone, exitCode=39, reason=memory-eviction.
    • 03:02:49 — Desktop log: local app-server process closed with code 3221226505, reason memory allocation of 2097152 bytes failed; followed by Codex CLI process exited classifiedAsExpected=false and fatal_error_broadcasted.

    The approximately 128 GiB figure above is whole-system commit usage/limit, including the pagefile, not physical RAM or measured ChatGPT-only usage. The allocation owner and any link to the Git-process mechanism in this issue remain unconfirmed in this capture.

    Please investigate this matching Remote-chat-open failure on the October app build and provide a fix or a supported safe workaround. Further reproduction can make the whole host uncontrollable; please use the existing evidence rather than requesting another full-system exhaustion test.

    Only sanitized measurements and diagnostic error strings are included here. No account identifiers, conversation contents, private paths, or full raw logs are being posted.

  20. DryadsOutdoors commented on Oct 15, 2026

    @DryadsOutdoors

    I'm experiencing this same issue on Windows 11 with Codex Desktop 26.1007.9446.0, Git 2.50.0.windows.1, and 32 GB RAM.

    Opening or continuing an existing PC Codex conversation from my phone consistently causes the remote session to hang on "Thinking", followed by Git stack overflow crashes and Codex's app-server restarting.

    The Codex logs report:

    • memory allocation of 40392 bytes failed
    • Codex CLI process exited
    • Exit code 3221226505

    Windows reports git.exe crashes with exceptions 0xc00000fd and 0xc0000005.

    New conversations created from my phone work. The issue is specifically resuming existing desktop conversations remotely.

    Windows SFC and DISM checks passed, and system memory usage was well below the commit limit. Updating Codex and disconnecting Blender MCP did not prevent the problem. #

  21. Sylva1027 commented on Oct 15, 2026

    @Sylva1027

    I can confirm a very similar issue on my Windows 11 PC, reproduced twice today (October 15, 2026).

    Both incidents were triggered by accessing my local Codex project through ChatGPT Remote on Android.

    First incident:

    • CPU cooling fans immediately ramped up and remained at high speed.
    • Multiple git.exe processes appeared despite no intentional Git operations.
    • The entire system became unresponsive, eventually showing a black screen with only a movable cursor.
    • After restarting, Windows reported "The User Profile Service service failed the sign-in."
    • Windows subsequently loaded a temporary user profile. I had to manually repair the .bak SID registry mapping to restore my original profile and settings.

    Second incident:

    • The same Remote action immediately triggered sustained high system load.
    • Windows became severely unresponsive again.
    • I barely managed to initiate an emergency restart using Win + X → U → R.
    • The restart did not complete normally, but running tasks were terminated. I briefly observed more than ten git.exe processes in Task Manager before they disappeared, after which the system recovered.

    I did not manually kill the Git processes.

    The repeated correlation with Remote access strongly suggests a related issue, although I haven't confirmed the underlying cause.

    This is potentially a system-level stability issue, not just a Codex performance problem. I'm particularly concerned about the Windows user profile failure following the first incident.

    Please consider this an additional independent report. I would prefer not to reproduce it again given the risk of another system crash.

  22. SolidSnake82 commented on Oct 16, 2026

    @SolidSnake82

    Title: Codex Remote connection causes repeated Git crashes, DWM failure and Windows black screen

    Environment

    • OS: Windows 11
    • Codex Desktop: 26.1007.2314.0
    • Git for Windows: 2.47.1.windows.1
    • Git LFS: 3.6.0
    • Graphics: Intel UHD Graphics 620, driver 31.0.101.2135
    • RAM: Approximately 32 GB
    • Remote client: Android phone

    Problem

    When I connect from my Android phone to an existing Codex Desktop session on my Windows laptop, the system becomes unstable. Multiple Git processes crash, Codex Desktop stops responding, Windows Desktop Window Manager crashes, and the display turns black.

    Windows does not recover normally, forcing me to restart the laptop using the power button.

    The laptop was open, unlocked, awake, and running Codex locally when I connected.

    Crash evidence — October 16, 2026

    Windows Event Viewer recorded:

    • Multiple git.exe application crashes with exception 0xC00000FD (stack overflow).
    • Additional git.exe crashes with exception 0xC0000005 (access violation).
    • Codex Desktop ChatGPT.exe crashed with exception 0xE0000008.
    • Codex Desktop also generated application-hang reports.
    • dwm.exe crashed in dwmcore.dll, exception 0xC00001AD.
    • Kernel-Power Event ID 41 recorded an unexpected shutdown with BugcheckCode = 0.

    Two groups of related failures occurred during the evening.

    Diagnostics performed

    • Normal Git commands work successfully outside the Remote failure.
    • Git configuration contains no obvious recursive aliases or unusual overrides.
    • Git can inspect the existing development repository successfully.
    • Current available physical memory is approximately 17.5 GB.
    • No Resource-Exhaustion-Detector Event ID 2004 was found during the investigated period.
    • The laptop uses traditional S3 sleep and was actively running Windows when the Remote connection was attempted.

    Expected behavior

    Connecting through Codex Remote should attach to the existing local Codex session without crashing Git, Codex Desktop, Desktop Window Manager, or Windows.

    Actual behavior

    The Remote connection is associated with cascading application crashes and an unrecoverable black screen.

    Request

    Please investigate whether Codex Remote is triggering recursive Git operations, excessive subprocess creation, or an interaction with Windows desktop composition. A related report appears to be issue #41982.

    I can provide redacted Windows Event Viewer logs and Reliability Monitor screenshots. I have avoided further reproductions because each attempt risks a forced shutdown and loss of unsaved development work.

  23. sanikolov commented on Oct 16, 2026

    @sanikolov

    Bug: Unbounded Git Process Spawning During Remote Diff Requests Causes System Resource Exhaustion

    Summary

    A remote Git diff request in the Codex desktop application can trigger thousands of concurrent Git processes when a repository contains numerous untracked files.

    The installed Codex app-server implementation launches a separate Git comparison for each eligible untracked file without enforcing an aggregate concurrency limit.

    This behavior caused severe Windows system resource exhaustion, including near-total depletion of available system commit memory. Emergency termination of Git processes temporarily restored system stability, but the underlying spawning mechanism remained active.

    Status: Root cause strongly identified; permanent fix not verified.

    Severity: Critical — potential host-wide resource exhaustion and system instability.

    Environment

    • Operating system: Windows
    • Application: OpenAI Codex desktop
    • Codex CLI version: 0.163.0-alpha.10.2
    • Git implementation: Git for Windows
    • Triggering client: Codex Android Remote
    • Affected operation: gitDiffToRemote
    • Repository characteristics: Numerous untracked files, including binary test fixtures and structured data files

    Steps to Reproduce

    The following sequence is reconstructed from diagnostic evidence. It should not be reproduced on an unprotected production workstation.

    1. Open a repository containing numerous nonignored untracked files.
    2. Connect to the running Codex session using the Android Remote client.
    3. Resume the session.
    4. Trigger a remote repository diff request through gitDiffToRemote.
    5. Observe the Codex app-server creating Git comparison processes for individual untracked files.
    6. Observe process counts and resource consumption increasing without an effective aggregate concurrency bound.

    The exact initial trigger for the first observed process wave was not recovered. A later wave was correlated with a specific Remote diff request.

    Actual Behavior

    The Codex app-server spawned thousands of concurrent Git processes.

    Observed effects included:

    • More than 12,000 simultaneous Git processes during peak sampling.
    • Windows system commit memory approaching its commit limit, despite substantial available physical RAM.
    • Process termination and diagnostic commands failing or stalling because of resource exhaustion.
    • Git processes reappearing after emergency termination while the initiating application remained active.
    • Temporary recovery after Git process populations were terminated.
    • Repeated process counts of zero during a subsequent observation window, without evidence that the underlying defect had been repaired.

    Sample Git command structure:

    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>
    

    The comparisons included both text files and binary fixture files.

    On Windows, Git execution involved a launcher process and the underlying Git executable, increasing the operating-system process count associated with each comparison.

    Expected Behavior

    Remote Git diff generation should:

    • Enforce a strict limit on concurrent Git child processes.
    • Bound aggregate resource consumption across simultaneous Remote requests.
    • Apply cancellation and timeouts that terminate child processes and their descendants.
    • Limit generated output and memory consumption.
    • Handle large numbers of untracked files without exhausting host resources.
    • Return an explicit partial-result, truncation, or failure status when configured resource limits are exceeded.
    • Remain responsive to cancellation and shutdown requests.

    Root-Cause Analysis

    The diagnostic evidence identifies the Codex app-server's Remote untracked-file diff path as the likely source of uncontrolled Git process creation.

    A captured application log recorded an Android Remote client resuming a session and issuing a gitDiffToRemote request shortly afterward.

    The subsequent increase in Git process counts, combined with the observed process parent-child relationships, links the later resource-exhaustion wave to the Remote diff operation.

    Inspection of the public source corresponding to the installed CLI version identified the relevant implementation:

    Source: [Codex [diff_against_sha](https://github.com/openai/codex/blob/rust-v0.163.0-alpha.10.2/codex-rs/git-utils/src/info.rs#L659-L719) implementation](https://github.com/openai/codex/blob/rust-v0.163.0-alpha.10.2/codex-rs/git-utils/src/info.rs#L659-L719)

    The implementation:

    1. Enumerates nonignored untracked files.
    2. Prepares an individual binary, no-index Git comparison for each file.
    3. Uses join_all to execute the prepared asynchronous comparisons.
    4. Does not enforce a concurrency bound on the per-file comparisons at that level.

    This mechanism is consistent with the observed Git command arguments and process fan-out.

    Individual process timeouts do not prevent excessive aggregate resource consumption when many processes launch concurrently.

    The public upstream main branch contains an implementation using an eight-wide buffered stream:

    [Codex upstream implementation](https://github.com/openai/codex/blob/main/codex-rs/git-utils/src/info.rs#L660-L723)

    This is evidence of an implementation difference, not confirmation that the installed desktop version includes a complete fix or that overlapping requests are globally bounded.

    Impact

    The incident affected host-level system stability rather than only the originating repository or session.

    Observed consequences included:

    • Severe process proliferation.
    • System commit memory exhaustion.
    • Failure of otherwise routine system-management commands.
    • Difficulty terminating the accumulated Git processes.
    • Risk of application failures or operating-system instability.
    • Repeated process accumulation after temporary recovery.

    The approximate decrease of hundreds of gigabytes in committed memory following process termination strongly suggests that the Git process population and associated work were major contributors.

    However, complete per-process memory attribution was not collected, so the precise amount attributable to Git alone is unknown.

    Recovery and Current Status

    Emergency termination was used to clear the accumulated Git process population.

    Subsequent monitoring showed zero Git processes repeatedly over an approximately nine-minute observation window, with substantially improved available commit capacity.

    However:

    • The Codex app-server remained running.
    • The affected Remote diff functionality was not disabled.
    • No application binary was patched.
    • No permanent configuration change was applied.
    • No controlled stress reproduction was performed.
    • A durable product fix was not verified.

    The observed recovery should therefore be considered temporary.

    Recommended Fix

    Implement coordinated resource limits for Remote Git diff generation:

    1. Apply a shared concurrency semaphore across Remote requests, not only within an individual request.
    2. Bound the number of Git child processes and the total queued work.
    3. Enforce maximum aggregate diff output and memory budgets.
    4. Propagate cancellation to running Git processes and confirm descendant termination.
    5. Avoid launching unnecessary individual comparisons for large untracked binary files.
    6. Return explicit errors or truncation indicators when limits are reached.
    7. Add regression tests covering large untracked-file populations, overlapping Remote requests, cancellation, and Windows Git process behavior.

    Related References

    Public source — affected version:
    https://github.com/openai/codex/blob/rust-v0.163.0-alpha.10.2/codex-rs/git-utils/src/info.rs#L659-L719

    Public source — upstream implementation:
    https://github.com/openai/codex/blob/main/codex-rs/git-utils/src/info.rs#L660-L723

    Related issue:
    #41982

    Conclusion

    The available evidence strongly indicates that the Codex Remote diff implementation can launch an unbounded number of per-file Git comparisons, producing extreme process proliferation and Windows system resource exhaustion.

    A later observed incident wave was linked to an Android Remote gitDiffToRemote request. The first wave's initiating request was not established.

    A permanent solution requires coordinated process concurrency limits, bounded resource consumption, and reliable cancellation across Remote diff operations.

  24. TomaxMe commented on Oct 18, 2026

    @TomaxMe

    After last week update, OpenAI seems to silently fixed this bug.
    My Windows 11 Pro works with Android now. After months.
    Hopefully, it works for you as well.

  25. Taibr commented on Oct 18, 2026

    @Taibr

    Independent Windows reproduction: Android Remote exhausts commit on a 48 GiB host

    Adding a captured incident from ordinary Remote chat switching, with independent native resource measurements and a mitigation retest. The evidence supports a product bug: a background Git comparison can create enough subprocesses to exhaust the host's commitment budget and take down the desktop.

    Environment

    • Windows 11 x64, OS version 10.0.26200.
    • Desktop MSIX version 26.1013.4894.0.
    • Bundled app-server 0.163.0-alpha.10.2.
    • Git for Windows 2.53.0.windows.1.
    • 48 GiB installed RAM; about 47.8 GiB OS-visible.

    Trigger and direct evidence

    About four local chats were active. The operator was switching between chats through Android Remote. A connection identified by the native server as codex_chatgpt_android_remote resumed a local chat and sent gitDiffToRemote. The first large Git-process sample followed about 3.335 seconds later.

    The affected repository's post-incident inventory contained 11,734 untracked entries, mostly generated diagnostic/test artifacts.

    Normalized parent-chain evidence, with identifiers removed:

    desktop application -> native app-server -> Git launcher -> Git implementation
    

    The first burst sample counted 94 live Git processes. Its retained detailed subset contained 69 Git records: 36 directly parented by that same app-server, and 33 parented by its Git launchers. This identifies the native caller; it is not a complete birth trace for every later process.

    Captured resource failure

    • Maximum sampled total system process count: 6,051. This is not a Git-only count.
    • Commitment reached 95,579,258,880 / 95,580,143,616 bytes (about 89.015 / 89.016 GiB), leaving 884,736 bytes (864 KiB) of headroom.
    • A later complete process sample counted 2,507 Git processes and 1,378 console hosts. The sum of readable Git private-memory counters was 44,075,057,152 bytes (about 41.048 GiB). This is private commitment, not resident RAM, and is not an exact Git-process peak.
    • Windows recorded Git/console-host failures with 0xc00000fd and Git failures with 0xc0000005.
    • Roughly 205 seconds after the request, Desktop Window Manager failed three restart attempts: twice with 0xc00001ad, then with 0xc0000005.
    • The operator reported an unresponsive grey screen; Task Manager and normal keyboard recovery actions did not work, requiring a power-button shutdown. The following boot recorded an unexpected shutdown with bugcheck code zero; this report does not claim a captured kernel bugcheck.
    • Git counts and commitment subsequently collapsed, but the recorder continued to observe no DWM process. This explains why healthy post-failure memory alone would miss the incident.
    Sanitized native sample data (relative times; GiB = 2^30 bytes)
    seconds_from_request,commit_GiB,commit_limit_GiB,available_physical_GiB,system_processes,git_processes,console_hosts,readable_git_private_GiB,dwm_processes,process_enumeration
    -0.779,24.859,68.956,24.329,595,0,125,0.000,1,complete
    3.335,26.390,68.956,23.918,736,94,174,1.465,1,complete
    101.281,63.632,68.956,15.355,3662,2056,1148,34.864,1,complete
    178.720,87.755,88.192,10.760,6051,NA,NA,NA,NA,skipped_above_95_percent_commit
    200.948,89.015,89.016,15.876,5672,NA,NA,NA,NA,skipped_above_95_percent_commit
    217.014,73.772,89.016,19.704,4363,2507,1378,41.048,0,complete
    221.599,25.932,68.956,29.213,596,3,124,0.000,0,complete
    258.037,24.950,68.956,30.070,596,5,124,0.000,0,complete

    Collection used GetPerformanceInfo, Toolhelp process snapshots and GetProcessMemoryInfo, targeting a two-second interval. The recorder itself issued no Git commands. Under high commitment it deliberately skipped process enumeration so it could continue recording system memory; NA means unavailable, not zero. Detailed related-process records were capped at 256 per sample; complete per-name counts and total system counts were not capped. Memory and process snapshots are sampled and not atomic.

    Matching-version source correlation

    The public source for the bundled version has git_diff_to_remote call diff_against_sha. That helper lists untracked files, creates one git diff --binary --no-index future per file, then awaits join_all(futures_iter). The helper and Git runner show no shared concurrency bound on that fan-out:

    This strongly identifies the mechanism when combined with the request and process-parent evidence. Exact subprocess command lines were not captured in this incident.

    Conditional mitigation and retest

    Backed-up repository-local Git exclusions for confirmed generated artifacts reduced the affected repository's untracked set from 11,734 to 86. No files were deleted; the index and tracked source were unchanged. No custom Codex binary was installed.

    The actual bundled app-server's gitDiffToRemote then completed against that repository in about 4.2 seconds, including all 76 remaining regular untracked files; subsequent chat-control requests succeeded. Directory entries are distinct from those regular-file checks.

    The operator subsequently reported successful switching across 33 Remote chats, including a very long-running one, with one brief disconnect. A recent 744-sample, approximately 25-minute recording showed a maximum sampled Git count of 6, peak commitment 18.078 GiB, and at least 30.172 GiB available physical memory. DWM was present in every complete sample. No matching application crash/hang records were found in that check. The brief disconnect's cause is unknown.

    This is conditional input reduction, not a fix for unbounded subprocess creation. Future large untracked sets can reintroduce the problem. There was also a separate stale-worktree cleanup retry loop; these measurements do not establish that it caused this burst.

    Requested product correction

    Please bound concurrent Git comparisons across overlapping requests, before subprocess creation; avoid retaining all completed per-file outputs until the batch ends; and make unavailable or truncated previews explicit. Regression coverage should use disposable repositories with many untracked files and overlapping requests, including Windows launcher/worker pairs.

    Public evidence here is intentionally limited to versions, aggregate counters, relative timing, normalized ancestry and source links. Account names, hostnames, local paths, repository names, chat/session IDs, original process IDs, credentials and raw private logs are omitted.

  26. tangiblewaves commented on Oct 19, 2026

    @tangiblewaves

    24. After last week update, OpenAI seems to silently fixed this bug.
    My Windows 11 Pro works with Android now. After months.
    Hopefully, it works for you as well.

    Can confirm this; access via ChatGPT remote works again like expected now.

  27. JuanjoSCu commented on Oct 23, 2026

    @JuanjoSCu

    Confirmed reproduction on Windows 11 — 2,800+ Git processes, Android Remote trigger (October 23, 2026)

    I can confirm that this issue is still reproducible on October 23, 2026, with the latest Codex Desktop update available to me (installed October 22).

    System configuration

    • OS: Windows 11, stable channel (not Insider)
    • CPU: AMD Ryzen 9 7950X3D
    • RAM: 64 GB DDR5
    • GPU: NVIDIA RTX 4090
    • Codex Desktop: Updated October 22, 2026 (latest version offered to me)
    • Remote client: Android

    First incident — More than 2,800 Git processes

    While working with Codex Desktop, Windows became almost completely unresponsive:

    • RAM utilization reached 99%.
    • CPU utilization reached approximately 92%.
    • Mouse movement became extremely sluggish.
    • Even Windows Task Manager barely responded.
    • Task Manager eventually revealed an enormous number of git.exe processes.

    I ran:

    taskkill /F /IM git.exe

    The command terminated more than 2,800 git.exe processes. I also stopped the active Codex tasks normally using the Stop button; I did not forcibly terminate the Codex application.

    After these actions, RAM utilization dropped from 99% to approximately 50%, and Windows recovered without a reboot. Since both actions were taken, I cannot attribute the entire reduction to taskkill alone.

    Repository cleanup

    My main project initially had 106,080 untracked, non-ignored files, mostly generated reports, temporary browser profiles, Playwright artifacts, and test outputs.

    I applied selective local Git exclusions, reducing that count to 15,072 files (an 85.8% reduction). Codex Desktop then appeared to work normally during local use.

    Second incident — Triggered by connecting from Android

    The issue returned when I attempted to connect to Codex from my Android phone.

    A PowerShell monitor was counting active git.exe processes every five seconds. Here is the actual recorded sequence (October 23, 2026, CEST / UTC+2):

    Time Active git.exe processes
    12:36:27 0
    12:36:47 0
    12:36:52 3
    12:36:57 73
    12:37:03 314
    12:37:09 595
    12:37:14 777
    12:37:20 878
    12:37:25 701
    12:37:31 1,049
    12:37:36 1,010
    12:37:42 927
    12:37:47 874
    12:37:53 935
    12:37:59 1,189

    Important clarification about the fluctuations

    The decreases in process counts were due to my manual intervention, not Codex recovering or stabilizing on its own.

    I was using another terminal window to repeatedly kill git.exe processes while the monitor continued recording, to prevent Windows from locking up again. Despite that, new Git processes kept appearing at an alarming rate.

    1,189 is the highest simultaneous count observed in this monitoring interval, not the total number of Git processes spawned. The cumulative number was higher because I was terminating processes throughout the incident.

    Observations and request

    1. This occurred with the latest Codex Desktop update available to me on October 23.
    2. Reducing untracked files from 106,080 to 15,072 did not prevent the Remote-triggered incident.
    3. Local use appeared stable after cleanup; connecting from Android coincided with the immediate recurrence of the Git-process storm.
    4. New Git processes continued appearing even while I repeatedly killed existing ones.
    5. The problem can make a high-end Windows workstation with 64 GB of RAM almost unusable.

    This points to Git operations triggered by Android Remote connection/synchronization, rather than simply heavy local repository activity. A global Git subprocess concurrency limit, protection against overlapping Remote refresh operations, and cancellation of obsolete Git operations would be worth investigating.

    I can provide the timestamped monitoring log and additional diagnostics if useful.

    Please prioritize this issue: it can exhaust system resources and effectively freeze Windows.

  28. Yurii0123 commented on Oct 23, 2026

    @Yurii0123

    Additional Windows incident on 2026-10-23: native 0.163.0-alpha.11.2, Android diff request before the user turn, and two process dumps

    I experienced a Windows host freeze after connecting to an existing local Codex chat from Android Remote. I have noticed this association on earlier occasions as well. The retained logs and two manual process dumps from this incident corroborate the gitDiffToRemote mechanism described here.

    Environment: Windows 11 Pro x64, OS version 10.0.26300; desktop package OpenAI.Codex_26.1016.8622.0; actual bundled executable reports codex-cli 0.163.0-alpha.11.2. Post-reboot configuration showed approximately 64 GiB physical RAM and a system-managed 64 GiB pagefile; these are not measurements of the incident's peak commit or previous commit limit.

    Request sequence, all UTC on October 23:

    16:19:08.996705  connection 25, request 29: thread/resume
    16:19:09.960806  connection 25, request 39: gitDiffToRemote
    16:20:21.641355  connection 25, request 48: turn/start
    

    Adjacent native log records identify connection 25 as codex_chatgpt_android_remote; all three requests belong to the same native app-server process. The diff request preceded the user turn by 71.681 seconds. Opening/resuming the chat initiated the Git work before the new task was submitted.

    A post-incident, read-only listing found 87,713 nonignored untracked files, including 15,381 under a locally installed Zig toolchain. This is a post-incident inventory, not an observed count of concurrent processes.

    Two manual full-memory process dumps, captured at 17:51:53 and 17:52:19 UTC, showed:

    • The same residual native app-server process, with one remaining thread.
    • Identical committed private memory: 1,046,175,744 bytes (997.71 MiB). These late snapshots do not measure earlier child-process memory use.
    • The same instruction pointer at ntdll!NtCreateUserProcess/ZwCreateUserProcess+0x14, with RAX=0xc000010a (STATUS_PROCESS_IS_TERMINATING).
    • Captured process-creation parameters identifying the Git executable and this command, with the private repository root omitted:
    git -c safe.bareRepository=explicit -c core.hooksPath=NUL -c core.fsmonitor=false diff --no-textconv --no-ext-diff --binary --no-index -- NUL tools/zig-python/ziglang/lib/libc/musl/src/thread/pthread_mutex_lock.c
    

    The user had been unable to force-close this residual process. The dumps corroborate the process-creation path but do not establish the precise kernel/driver reason termination did not complete. They contain no kernel stack and are not attached publicly.

    System-wide failure evidence:

    • 48 Application Error records for git.exe and 18 for conhost.exe in the selected incident window; these are crash records, not simultaneous-process counts.
    • Chrome and the Codex desktop package crashed with 0xe0000008 (Chromium OOM).
    • Desktop logs recorded a Chromium child launch failure with Windows error 1455; another application failed to create CoreCLR with 0x8007000E.
    • A user-initiated Windows restart was required. No historical system commit peak or complete live process census was captured, so no exact peak or full per-process memory attribution is claimed.

    The matching source tag's diff_against_sha enumerates nonignored untracked paths, creates a no-index Git comparison for each, and awaits the set with join_all. This matches the command recovered from the dumps; it is source-level corroboration, not a byte-for-byte reconstruction of the shipped executable.

    Repository ignore cleanup subsequently reduced the affected repository's untracked set to 39. No large-scale RPC reproduction or post-mitigation Remote retest was performed, so this is a verified reduction of eligible files, not proof of a product fix.

    Current upstream main appears to bound this path with MAX_CONCURRENT_UNTRACKED_DIFFS = 8. Please identify the Desktop release containing that change, and consider shared bounds across overlapping Remote requests, cancellation/descendant cleanup, and aggregate diff-output limits. An automatic chat-opening refresh should remain bounded even when a repository has many untracked files.

    Only reduced diagnostic facts are included here. No full dumps, private repository contents, account credentials, private paths, or chat transcripts are attached.

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

    appbugperformanceremotewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions