Codex extension makes VS Code extremely slow and overheats my computer
What version of Codex is running?
0.4.0
Which model were you using?
gpt-4.1
What platform is your computer?
Darwin 25.0.0 arm64 arm
What steps can reproduce the bug?
1. Install Codex VS Code extension
2. Open a medium-sized project (JavaScript/TypeScript in my case)
3. Start coding → after a few minutes the editor becomes very slow, with high CPU usage
4. Computer fans turn on, system overheats
What is the expected behavior?
Codex should run smoothly like other coding assistants (e.g., Copilot, ChatGPT integration) without causing noticeable slowdowns or overheating.
What do you see instead?
• VS Code becomes sluggish after Codex starts suggesting completions
• High CPU usage (Codex process spikes)
• Fans spin up and laptop overheats
Additional information
Other assistants (Copilot, ChatGPT) do not show the same performance issues on my machine, so this seems specific to Codex.
+1
Note: I noticed that when running tests directly from Codex, the processes don’t finish properly because multiple Node.js executions remain open. After I killed those processes manually, everything went back to normal.
+1 My MacBook's power consumption went crazy just from installing the extension. Even though I was using Codex with the CLI, my VS Code was using three times more power than without the extension.
+1 same issue while using Codex extension in VSCode both on MacBook Air M1 and on PC with WSL2
+1
+1
+1
Large monorepo, M4 Pro, there is a 0.5-1s lag using the VS Code text editor after installing codex after every click / highlight of text, rendering productive work almost impossible
Version: 0.5.35 (pre-release)
Also noticing "Code Helper (Renderer)" taking 50%+ CPU but cannot say if this is new right now.
Have not tried smaller repo.
+1
+1
resolved by deleting extension
+1 i though it was my laptop, in a way it was because of CPU usage but then upgraded to BEAST CPU and guess what, same issue after some chatting and implementations
+1
It lags the longer the chat back and forth is, the higher the lag is. Deffo probably something wrong with either how large text is rendered/handled or something weird in the way its structured.
Yes, long contexts cause severe lag for me on Linux with VS Code from the AUR. There have been a handful of updates come through but none of them have addressed this.
But then again OpenAI is only a small company... /s
+1 In JetBrains IDE, its the same problem. Ram and CPU are filling up and IDE is responding extremely slow, if Codex is reading files, and the bigger the file, the exponentually longer it takes to read the file. If it read every file, it works nicely again tho.
Yeah, for me, I get very large delays when switching between threads. It seems to be an issue related to the fact that the entire thread seems to be loaded in, rather than just the last part. Cursor's own AI chat system loads only the most recent messages, and hydrates as one scrolls up.
I had this problem until I switched from Intel MacBook to Apple Silcon. Hasn't happened since. Unless you reload a long chat, it causes VSCode to stop responding a few times, and have to click keep waiting.
Yeah, that reloading a long chat is the exact problem that I'm having. It isn't a deal-breaker, but it makes navigating between long chat sessions quite excruciating. It would be fixed by just loading the last part of the chat and hydrating as you scroll, the way Cursor does.
I have a problem with codex on Windows 10. Never had before but lately I have this problem and it is very hard to work. It usually slows down when start to read big files. The CPU go high, Pycharm start to eat all the RAM that it can and if clicking on Expand, I can see that it reads the file on small chunks and very very slow.
Sometimes that helps me is stopping it (it will stop in one minute because IDE is completely inaccessible), and I ask it to continue from the point where it stopped.
Update: After upgrading it started to be way better
For me codex is crashing the VSCode all the time. Did the crash log analysis with Claude, and here's the summary:
Primary cause: Copilot Chat listener/document model leak (renderer-side)
Every time Copilot Chat invokes a tool (read_file, apply_patch, etc.), it calls $tryOpenDocument and vie._createModifiedFileEntry, which creates text editor models (WF/LYe/Bu) with event listeners that are never disposed. This is a renderer-process leak — it survives extension host restarts.
Timeline from the log:
| Time | Listener count | Note |
|---|---|---|
| 19:52:03 | 175 → 200 | Growing |
| 20:00:05 | 224 | Copilot Chat active |
| 20:01:33 | 244 | Still growing |
| 20:01:44 | — | InstantiationService disposed (Copilot Chat tool stream on dead service) |
| 20:05:12 | 282 → 284 | Peak before crash #1 |
| 20:05:28 | CRASH | Exit code 6 (OOM) |
| 20:06:15 | 199 → 290 | Right after restart — leaks persist in renderer! |
| 20:50:27 | 400 | Terminal listener leak (createDetachedTerminal) |
| 20:49:43 | CRASH | Exit code 5 (OOM) |
PS: not sure if it's all codex fault but the VSCode has become unusable when debugging nextjs application at the same time
+1
After a codex prompt has finished, I get very high cpu activity, with a baseline around 5% to 40% cpu usage per physical core. It does not seem to stop after the promt and there is nothing else running on the machine.
Follow up since the last time, its seems the main cause is either the code blocks inside the chat section or the terminal runs, because i can go for hours in normal conversation with thousands of token generated but as soon as it start generating code it lags out, when i close an re-open VS code then because all the code blocks are gone then it will works with no problems