Skip to content

Windows: severe slowdown after extended use with high memory usage in cua_node and codex background processes #43405

Open

Description

@23xenon

Summary

After using the Codex desktop app for a while, the UI becomes severely slow or unresponsive. During an affected session, a Codex-bundled Node worker and the codex background process had very high private committed memory usage.

Environment

  • App package: OpenAI.Codex 26.901.6511.0
  • OS: Windows 11 Home, build 26200
  • Windows display language: Japanese
  • Installed RAM: 32 GB; approximately 8 GB is intentionally reserved for the integrated GPU
  • Total physical memory available to Windows: approximately 23.62 GiB
  • An external GPU dock is also connected

Observations before exiting

One process sample recorded:

  • node.exe (PID 31564): Private Bytes 15.22 GiB; Working Set 3.59 GiB.
  • This executable belonged to the Codex runtimes/cua_node directory. Its parent was node_repl.exe, and it was running trusted-worker.js.
  • codex.exe (PID 18624): Private Bytes 10.33 GiB; Working Set 5.39 GiB.

A separate system sample recorded:

  • Committed memory: 59.87 GiB out of a 66.63 GiB commit limit.
  • Available physical memory: approximately 1 GiB.
  • Resource Monitor showed hundreds of hard faults per second for the Node process at sampled moments.

Memory usage fluctuated between samples; continuous monotonic growth has not been established. Private Bytes figures above are private committed memory, not physical RAM usage or V8 heap measurements.

Exit/restart comparison

  1. I exited the application normally.
  2. Both affected processes disappeared automatically. No processes were manually killed and no memory-cleaning utility was used.
  3. After reopening the app, a new sample showed codex.exe at approximately 116 MiB of Private Bytes, and system available physical memory at approximately 10.42 GiB.
  4. The Node processes present in that post-restart sample each had approximately 20–75 MiB of Private Bytes. They may not have been running the same workload as the original worker, so this is not a controlled same-workload comparison.

Expected behavior

Memory consumption should remain manageable during extended use, without severe UI slowdown or unresponsiveness from excessive memory pressure.

Investigation requested

Please investigate memory retention, cache growth, or a possible leak in long-running cua_node/node_repl workers and the codex background process. The exact triggering sequence is not yet isolated. These observations do not establish a V8 garbage-collector defect or prove a memory leak.

Before/after Process Explorer and Resource Monitor screenshots were collected locally and can be provided if needed.

Activity

  1. added
    bug
    app
    windows-os
    on Sep 7, 2026
  2. 23xenon commented on Sep 7, 2026

    @23xenon
    Author

    Reproduced after restarting and resuming browser image-generation work

    After restarting the ChatGPT/Codex desktop app, I resumed an agent task that operated the sidebar browser for image generation. High memory usage recurred. The exact browser action responsible has not yet been isolated.

    Screenshot during this recurrence

    The attached Process Explorer screenshot shows codex.exe (PID 33240) with Private Bytes of 15,498,748 K (approximately 14.78 GiB) and a Working Set of 5,123,420 K (approximately 4.89 GiB).

    Later live diagnostic sample (not the same instant as the screenshot)

    • node.exe PID 41120: Private Bytes 20.14 GiB; Working Set 0.40 GiB.
    • The executable was in Codex's runtimes/cua_node directory; its parent was node_repl.exe (PID 41240).
    • codex.exe PID 33240: Private Bytes 6.70 GiB; Working Set 0.17 GiB.
    • A subsequent system-memory counter read returned AvailableMBytes = 4, committed memory 59.08 / 68.87 GiB, and PagesInputPersec = 95,186.

    These are point-in-time readings, not sustained averages or a proven leak. The process list and system counters were read sequentially. They nevertheless show severe memory pressure recurring after browser automation resumed.

    Redacted screenshots

    1. Recurrence after restarting and resuming browser work.
    2. An earlier pre-restart screenshot showing the original node.exe and codex.exe memory usage (a different sample from the numerical readings in the issue body).

    All unrelated process rows have been covered with solid black for privacy. The visible diagnostic rows and their numbers are unchanged.

    Recurrence after restart — unrelated processes redacted

    Earlier high-memory sample — unrelated processes redacted

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

    appbugperformancewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions