macOS: visible Codex window drives WindowServer to 36–41% CPU on M4 MacBook Air
Summary
On an Apple M4 MacBook Air, opening the visible ChatGPT/Codex desktop window consistently drives WindowServer to sustained high CPU and makes the machine noticeably hot. Closing or hiding the window drops the load immediately.
This appears to be a visible-window rendering/compositing issue rather than agent execution, SSH, or a general macOS power setting.
Environment
- Codex / ChatGPT desktop app:
26.707.31428(build5059) - macOS:
26.5.2(25F84) - Hardware: Apple M4 MacBook Air, built-in 2560x1664 display only
- No external display connected during the reproduction
Reproduction
- Start ChatGPT/Codex Desktop normally.
- Open a Codex task and leave the app window visible.
- Observe Activity Monitor.
- Hide or close the Codex window.
- Observe that
WindowServerfalls immediately; restore/show the window and it rises again.
Observed
With the window visible:
WindowServer: approximately 36% to 41.5% CPU- ChatGPT/Codex main process: approximately 10% to 12% CPU
- Codex GPU service: approximately 4% to 6% CPU
- Codex renderer: normally a few percent, with higher spikes while the task UI updates
When the ChatGPT/Codex window is closed/hidden, WindowServer drops to about 10% CPU. Opening the visible window brings it back to roughly 36% to 41%.
The issue persisted after fully restarting the app. A long, tool-output-heavy task increases renderer load further, but the visible blank/new task window still keeps WindowServer abnormally high.
Notes
- Edge and the UU Remote user agent were closed/disabled during diagnosis; they were not the remaining cause.
syspolicydwas only around 3% to 5% and was not the primary source.- This matches the visible-window behavior described in #30464 and the foreground-heating report in #25036, but reproduces on the newer
26.707.31428build.
Expected behavior
An idle or lightly used visible Codex Desktop window should not keep WindowServer, the GPU service, and renderer CPU high enough to heat a fanless MacBook Air.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I can reproduce this issue on a newer Codex desktop build and different Apple Silicon hardware.
Environment
26.715.31251(build5538)150.0.7871.12426.5.2(25F84)Observed behavior
With the Codex desktop app open and visible:
WindowServer.WindowServerremained at approximately 42–70% CPU during repeated samples.Closing the Codex desktop app caused GPU usage to return to normal immediately. Reopening the app caused the high WindowServer, Codex GPU, and renderer load to return.
Isolation performed
I initially suspected remote-desktop software and the external display, but neither was the primary cause:
WindowServerremained around 44–59% CPU.WindowServerstill remained around 50–70% CPU.This strongly points to the visible Codex desktop UI/compositor path rather than remote-desktop capture or the external display.
Relevant WindowServer logs
The following error was emitted continuously while Codex was open:
Additional diagnostics showed:
There were more than 14,000 related WindowServer errors, all emitted from the same WindowServer main thread. The error rate remained above 150 events per minute after disconnecting the external display.
This also appears closely related to #30464 and #32501.
The decisive signal is that closing Codex immediately restores normal GPU usage, while closing other GPU/screen-capture applications or disconnecting the external monitor does not.