high CPU consuming when codex diff render
What version of the Codex App are you using (From “About Codex” dialog)?
openai.chatgpt-26.313.41514-darwin-arm64
What subscription do you have?
pro
What platform is your computer?
Darwin 25.3.0 arm64 arm
What issue are you seeing?
Opening the Codex Diff view causes extremely high CPU usage (200%–330%+) even when idle.
After downgrading the extension to a previous version, the Diff view no longer renders at all.
This issue is reproducible across both VS Code and Cursor, suggesting it is likely related to the extension itself rather than the editor.
Steps to Reproduce:
Open VS Code or Cursor
Open Codex / ChatGPT extension
Open an existing task / conversation
Open Codex Diff view
Expected Behavior
Diff view renders normally
CPU usage remains stable
Actual Behavior On version 26.318.11754:
Opening a previous task immediately increases CPU usage (~200%–250%)
Opening Codex Diff view increases CPU usage further (~300%+)
CPU remains high even when idle (no interaction)
What steps can reproduce the bug?
Downgrading to the previous version resolves the high CPU issue when open codex diff, as no other troubleshooting steps have been able to reduce it.
On version 26.313.41514 (after downgrade):
Codex Diff view does not render at all
UI appears blank or stuck
Chat/task features still work
What is the expected behavior?
_No response_
Additional information
_No response_
19 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Not duplicate. no long git diff, only couple lines diff ; no ripgrep (rg) process runaway
Reproducible across VS Code and Cursor
Update with Error Logs:
I've isolated the cause of the 250%+ CPU spike. The extension is entering an infinite error loop when the Diff view is active. It is spamming thousands of requests per minute for an unsupported target.
Log Snippet:
2026-03-23 12:05:15.033 [error] Error fetching errorMessage="open-in-target not supported in extension" errorName=Error url=vscode://codex/open-in-targets
Observed Behavior:
CPU pins at 250-300% immediately when clicking the Codex diff.
CPU drops to normal levels as soon as the Codex dialog/diff is closed or clicked away.
This is happening on macOS (darwin-arm64) with extension version 26.318.11754.
It appears to be an "event storm" similar to what is described in issue #15397. However, in my case, it is not solved even moving back the the primary left side bar. The issue did happen since from the codex extension was removed from the left side with unknown reason after vscode got updated.
The error is not occasional — it is emitted continuously at a very high rate (thousands of times per minute), which strongly suggests a missing guard or retry loop without backoff.
This likely explains both:
I'm seeing the same in VSCode on Linux (6.19.8-arch1-1 | AMD AI 7 Pro 350). Codex Ver. 26.318.11754
An active Codex session will peg one thread of the CPU. As noted by issue reporter, this only happens when a session is active; e.g. after a prompt is processed with file changes / diffs. If I go "back" to view all Codex sessions/chats, the CPU immediately drops back to idle, and resuming the problematic session/chat ramps the CPU back to 100%. Restarting VSCode and resuming that same problematic thread no longer pegs the CPU. Notably, in this case the diff hints/links are also absent after restart.
I also began noticing this after the Codex extension was suddenly missing from the left side bar, presumably following an update(?).
I had the same issue. In my case, the problem was resolved by pressing Ctrl + Shift + P and running "Developer: Reload Window".
As @andredunford mentioned, the list of diffs had been removed,
same issue,using higher version than 26.313.41514 can cause this problem.macos 14
Me too
Codex:
26.323.20928
VSCode:
Version: 1.112.0 (Universal)
Commit: 07ff9d6178ede9a1bd12ad3399074d726ebe6e43
Date: 2026-03-17T18:09:23Z (1 wk ago)
Electron: 39.8.0
ElectronBuildId: 13470701
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0
the same issue
The same issue. I have sent a beedback message: fa86b609-5df7-454e-ae09-89b36008fd06
I'm not sure if mine is the same issue.
The Code Helper (Renderer) keeps high cpu even the codex tasks stopped.
Same issue
Linux lt 6.18.8-arch2-1
AMD Ryzen 9 8945HX
90°C
Same issue when Codex applying edits.
Environment:
Symptoms:
Happens consistently after applying ANY edits.
I can reproduce a very similar issue on Windows 10 with VS Code Remote SSH.
Environment:
Observed behavior:
What is hot:
Code.exerenderer processes andnode.mojom.NodeService.sshitself is usually not the hot process when this happens.Relevant logs:
PendingMigrationError: navigator is now a global in nodejsAttempted to report in-progress status for unknown chat session type 'openai-codex'Important isolation result:
preview / session rendering path is the trigger.
This looks very similar to the high-CPU Codex Diff / session rendering issue described here, but in my case it is
especially visible in a Windows local + Remote SSH to Ubuntu workflow.
This solved temporarily the issue on my linux vscode 1.115.0 + codex 26.5409.20454 deployment:
(credits goes to this solution -- osx only)
I dug into the installed IDE extension bundle (
openai.chatgpt-26.5409.20454-linux-x64) and this looks less like a diff-rendering problem and more like a capability-negotiation bug.In the extension host,
open-in-targetsandset-preferred-appare implemented as throwing stubs (Error("open-in-target not supported in extension")). The diff/review webview eagerly queriesopen-in-targetsto decide which “Open in …” actions to show. Because that query fails with no data, TanStack Query still treats it as stale, sostaleTime: ONE_MINUTEdoes not prevent refetches on remount/focus/re-observe. That turns an unsupported feature into repeated bridge calls/logging/retries and high CPU.Suggested fix:
open-in-targets, e.g.{ preferredTarget: null, availableTargets: [], targets: [] }set-preferred-appinstead of throwing@tibo-openai After weeks that the extension is not usable cause heavy CPU load it is time to fix it. The analysis is clear.
It seems to be fixed in Codex vscode extension version 26.415.20818
Adding a bit more from codex's own tracing: