codex - 💡(How to fix) Fix VS Code extension causes intermittent high CPU in window renderer on Fedora 43 [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17856Fetched 2026-04-15 06:27:13
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Author
Timeline (top)
commented ×2labeled ×2renamed ×1

The OpenAI Codex / ChatGPT VS Code extension appears to cause intermittent high CPU usage in the VS Code window renderer.

This is not the Go app in the workspace, not gopls, and not the GPU path.

Root Cause

The OpenAI Codex / ChatGPT VS Code extension appears to cause intermittent high CPU usage in the VS Code window renderer.

This is not the Go app in the workspace, not gopls, and not the GPU path.

Code Example

CPU %   Mem MB     PID  Process
    4   143739525896      6534  window [1] (settings.json - wcs-core - Visual Studio Code)
    0   114991620717      6638  extension-host [1]
    0   17248743108       6658  file-watcher [1]

---

/usr/share/code/code --type=zygote

---

02:20:00 AM  1000      6534         -  123.76    6.93    0.00    0.99  130.69     0  code
02:20:00 AM  1000         -      6534   22.77    3.96    0.00    0.99   26.73     0  |__code
02:20:00 AM  1000         -      6542   12.87    0.99    0.00    0.00   13.86     2  |__ThreadPoolForeg
02:20:00 AM  1000         -      6544   14.85    0.00    0.00    0.00   14.85    11  |__ThreadPoolForeg
02:20:00 AM  1000         -      6610   14.85    0.00    0.00    0.00   14.85     9  |__ThreadPoolForeg
02:20:00 AM  1000         -      6611   14.85    0.00    0.00    0.00   14.85     1  |__ThreadPoolForeg
02:20:00 AM  1000         -      6612   13.86    0.00    0.00    0.00   13.86    15  |__ThreadPoolForeg
02:20:00 AM  1000         -      6614   13.86    0.00    0.00    0.99   13.86     3  |__ThreadPoolForeg
RAW_BUFFERClick to expand / collapse

Summary

The OpenAI Codex / ChatGPT VS Code extension appears to cause intermittent high CPU usage in the VS Code window renderer.

This is not the Go app in the workspace, not gopls, and not the GPU path.

Environment

  • VS Code: 1.115.0
  • VS Code commit: 41dd792b5e652393e7787322889ed5fdc58bd75b
  • Extension: openai.chatgpt-26.409.20454-linux-x64
  • OS: Fedora 43
  • Kernel: 6.19.11-200.fc43.x86_64
  • CPU: AMD Ryzen 7 5800HS with Radeon Graphics

Symptoms

  • intermittent CPU spikes in the VS Code window renderer
  • spikes happen even when the project itself is mostly idle
  • the hot process is the VS Code window/renderer process, not the extension host
  • disabling GPU does not help
  • disabling extensions fixes the issue
  • re-enabling the Codex extension appears to bring it back

What I Observed

From code --status:

CPU %   Mem MB     PID  Process
    4   143739525896      6534  window [1] (settings.json - wcs-core - Visual Studio Code)
    0   114991620717      6638  extension-host [1]
    0   17248743108       6658  file-watcher [1]

From process inspection:

/usr/share/code/code --type=zygote

From sampled CPU data:

02:20:00 AM  1000      6534         -  123.76    6.93    0.00    0.99  130.69     0  code
02:20:00 AM  1000         -      6534   22.77    3.96    0.00    0.99   26.73     0  |__code
02:20:00 AM  1000         -      6542   12.87    0.99    0.00    0.00   13.86     2  |__ThreadPoolForeg
02:20:00 AM  1000         -      6544   14.85    0.00    0.00    0.00   14.85    11  |__ThreadPoolForeg
02:20:00 AM  1000         -      6610   14.85    0.00    0.00    0.00   14.85     9  |__ThreadPoolForeg
02:20:00 AM  1000         -      6611   14.85    0.00    0.00    0.00   14.85     1  |__ThreadPoolForeg
02:20:00 AM  1000         -      6612   13.86    0.00    0.00    0.00   13.86    15  |__ThreadPoolForeg
02:20:00 AM  1000         -      6614   13.86    0.00    0.00    0.99   13.86     3  |__ThreadPoolForeg

This looks like renderer-side work spread across multiple Chromium/Electron worker threads.

What I Tried

  • ran the noisy Python job outside the VS Code integrated terminal
  • set terminal scrollback lower
  • reduced watcher/search/Git churn in workspace settings
  • ran code --disable-gpu
  • ran code --disable-extensions

Results

  • moving Python out of the integrated terminal reduced one trigger, but did not fully solve it
  • code --disable-gpu did not change the issue
  • code --disable-extensions made the problem go away
  • the issue appears to return when the Codex extension is enabled again

Expected Behavior

The extension should not cause intermittent high CPU in the VS Code window renderer during normal use or low-activity periods.

Actual Behavior

With the extension enabled, the VS Code window renderer intermittently uses high CPU across multiple worker threads.

Additional Notes

  • this looks more like renderer/UI/webview/decorations/terminal integration work than GPU or backend work
  • the extension host itself was not the hot process during the captures

Attachments

I also collected a more detailed local report with:

  • code --status
  • ps, top -H, pidstat
  • process tree and /proc snapshots

extent analysis

TL;DR

The OpenAI Codex extension likely causes intermittent high CPU usage in the VS Code window renderer, and disabling the extension resolves the issue.

Guidance

  • The problem seems to be related to the extension's interaction with the VS Code renderer, as disabling the extension fixes the issue and re-enabling it brings the problem back.
  • To mitigate the issue, try disabling the Codex extension when not in use or explore alternative extensions that provide similar functionality.
  • If the issue persists, consider reporting it to the extension developers with the detailed local report collected, including code --status, ps, top -H, pidstat, process tree, and /proc snapshots.
  • Reviewing the extension's documentation and settings may also help identify any configuration options that could reduce CPU usage.

Example

No specific code snippet is applicable in this case, as the issue appears to be related to the extension's behavior rather than a code-specific problem.

Notes

The exact cause of the high CPU usage is unclear, but it seems to be related to the extension's renderer-side work. The issue may be specific to the combination of the extension, VS Code version, and system configuration.

Recommendation

Apply workaround: Disable the Codex extension when not in use, as this has been shown to resolve the issue. This workaround allows for continued use of VS Code while minimizing the impact of the high CPU usage.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING