Skip to content

Codex app-server stuck at 100% CPU on macOS Apple Silicon when opening VS Code ChatGPT extension #7456

Closed

Description

@aitormendez

What version of Codex is running?

Tested both: openai.chatgpt 0.4.46 (stable release) • openai.chatgpt 0.5.47 (pre-release, Mac Silicon build) Both versions reproduce the same issue

What subscription do you have?

ChatGPT Plus

Which model were you using?

GPT-5.1-Codex_Max, GPT 5.1

What platform is your computer?

Darwin 23.6.0 arm64 arm

What issue are you seeing?

When I open the ChatGPT / Codex panel in VS Code on macOS Apple Silicon, the codex app-server process immediately rises to ~100% CPU and stays there for several minutes. During this time:

  1. The ChatGPT panel takes a very long time to initialize (often tens of seconds or more).
  2. About one out of every three prompt submissions gets stuck with a spinner for several minutes before finally responding.
  3. CPU usage remains very high throughout these delays.

After some minutes, the panel eventually loads and prompt submissions eventually complete, but the codex app-server process never stabilizes to low CPU usage — it continues running near 100% until VS Code is closed or the process is manually killed.

I tested both:

  • Stable version: openai.chatgpt 0.4.46
  • Pre-release version: openai.chatgpt 0.5.47 (Mac Silicon VSIX)

Both show exactly the same behavior.

What steps can reproduce the bug?

  1. Close all VS Code windows.
  2. Clean previous processes:
    pkill -f "codex app-server"
    ps aux | grep codex

(Only the grep line should remain.)

  1. Open VS Code with a single window (empty workspace or very small project).

  2. Open the ChatGPT / Codex sidebar.

  3. Observe that:
    • a single codex app-server process appears,
    • CPU instantly jumps to ~100%,
    • the panel takes a long time to finish initializing,

  4. Submit prompts:
    • some are processed normally after a delay,
    • roughly 1 out of every 3 prompts gets stuck with the spinner for several minutes before eventually completing.

What is the expected behavior?

The codex app-server process should briefly spike during startup and then settle to low CPU usage. The ChatGPT / Codex panel should load quickly, and prompt submissions should respond promptly and consistently.

Instead:

  • panel initialization takes an unusually long time,
  • prompt submissions often get stuck for minutes,
  • and CPU use stays near 100% for the entire time the extension is active.

Additional information

System details:

  • Mac Studio with Apple M2, 32 GB RAM
  • Apple Silicon (ARM64)
  • macOS 14.8 Sonoma
  • VS Code 1.106.3
  • ChatGPT / Codex extension:
    • Stable: 0.4.46
    • Pre-release: 0.5.47 (Mac Silicon VSIX)

I am not using Codex CLI outside the extension. No MCP servers configured. The issue happens even with a single VS Code window and an empty workspace.

If needed, I can provide the “Output → Codex” logs or Activity Monitor traces.

Activity

  1. added
    bug
    on Dec 1, 2025
  2. added
    extension
    on Dec 1, 2025
  3. SabareeshGC commented on Dec 15, 2025

    @SabareeshGC

    This is happening a lot and i see several instance of codex at 100% of cpu . I have to force close them to save the laptop power in activity monitor.

  4. bolinfest commented on Dec 16, 2025

    @bolinfest
    Collaborator

    Are any of your subfolders of ~/.codex particularly large? There have been occasions in the past where we loaded those resources inefficiently...

    You can also try adding:

    "chatgpt.logLevel": "debug", // or "trace"

    to settings.json to get extra info in the output pane for Codex.

  5. ZeldOcarina commented on Feb 7, 2026

    @ZeldOcarina

    Yeah this is a major issue right now. I have a 64GB M2 Max Mac Studio and the memory gets completely filled and it uses abt 12/15GB of swap just to use Codex, the CPU goes to 75/80% and the app is super slow/unresponsive. I understand M2 is a little old now but this is a little too much imo.

    This is with the new MacOS app, I know it may be a little out of context but it may be related.

  6. etraut-openai commented on Feb 20, 2026

    @etraut-openai
    Contributor

    We've fixed a bunch of performance issues in this space over the past two weeks. Are you still seeing this problem with the latest builds?

  7. aitormendez commented on Feb 20, 2026

    @aitormendez
    Author

    I’m no longer experiencing this issue. It seems to have been resolved quite a while ago in one of the subsequent updates.

  8. etraut-openai commented on Feb 20, 2026

    @etraut-openai
    Contributor

    Thanks for confirming. It's possible that there are still performance issue that we haven't addressed. I'm going to close this issue. If you're experiencing a similar perf issue with the latest version, please open a new bug report.

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

    bugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions