Skip to content

Codex macOS app main process spikes to 250% CPU during long local development session #22676

Open

Description

@wolfevol-hash

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

26.506.31421

What subscription do you have?

pro

What platform is your computer?

No response

What issue are you seeing?

Environment

  • App: Codex Desktop App
  • OS: macOS
  • Codex app version visible in process args: 26.506.31421
  • Workflow: Long-running local development session with local server, browser/Playwright verification, large chat context, and screenshots.

Problem

Codex Desktop App CPU usage becomes extremely high during an active session. Opening a new chat often temporarily resolves the issue, suggesting the issue is tied to long session state, renderer/app process state, or accumulated context/UI work.

Observed CPU snapshot

From ps -axo pid,ppid,pcpu,pmem,etime,command | sort -k3 -nr | head -30:

  • /Applications/Codex.app/Contents/MacOS/Codex: 249.4% CPU
  • Codex Helper (Renderer): 15.2% CPU
  • Codex Helper --type=gpu-process: 13.8% CPU
  • codex app-server --analytics-default-enabled: 9.4% CPU

The project server was not the cause:

  • src/app.py: 0.0% CPU
  • No leftover high-CPU Playwright/Chrome process related to the test
  • Local firmware updater service stayed idle

Expected behavior

Codex should not sustain extremely high CPU usage during a normal long coding session. If a browser/renderer/session becomes expensive, it should recover, throttle, or provide a way to reset that part without forcing a new chat or app restart.

Actual behavior

Codex main process spikes above 200% CPU. User frequently has to start a new chat or restart Codex to recover performance.

Notes

This is reproducible during long UI development sessions with:

  • large conversation history
  • screenshots/images in thread
  • local browser verification
  • repeated file edits and test runs

What steps can reproduce the bug?

Use Codex macOS app for a long local coding session with many screenshots, file edits, tests, and localhost browser checks in the same chat. After several hours, Codex.app main process spikes to ~250% CPU while the local project server is idle. Starting a new chat or restarting Codex temporarily fixes it.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on May 14, 2026
  2. added
    bug
    on May 14, 2026
  3. chyhly-cloud commented on Jul 16, 2026

    @chyhly-cloud

    I can independently reproduce this on a much higher-memory Apple Silicon Mac, and the hot process is specifically the desktop renderer.

    Environment:

    • Codex Desktop App: 26.707.72221 (CFBundleVersion 5307)
    • Bundled CLI: codex-cli 0.144.2
    • macOS 15.6.1 (24G90), Apple Silicon
    • 128 GB RAM, 16 logical CPUs

    Trigger:

    • A long-running local task containing many PDF page screenshots, image annotations, and repeated PDF review/render cycles.
    • The PDF/rendering commands had already completed, but the desktop remained severely laggy.

    Observed during the lag:

    • Codex (Renderer) stayed at ~101–102% CPU.
    • Renderer RSS grew from ~2.6 GB to ~3.58 GB in about five minutes.
    • A five-second sample showed the renderer main thread continuously executing V8/JavaScript paths together with PNG decoding (rust_png...Reader::next_interlaced_row).
    • Codex app-server was ~13.7% CPU and the GPU process ~8.4% at the same snapshot.
    • WindowServer rose to ~44%, making the whole desktop feel unresponsive.
    • No pdftoppm, mutool, Ghostscript, Python, or other PDF rendering process was still active.
    • memory_pressure -Q reported 96% system memory free, with no compressed memory or swap activity, so this was not system memory exhaustion.
    • Disk space was also ample.

    The issue persisted while the task was otherwise idle. Restarting or using a new lightweight task is only a workaround; reopening the image-heavy long task can trigger it again.

    Expected:

    • Off-screen conversation images should be virtualized/unloaded.
    • PNG assets should not be repeatedly decoded after the render task has finished.
    • Renderer memory should stabilize, and the renderer should recover without requiring a new task or full app restart.
    • A per-thread renderer reset/reload would also be useful as a mitigation.

    I have not attached chat transcripts, project files, or logs because they contain private project content, but I can provide a redacted process sample if maintainers request it.

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

    appbugperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions