High CPU usage on macOS after updating Codex in VS Code extension to 26.325.31654
What version of the IDE extension are you using?
26.325.31654
What subscription do you have?
High CPU usage and temperature on macOS after updating Codex
Which IDE are you using?
VS Code
What platform is your computer?
MacBook pro with Apple Silicon (M5 Pro) MacOS Tahoe 26.4
What issue are you seeing?
First of all, many thanks to Hlib Laskin. My comment here is intended as an update to his post, based on what I encountered with a newer version of the Codex extension.
For the full background and detailed explanation, I recommend reading his post, since he described the issue very clearly.
https://github.com/openai/codex/issues/7972?utm_source=chatgpt.com
I noticed this problem after my MacBook automatically updated to macOS 26.4. At first, I thought the overheating was caused by a compatibility issue between the latest macOS version and the VS Code extension. After checking both the hardware and software and finding no obvious problem, I came across their post. I then tried rolling back the Codex extension version, and that indeed solved the issue.
If anyone else is experiencing a similar problem, rolling back the Codex extension to a version that you remember being stable may help resolve it.
Model of Codex:
- GPT-5.4
The platform of my computer:
- MacBook pro with Apple Silicon (M5 Pro) MacOS Tahoe 26.4
How to install specific version?
- First, open VSCode "Extensions" and choose "Codex - OpenAI's coding agent"
- Click the downward arrow to the right of “Uninstall”, then select “Install Specific Version…”.
- Select a version that you remember as being stable. I chose the version from a week ago (26.318.11754). This step may vary from person to person. If you are not sure which one to choose, you can try one first and then check the CPU usage and temperature.
What steps can reproduce the bug?
View: https://github.com/openai/codex/issues/7972?utm_source=chatgpt.com
What is the expected behavior?
View: https://github.com/openai/codex/issues/7972?utm_source=chatgpt.com
Additional information
_No response_
72 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
+1
Yeah I've been experiencing this several times. I've had this M4 over a year and I've only just started hearing the thermal fans after this bug has started cropping up. Not sure what I can say thats technical.
+1
I can confirm this on the same extension version (
26.325.31654) and on macOS 26.4.In my case the hot process is mainly the VS Code extension host, not the Codex backend:
Code Helper (Plugin): about 36.4% CPUcodex app-server: about 2.1% CPUI also see repeated warnings in the Codex logs:
Examples from one affected run:
Codex.log:12Codex.1.log:1461Codex.3.log:255Codex.3.log:256Codex.3.log:265The affected session also rotated logs quickly:
Codex.1.logthroughCodex.6.log: 5.0 MB eachCodex.log: 2.5 MBThis makes my case look very close to both:
thread-stream-state-changedwarning loop26.325.31654I am seeing a consistent high-CPU loop in the Codex VS Code extension that appears to be tied to a single conversation state, not prompt complexity.
Environment
Symptoms
Strong log signal
Logs show a tight repeated error loop:
In my case, this repeats at very high frequency (roughly dozens of log entries per second), and accumulates into many thousands of repeated entries across rotated logs in one session. That strongly suggests an immediate retry loop with no effective backoff once this state is reached.
Why this looks like an extension-side conversation-state loop
Repro steps
The problem happens in two different Fedora 43 computers (so it's not tied to one environment).
Current workarounds
Regression check
Can confirm that the issue disappears when reverting to 0.4.79. In my case using the Codex extension in Antigravity 1.21.9 (antigravity helper processes CPU usage to 100-200% until ending conversation.
yes its happening after 2 o 3 prompts, as soon as the codex panel its closed it goes back to normal even tho the agent it still running in the background
+1, macbook is roasting my hands in VSCode with Codex, high CPU usage every time
I encountered the same issue; the temperature only slowly returned to normal after I closed the chat panel.
Rolling back to
0.4.79can solve this. Didn't try later versionsThis is a continuation to my previous comment. This time, I am providing a workaround that I have tested in my environment. Please pardon if this is not the correct posting format for this forum.
Codex VS Code Extension Bug and Workaround
Summary
This document describes a reproducible bug in the Codex VS Code extension and a local workaround that avoids the resulting log flood and high CPU usage.
Affected build observed locally:
openai.chatgpt-26.325.31654-linux-x64Important scope note:
Tested Environment
This workaround was verified only in the following environment:
Linux 6.19.10-200.fc43.x86_64 x86_64 GNU/Linux1.112.0x64Codex – OpenAI's coding agent26.325.31654No claim is being made here that the workaround is universally safe or portable. It is simply the environment where it was observed and tested.
Observed symptoms:
The root issue appears to be that the renderer/webview calls internal routes that the extension host in the same build does not support, and the host throws hard errors instead of degrading safely.
Bug Details
The failing internal routes observed locally were:
vscode://codex/open-in-targetsvscode://codex/local-environmentsThe corresponding extension host errors were:
open-in-target not supported in extensionlocal-environments is not supported in the extensionThis makes the issue look like an extension regression or feature mismatch inside the shipped build, not a repo-specific bug.
Reproduction
Example Log Sample
Representative errors seen in the Codex log:
Representative warning that remained even after the workaround:
Useful example log paths from the investigation:
~/.config/Code/logs/<session>/window1/exthost/openai.chatgpt/Codex.log~/Library/Application Support/Code/logs/<session>/window1/exthost/openai.chatgpt/Codex.log%APPDATA%\\Code\\logs\\<session>\\window1\\exthost\\openai.chatgpt\\Codex.logWhy This Looks Like an Extension Bug
So the best diagnosis is:
Workaround
The workaround is to patch the installed extension host so unsupported handlers return safe fallback responses instead of throwing.
This disables the affected unsupported features cleanly instead of letting them enter an error loop.
What The Workaround Changes
The patched handlers do this:
open-in-targetsreturns no available targetsset-preferred-appreturnssuccess: falselocal-environmentsreturns an empty listlocal-environment-configreturnsexists: falselocal-environment-config-savereturnssuccess: falseTradeoffs
These specific features will not work in the patched build:
What should still work:
File To Patch
Installed extension file:
~/.vscode/extensions/openai.chatgpt-26.325.31654-linux-x64/out/extension.js~/.vscode/extensions/openai.chatgpt-26.325.31654-darwin-<arch>/out/extension.js%USERPROFILE%\\.vscode\\extensions\\openai.chatgpt-26.325.31654-win32-<arch>\\out\\extension.jsNotes:
<arch>is usuallyarm64on Apple Silicon orx64on Intel.<arch>is commonlyx64.openai.chatgpt-*folder.Patch
Install Instructions
Examples:
~/.vscode/extensions/~/.vscode/extensions/%USERPROFILE%\\.vscode\\extensions\\Inside that directory, locate the installed
openai.chatgpt-*folder for your current build and then open itsout/extension.js.On macOS, use the same command in Terminal:
On macOS, this is the same default location. The main difference is just the platform-specific folder name, for example:
Developer: Reload WindowmacOS Notes
This workaround has not been tested on macOS in this investigation.
Based on the extension layout, it should be similar on macOS as long as you patch the installed
extension.jsfor the macOS build of the extension, but that is an informed expectation rather than a verified result.What likely changes on macOS:
darwinarm64on Apple Silicon orx64on Intel~/Library/Application Support/Code/logs/What likely does not change:
Remove Instructions
Restore the backup:
Then reload VS Code again.
You can also remove the workaround by reinstalling or updating the extension, which usually overwrites the patched file.
Results Seen After Applying the Workaround
In the latest verified session:
open-in-target not supported in extension:0local-environments is not supported in the extension:0Error fetching:0no-client-found:0The remaining warnings were
thread-stream-state-changed, but they did not appear to reintroduce the high CPU behavior.Suggested Upstream Fix
The extension should return safe fallback responses for unsupported internal routes instead of throwing hard errors. It would also be worth auditing the renderer so the VS Code extension build does not request features that are unavailable in that host environment.
Created a universal patch script for Apple Silicon. (before patching close your vs-code)
What it does:
Finds all extension.js files matching openai.chatgpt-*-darwin-arm64 in:
~/.vscode/extensions
~/.vscode-insiders/extensions
Creates a backup: extension.js.bak.<timestamp>.
Applies 6 replacements regardless of the extension version number.
Verifies the patch was applied correctly and restores from backup if verification fails.
https://gist.github.com/GoXLd/cdbaa5598df152d1ef63feec4c50a717
is better this fix or just use older version of plugin?
It’s better to use the patch - it fixes a critical issue in the current version. Rolling back to an older version is only a temporary workaround and may lead to other bugs or missing updates.
On a MacBook Air M4, I switched to the pre-release version in the extension manager and disabled auto-update. It seems to have reduced the resource usage. I’ll continue monitoring the metrics.
<img width="717" height="765" alt="Image" src="https://github.com/user-attachments/assets/55e987cc-e87b-4324-a341-9d8d9442d8b7" />
When can we expect a stable fix for this. I am on a Macbook Pro M5 Pro 24GB Model. Although, I am not hitting my memory. But the Macbook gets very hot. It is reaching around 85-100 deg celcius. Switching to version 0.4.79 does limit the temperate to 61 dec C. However, we loose on the plan mode.
Does any one know any other fixes?
Thanks! If you add:
"$HOME/.antigravity/extensions"to the roots, it will also patch the extension when using this in Antigravity
Done, patch updated https://gist.github.com/GoXLd/cdbaa5598df152d1ef63feec4c50a717
+++ support for both VS Code and VS Code Insiders arm64 extension paths;
Thanks for the feedback.
https://gist.github.com/GoXLd/cdbaa5598df152d1ef63feec4c50a717
It would be so nice to get this fixed, because now it feels like I have my old hot Intel Mac back
Hi all! sorry about the delay. I have a few ideas about the issue and will look into this now.
Just a note and some more evidence/logs below in case it helps.
Most importantly: I noticed the high cpu usage starts when a file is changed within the chat. it seems the issue relates to the file diff presentation.
I previously patched the installed extension host file (.../out/extension.js) so unsupported handlers returned safe responses instead of throwing. That workaround worked locally. After updating to a newer extension version, the issue returned because the extension update replaced the patched file.
Environment
OS: Linux fedora 6.19.11-200.fc43.x86_64 x86_64 GNU/Linux
VS Code: 1.112.0 (07ff9d6178ede9a1bd12ad3399074d726ebe6e43, x64)
Codex extension folders installed:
openai.chatgpt-26.325.31654-linux-x64
openai.chatgpt-26.409.20454-linux-x64 (current active build showing issue)
Repeated extension host errors for unsupported routes:
vscode://codex/open-in-targets
vscode://codex/local-environments
Very noisy warning stream (thread-stream-state-changed no-handler).
High CPU observed in VS Code/Codex processes during bursts.
Counts from today (just one chat session):
open-in-target not supported in extension => 939
local-environments is not supported in the extension => 2
thread-stream-state-changed warnings => 680
Burst density example:
open-in-target errors: 786 entries at 2026-04-11 08:40:53
open-in-target errors: 145 entries at 2026-04-11 08:40:54
thread-stream-state-changed: 54 entries at 08:44:28, 53 at 08:44:27
Representative log lines:
2026-04-11 08:40:52.991 [error] Error fetching errorMessage="open-in-target not supported in extension" ... url=vscode://codex/open-in-targets
2026-04-11 08:40:59.812 [error] Error fetching errorMessage="local-environments is not supported in the extension" ... url=vscode://codex/local-environments
2026-04-11 08:40:59.721 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed
Your patch worked. Thank you.
Sorry people. I am still experiencing this. I just opened VS Code and I am not even using Codex, it is just displayed at the sidebar, and my MBA M4 got insanely hot and CPU usage is more than 100% in activity monitor. Version 26.409.20454:
I will try uninstalling it from VS Code and use it from the native app, I don't remember facing this issue when I used it with Codex app
<img width="962" height="633" alt="Image" src="https://github.com/user-attachments/assets/cf5e521d-1ef7-460e-8e2e-4a0a763653a3" />
From my experience, I think it's the problem of code diff? My codex remains normal when only asking it to give a structure of the code base.
Adding a Linux data point to this issue.
Symptom
Extension renderer (
code --type=zygote) spins at 100-300%+ CPU while asession is idle or stalled waiting for a permission prompt. Accumulated
CPU time grows very fast — one process hit 222 minutes of CPU time in
~2 hours wall-clock. Disabling Codex extension immediately returns the system to
idle.
Version range
Isolated to the Codex extension by version bisect:
26.325.3165426.325.21211Rolling back to
26.325.21211resolves the issue completely andreproducibly.
Environment
Try this patch https://gist.github.com/GoXLd/cdbaa5598df152d1ef63feec4c50a717
I wonder what functions this patch actually disables ? I do really reply on codex to work on local projects.
Read the thread above if you want the details - it stops what should be a harmless error logging situation for something that isn't supported from turning into an infinite loop and burning 100% of the cpu.
I’m currently avoiding updating, because I don’t want to risk running into the same bug.
Does anyone know if this has been officially fixed in newer versions?
Honestly, it’s still surprising that this bug made it into a release.
The biggest concern for me wasn’t even the heat - it was the battery drain and potential long-term degradation. That’s actually how I first noticed the issue: my battery dropped from 100% to 0% in about two hours on an M4. Only after that did I check Activity Monitor.
Guys, do you know any other ways beside downgrade to 0.4.79 version ?
@Nikita-schetko
https://github.com/openai/codex/issues/16231#issuecomment-4205506808 (This patch script is for Apple Silicon (arm64) only)
@GoXLd
I’m on the latest stable (26.409.20454), and the high CPU load issue is still there unless you apply the patch from this thread
But, https://github.com/openai/codex/issues/16231#issuecomment-4227813993
@shijie-oai we need an update on this. This extension is not a hobby project; it is a product that enables us to use OpenAI's core agentic service for software development in VSCode + derivatives. That service is something we pay money for.
While there is a wonderful workaround provided in this thread by an enterprising user, that does not help the likely many thousands of users who have not stumbled upon this GitHub issue and are still struggling to understand why their IDE is running hot.
This is not a minor issue. 1) it is causing our computers to run hot, which makes fans run noisy, burns through battery cycles, and is incredibly eco-unfriendly; and 2) it is affecting ALL MAC USERS. That is a very large cohort that expects better than a meaningless apology after 2 weeks and then radio silence for another week with no meaningful updates. There are other options than OpenAI and this is the kind of thing that will repel your users. Do better. This should be an all-hands-on-deck moment for the Codex team.
issue is still present, codex is the only VSCode extension that i have installed. I have the latest VSCode and the latest Codex.
<img width="386" height="184" alt="Image" src="https://github.com/user-attachments/assets/319d9813-f4e5-4597-a3e9-0b084caeb914" />
This is still and issue in the latest extension update. I’ve been using the workaround from the comments above for about two weeks and haven’t noticed any side effects. In my case, it completely resolves the issue until the extension is updated and the workaround gets overwritten, at which point I need to apply it again.
Hi, @shijie-oai
I’d like to share a workaround and some findings regarding the high CPU usage and overheating issue on macOS (Apple Silicon) when using the ChatGPT/Codex VS Code extension.
After encountering the same problem described in OpenAI Codex issue #7972, I investigated further and noticed that the root cause appears to be related to the extension’s handling of local environment features (e.g.
local-environment,local-environments, config handlers, etc.).Key observations
Workaround / Patch
I created a patch script (macOS Apple Silicon only) that:
Specifically, the script disables:
local-environmentlocal-environmentslocal-environment-configlocal-environment-config-saveopen-in-targetsset-preferred-appAfter applying the patch: https://gist.github.com/GoXLd/cdbaa5598df152d1ef63feec4c50a717
Suggestion
It would be helpful to:
Thanks!
This problem still exists, I've completely re-install Vscode, and codex is the only plugin on my install, it still uses 100+ Cpu when codex panel is showing but nothing is going. I can say this problem exists since day one I use Codex in VSCODE. This is not a open source project maintained by volunteers, we paid thousands of dollars every month but they just cannot solve this for weeks.
<img width="495" height="166" alt="Image" src="https://github.com/user-attachments/assets/f8590dfd-b5f7-4204-b5d0-b41de30b625f" />
Facing the same issue on M4 Mac, CPU usage spikes to 200% due to Code Helper when Codex sidebar is open, but drops to normal when you close the sidebar (without reloading VS Code). However, it looks a person has found the issue and published a patch script on github for this issue - https://gist.github.com/almakompot/9796936f65cda204ad22c649f46483ea
We have pushed out a fix to address
open-in-targetsandset-preferred-appin v26.415.20818. I am currently following up address the local-environments.So do we have an official fix to the heating issue?
local-environmentsfix will go out with our next vscode extension release and that should address the issues we are seeing here. Thanks for your patience!Hi all! We have just released a new version of the extension - please let us know if you are still seeing any issue performance related. Thanks!
Thanks for the update. I’m still seeing a performance issue on macOS (Apple Silicon)
26.422.20832
After the latest release, the extension can enter a tight loop and spam local API/IPC calls at ~400 requests/sec, which drives CPU usage and causes high temperatures.
As a temporary fix, I patched
out/extension.jsto short-circuit the local-environment related handlers (local-environment,local-environments,local-environment-config,local-environment-config-save,open-in-targets,set-preferred-app) with safe static responses, and simplifiedhandleResolveStableMetadatato return stable cwd-based metadata only.Result: request storm stops, CPU load drops, and temperature behavior is back to normal.
I already sent detailed reports with repro + security/perf impact.
On latest version, tried pre-release as well. Issue is not fixed on M4 Mac.
@GoXLd and @sachin-ag can you both /feedback and share the session ids with us? I am no longer seeing unhandled local-environments, open-in-targets, set-preferred-app issues on my end in the log.
@shijie-oai 019dbc4f-d9de-7162-b441-4a53405327f9
I am still facing the issue in the MacBook Pro M5 chipset laptop. Used the latest update available on the VS Code for codex extension.
bc833344-ebc1-4022-a219-2df227191a3f @shijie-oai same here m2 pro macbook running version: 26.5422.21459
The issue still persists even with the pre release version the CPU shoots upto 130% just by opening the codex chat which heats up the laptop as well happening on m5 pro
<img width="551" height="72" alt="Image" src="https://github.com/user-attachments/assets/c8fbfb9b-a16d-4389-b0b2-8b7a63d8c6fe" />
<img width="872" height="604" alt="Image" src="https://github.com/user-attachments/assets/a2a916cd-f766-4939-b4e7-b80cc680ba53" />
Follow-up: latest Codex extension still floods logs / high CPU
I am seeing a similar noisy-log/high-CPU issue again on a newer Codex VS Code extension build. I did not apply the local workaround before capturing this log.
Environment:
openai.chatgpt-26.422.21459-linux-x641.117.010c8e557c8b9f9ed0a87f61f1c9a44bde731c409x64Fedora release 43 (Forty Three)49.6Linux 6.19.13-200.fc43.x86_64 x86_64The current log flood captured this time is different from the
open-in-targetserror from my earlier workaround report. In this capture, the dominant repeated warning is:Counts from one captured Codex log snapshot:
Representative tail sample:
One thing that makes this hard to diagnose is that the warning logs
error={}, so the underlying exception/message is not visible.I also checked the installed
out/extension.js. It looks likeopen-in-targetsnow has a safe fallback:But these local environment handlers still throw:
So this capture shows a definite new log/CPU problem: a repeated extension-side loop around the internal git worker
stable-metadatarequest.I do not want to claim yet that the earlier unsupported-route issue is fully solved. I have not used this newer extension build enough to confirm that. It may simply not have been triggered in this session. What I can say from this capture is:
open-in-targetsnow appears to have a safe fallback in the installed extensionlocal-environment/local-environmentsstill throw in the installed extensionSuggested follow-up:
worker_rpc_response_errorinstead oferror={}.stable-metadatais repeatedly failing in the extension git worker.local-environment/local-environmentsas well, instead of throwing.High Cpu usage still again with Codex Visual Studio Code extension: 26.422.21459 on Mac Book Pro 2019 - Intel i7
Visual studio:
Versione: 1.117.0
Commit: 10c8e557c8b9f9ed0a87f61f1c9a44bde731c409
Data: 2026-04-21T16:12:14-07:00 (3 giorni fa)
Electron: 39.8.7
ElectronBuildId: 13841579
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
Sistema operativo: Darwin x64 25.3.0
Hi _everyone_, I’m very happy to be able to help you @shijie-oai improve the product and support the community.
Unfortunately, I can’t provide the session IDs because they were deleted.
My old version patch Comment#1 no longer works (which makes _sense_, as now there’s a different issue). Its described here Comment#2.
Sorry I’m not _hinting at anything_, but I’m not a project contributor.
I’ve also updated the patch https://gist.github.com/GoXLd/cdbaa5598df152d1ef63feec4c50a717
!!!Attention: if you applied it earlier, you’ll need to use --force.
I have some ideas about a fix.
The main change is this replacement:
It replaces the original implementation of handleResolveStableMetadata(...) with a simplified version that always constructs metadata from the current working directory (r.cwd) and returns it through ne(o).
In practice, this bypasses the previous resolution logic and forces stable metadata to resolve locally instead of following the old code path, which appears to be related to the new issue (including the request loop / excessive request behavior).
Have a great weekend!
Please kindly help them to fix it - the same problem persists on Ubuntu
24.04.
I rolled back to 4 weeks old Codex extension which still occasionally has
this problem but unlike with the later versions, it can be resolved by
window reload.
On Fri, 24 Apr 2026, 21:25 Alexandre VANDEMOORTELE, <
@.***> wrote:
pre-release 26.5422.30944 fixed it for me
Same problem continues on Linux. Quantitative follow-up to my earlier comment.
I upgraded from 26.325.21211 to the latest 26.422.30944 on Ubuntu 24.04 (VS Code 1.115.0, x64). Same runaway pattern as before, but it now surfaces under 4 minutes after the upgrade instead of after hours of uptime.
| | 26.325.21211 (yesterday) | 26.422.30944 (today) |
|--- |--- |--- |
| Time-to-runaway | ~9.5 h uptime | < 4 min post-upgrade |
| etime / cputime at detection | 9h 33m / 9h 52m | 03:46 / 04:43 (ratio 1.25) |
| Instantaneous %CPU | 103% | 125% |
| Process signature |
code --type=zygoterenderer | identical |Diagnostic note for Linux triage: the runaway renderer does not appear in
Help → Open Process Explorereven though itsppidchain traces to the maincodeprocess. We verified this manually 7 times. Identification has to be done at the OS level —ps -C code -o pid,etime,timeand look for any zygote wherecputime ≈ etime. Sharing in case it helps others fix the problem.I've rolled back to 26.325.21211. The newest version 26.422.30944 replaces "occasional slow burn, recoverable via window reload" (v26.325.21211) with "minute-scale repeatable runaway" — much worse.
Environment: Ubuntu 24.04.4 LTS, kernel 6.17.0-22-generic, VS Code 1.115.0, x64.
26.5422.30944 still has the issue. Applying workaround patch in https://gist.github.com/GoXLd/cdbaa5598df152d1ef63feec4c50a717 worked.
If you are using Antigravity with Codex plugin, add/update this to the fix:
Thanks for your report. I’ve updated the fix to include Antigravity extension installs as well:
```
"$HOME/.vscode/extensions"
"$HOME/.vscode-insiders/extensions"
"$HOME/.antigravity/extensions"
Latest version(s) in macOS still burn 110+% on multiple cores at all times, sitting idle.
High CPU in VS Code renderer when Codex is opened in a folder without Git
Hi! I found a reproducible high CPU issue with the Codex VS Code extension.
The problem seems to happen when Codex is opened in a workspace folder that is not a Git repository root. If I open a folder that has
.gitdirectly in the workspace root, the CPU usage stays normal.Environment
/Applications/Visual Studio Code.app~/.vscode/extensions/openai.chatgpt-26.422.30944-darwin-arm64The process that consumes CPU is not the extension host. It is:
In VS Code Process Explorer it appears as:
What happens
When I open Codex in a folder without
.gitin the workspace root, CPU usage jumps to around 100% or more and stays there.Closing the Codex panel does not stop the CPU usage. The renderer process keeps consuming CPU even after the Codex UI is closed.
The extension host itself stays relatively low, so this looks like a renderer / webview issue rather than normal extension-host CPU usage.
What I tested
I first checked VS Code without extensions:
CPU usage was normal.
Then I tested a clean VS Code profile with only the Codex extension installed:
With only Codex installed, I tested different folders.
My workspace looks like this:
These folders are not Git repository roots:
This folder is a Git repository root:
Results
Here are the results I got:
So the deciding factor seems to be whether the opened workspace folder itself is a Git repository root.
Workspace size
The workspace is small, so I do not think this is caused by a large project:
Expected behavior
Codex should work normally in a folder that is not a Git repository.
If Git metadata is needed, the extension should handle a non-Git workspace without entering a high CPU loop.
Actual behavior
Opening Codex in a non-Git workspace causes sustained high CPU usage in:
The CPU usage continues even after closing the Codex panel.
Workaround
Opening the actual Git repository root fixes the issue.
For example, this causes high CPU for me:
But this works normally:
because
~/ProgC/Univ/labscontains.git.Another workaround is to initialize Git in the opened folder:
After that, Codex no longer seems to trigger the high CPU behavior for that folder.
THANK YOU!
Initializing a repo at the workspace level instantly brought CPU usage down.
Just to confirm, _git init_ in root instantly dropped CPU. Ubuntu, latest Codex extension version. Thank you.
after all these fixes/releases i keep updating to the latest codex and then the cpu goes wild. It's at 260% this time after installing the new latest version.
It was half working without cpu spiking for a short while, but wouldn't actually load any previous chats. So I had to roll back to finish old conversations.
I had upgraded yesterday and wasn't seeing the cpu spike, but now just installed the latest vscode and its reloaded and gone mental with cpu.
Every time I have to roll back to 26.313.41036, but now that approach is affecting me because I can't access the latest models.
Its been a month now of this instability. It seems like there are half a dozen different issues that have bubbled up all claiming to be causing the 100% with bad logging, problems with git needing to be initialised, some people saying 2nd windows are the cause. Have you lost control of the codebase?
i think if they just copy paste this url in codex and let codex fix it it should be fixed already lol
Dear codex team, any update on this issue?
For me, I've been running the latest versions now for a few weeks and not see my laptop emulate the surface of the sun.
without git repo root ? @rtpHarry
no all my projects have git in them
It still trying to melt my macbook, I really dont understand how this can be so long without fix...
It's already fixed. Just update to the latest version of vscode and the extension. It's fixed for me.
trying using in non git repo and confirm. @DEBA1801
Closing as a duplicate of #7972.