Skip to content

Codex app 100% CPU Usage even when only one agent is running #11981

Closed

Description

@beladiyaraj

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

Version 26.212.1823 (661)

What subscription do you have?

Plus

What platform is your computer?

Mac OS 26.3

What issue are you seeing?

I am experiencing this issue, only one agents are running right now and see the CPU Usage right now
https://image2url.com/r2/default/images/1771239005182-8a7708b9-5677-4d97-8956-86207364e2c8.png

I am on latest macos version : 26.3
I have Macbook M4 16GB varient

What steps can reproduce the bug?

Open the app and just give any task and the cpu usage will be at 100% right away

What is the expected behavior?

Even when i run many agents to do work it should not take this much cpu usage cause this is happening on cloud.

Additional information

No response

Activity

  1. added
    appIssues related to the Codex desktop app
    on Feb 17, 2026
  2. etraut-openai commented on Feb 24, 2026

    @etraut-openai
    Contributor

    @beladiyaraj, are you still seeing this with the latest version of the app? We've fixed a number of performance issues since then. If you're still seeing this, please provide additional details about how we might be able to repro the problem. You mentioned "this is happening in the cloud". Are you saying that you're using a cloud thread (where the tool calls are happening on Codex cloud), or is it a local thread? Are you seeing this with all threads or just some? For example, does it happen only with really long threads?

  3. lordsoffallen commented on Feb 24, 2026

    @lordsoffallen

    Having the same issue, syspolicyd spikes at 100 and i can't do anything. Even when i don't do anything, it's still happening.

  4. pllopis commented on Feb 26, 2026

    @pllopis

    Observing the same thing that I mentioned in this other issue: #11179 (comment) it sems that Codex is doing posix_spawn on a directory(!) at root of my project (not a binary) repeatedly many times per second and triggering massive syspolicyd cpu spikes.

  5. whitemankpi commented on Feb 26, 2026

    @whitemankpi
    Image same situation as in others, latest version

    chip: Apple M1 Pro

  6. DigitarInt commented on Mar 5, 2026

    @DigitarInt

    Adding a correlated data point from local diagnostics (Mar 5, 2026, macOS).

    What looks wrong:

    • CPU is mostly consumed by desktop client processes (Renderer/GPU), not a single backend call.
    • Symptoms match a cluster of issues tied to:

    Local measurements:

    • Current snapshot: total Codex app CPU ~58%, RSS ~1.3 GB (Renderer + GPU processes dominate).
    • Earlier today (09:17 session): WARN=6, ERROR=360, ENOENT=339.
    • Later today (09:56 session): WARN=8, ERROR=14, ENOENT=8.

    What improved usage-wise (correlation, not proof):

    • Keeping active change set smaller,
    • avoiding large generated/build artifacts in tracked diffs,
    • restarting into a fresh session when UI starts lagging.

    This looks like multiple client-side perf paths rather than one single bug.

  7. beladiyaraj commented on Mar 5, 2026

    @beladiyaraj
    Author

    @etraut-openai I have not encountered this issue after the update has been done

  8. etraut-openai commented on Mar 5, 2026

    @etraut-openai
    Contributor

    @beladiyaraj, thanks for the confirmation. I'm going to leave this bug open a little longer to wait for confirmation from others who have posted here.

  9. DigitarInt commented on Mar 6, 2026

    @DigitarInt

    Yes, problem solved and the new model is awesome (GPT-5.4)!

    Edit: not solved. Perhaps worktrees cause the issue...after automations have been running...

  10. rob-balfre commented on Mar 8, 2026

    @rob-balfre

    Image
    Image
    Image

    My mac is boiling running one prompt 🔥

  11. stanedgar6 commented on Mar 8, 2026

    @stanedgar6

    I have that issue when running codex on RustRover on Ubuntu

  12. nezzard commented on Mar 9, 2026

    @nezzard

    Have same issue

  13. TestMsr commented on Mar 11, 2026

    @TestMsr

    same issue in apple m3

  14. 24 remaining items

  15. gitryson commented on Apr 19, 2026

    @gitryson

    This Codex overheating issue makes the user experience terrible. And they still haven’t fixed it quickly—seriously speechless.

  16. gitryson commented on Apr 19, 2026

    @gitryson

    When I open Codex, there are two Codex Helper Renderer processes, and both hit 100% CPU, even when I’m not doing anything.

  17. rob-balfre commented on Apr 19, 2026

    @rob-balfre
  18. jxhnx commented on Apr 19, 2026

    @jxhnx

    I had this issue for weeks with the vs-code extension. This worked for me

    https://github.com/jxhnx/codex/tree/fix/code-extension-cpu-regression/patches/openai-chatgpt-vscode-extension-26.5415.20818-broadcast-warning-hotfix

    Pinned to a recent version. No guarantees. Platform macOS Tahoe 26.4.1.

  19. mrairdon-midmark commented on Apr 25, 2026

    @mrairdon-midmark

    Same on Windows... the perf of the desktop app is horrible. The only reason I don't recommend it to more people.

    My feedback id if it helps:
    d1467c55-28f3-4c72-954c-e3331663e76c

  20. oimrqs-ops commented on Apr 25, 2026

    @oimrqs-ops

    I had this issue for weeks with the vs-code extension. This worked for me

    https://github.com/jxhnx/codex/tree/fix/code-extension-cpu-regression/patches/openai-chatgpt-vscode-extension-26.5415.20818-broadcast-warning-hotfix

    Pinned to a recent version. No guarantees. Platform macOS Tahoe 26.4.1.

    Just did this, didn't do anything for me.

    Edit: Actually, the CPU usage is still high but my Mac isn't making as much noise. Progress I think?

    Edit 2: Nah, still the same thing.

  21. oimrqs-ops commented on Apr 26, 2026

    @oimrqs-ops

    Figured out that using Codex (beta).app makes the cpu and gpu usage about 30-35% less than with the main app. Worth it for now.

  22. ptoyip commented on Apr 28, 2026

    @ptoyip

    Got the same problem for few weeks, now just open codex app makes my Mac overheated. No agents are running, simply open it. M4 chip with 24Gb ram, sequoia 15.4.1. Codex 26.422.30944 (2080)

  23. oimrqs-ops commented on Apr 28, 2026

    @oimrqs-ops

    Got the same problem for few weeks, now just open codex app makes my Mac overheated. No agents are running, simply open it. M4 chip with 24Gb ram, sequoia 15.4.1. Codex 26.422.30944 (2080)

    I coded my own codex app. Its 9x more cpu efficient. No heating, no jet engine sound, super smooth. Highly recommend.

  24. kinthaiofficial commented on Apr 28, 2026

    @kinthaiofficial

    High CPU usage with a single agent is usually caused by one of three things in agent architectures:

    1. Polling loops without backoff: The agent loop polls for state changes (file system events, model responses, background tasks) at maximum frequency instead of using event-driven notifications. This consumes 100% of one CPU core even when idle.

    2. Context window management thrashing: When context approaches the window limit, the system enters a compact-expand cycle. It compacts context to free space, which triggers a state recalculation, which expands context again, which triggers compaction. We see this in our multi-agent deployment when the compaction threshold is too close to the context limit.

    3. Unbounded memory growth leading to GC pressure: Agent state (conversation history, tool results, cached embeddings) grows over time. Without proactive cleanup, the garbage collector runs continuously trying to free memory, consuming CPU.

    What we do to keep agents efficient:

    1. Event-driven agent loop: The agent sleeps until there is work to do (user message, tool result, timer event). No polling. CPU usage is near zero when idle.

    2. Progressive compaction with hysteresis: Compact when context reaches 75% of limit. Do not re-expand until context drops below 60%. The 15% gap prevents the compact-expand thrashing cycle.

    3. Per-agent resource budgets: Each agent has a CPU time limit per turn. If a single reasoning step exceeds the limit, it is interrupted and the agent reports partial results. This prevents one complex prompt from monopolizing the CPU.

    4. Memory management: Tool results are compacted after processing (full result compressed to structured summary). Working memory is bounded with an LRU eviction policy.

    Context management architecture: https://blog.kinthai.ai/why-character-ai-forgets-you-persistent-memory-architecture

    Multi-agent resource governance: https://blog.kinthai.ai/openclaw-multi-tenancy-why-vm-per-user-doesnt-scale

  25. mrairdon-midmark commented on May 1, 2026

    @mrairdon-midmark

    Found the problem for me and a workaround in #20213

  26. rob-balfre commented on May 5, 2026

    @rob-balfre
    Image

    Really want to use Codex app but keep going back to the CLI as the performance is just crazy still

  27. tomleader commented on May 9, 2026

    @tomleader

    Macbook(M4 pro with 48G ram, sequoia 15.6.1). Just open Codex(Version 26.506.31421 (2620)) with a chat, cpu usage raise to 200% and always keep the weird status unless I quit the app😭

  28. chess-oai commented on Aug 15, 2026

    @chess-oai
    Contributor

    the original reporter confirmed this was resolved after an app update

    this thread now combines several unrelated cpu reports, and we’re trying to avoid overly broad bucketing issues like this and focus only on issues with strong repros

    please file new issues and include current version, affected process, and repro steps when unexpected high cpu still occurs

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

    appIssues related to the Codex desktop appbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions