[Windows] Mouse becomes severely laggy while Codex is thinking
Title:
[Windows] Mouse becomes severely laggy while Codex is thinking
Description:
The Codex desktop app causes severe mouse input lag while it is in the thinking state. The cursor feels delayed and floaty. The issue happens consistently during thinking and improves after the response finishes.
Reproduction steps:
- Open the Codex desktop app.
- Send a request that keeps Codex in the thinking state for several seconds.
- Move the mouse while Codex is thinking.
- Observe severe cursor delay and stuttering.
- After the response finishes, mouse responsiveness improves.
Expected behavior:
Codex should not affect system-wide mouse responsiveness while generating a response.
Actual behavior:
Mouse movement becomes delayed and feels floaty whenever Codex is thinking.
Environment:
- Windows desktop
- Codex version: 26.814.5167.0 x64
- NVIDIA GeForce RTX 2060
- Intel UHD Graphics 630
- NVIDIA driver: 32.0.15.9144
- Intel driver: 27.20.100.8729
- Oray virtual display driver is installed
Diagnostics:
- Overall CPU usage did not reach 100%; observed peak was about 35%.
- Memory usage was about 57%.
- DPC time stayed around 1% or lower.
- Codex renderer memory reached approximately 400 MB.
- Codex GPU process used approximately 10% to 19% GPU.
- The issue is not resolved by restarting Codex, closing other applications, exiting remote-control software, lowering the Codex GPU process priority, or launching with --disable-gpu.
Additional information:
GPU forcing between RTX and Intel has not yet been tested. Session ID from the in-product feedback submission:
Codex task/thread ID: 01a018d3-76fc-7342-bce4-8c2b840ce918
Feedback session ID: Not available
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Same! I think Codex Devs are using ultra fast PCs so they don't notice these things!
I can reproduce this on a newer Windows build and captured cursor, CPU, GPU, DPC, I/O, and process-tree measurements.
Environment
OpenAI.Codex 26.818.5229.0 x64(ChatGPT.exe)1904532.0.16.1088Reproduction and cursor evidence
With Codex active and producing thinking/tool/render updates, I continuously moved the cursor in circles.
A second 15-second continuous sample recorded four cursor-update gaps at or above 100 ms (maximum 119 ms), while the polling loop maximum remained 10 ms. This confirms intermittent cursor-position stalls while the measuring process itself remains scheduled.
Process measurements
Short 100 ms CPU windows showed bursts in the active Codex processes. Percentages below are relative to one logical CPU, so 572% is about 5.72 logical CPUs:
In the synchronized cursor/CPU sample, renderer and app-server peaks were 406% and 188%. However, only one of the four 100 ms+ cursor stalls overlapped a substantial app-server burst (125%), and the other three occurred at relatively low measured CPU. CPU bursts therefore appear to be a contributor, but are not proven to be the only cause.
GPU and driver-side counters were low during reproduction:
The largest renderer was already running with Windows
PriorityClass=Idle, so lowering renderer priority is not an available workaround.This does not match the old Chrome cache retry loop
This does not currently reproduce the
#38510cache-loop signature:chrome/latestjunction target, timestamps, and file ID remained unchanged during a 10-second observationAdditional app-server/helper accumulation observed
The Codex/ChatGPT process tree contained about 206 processes, 16.72 GB private bytes, and 8.76 GB working set. The app server alone held about 5.9 GB private bytes and had 94 direct child roots.
Notable repeated helper groups:
xcodebuildmcp@latestroots: about 93 processes / 5.48 GB private bytesThose helper groups were idle during the focused 15-second CPU sample, so I am not claiming they directly caused each cursor stall. They may still contribute to app-server memory/GC pressure after many tasks are opened. No processes were killed because their exact task ownership is not exposed in the command lines.
The user-visible behavior remains the same as the original report: mouse movement becomes intermittently heavy/floaty while Codex is active, then returns to normal. Please investigate both the foreground renderer/input scheduling path and app-server per-task helper lifecycle/unloading on Windows.
Additional measurements on the affected machine after a full Codex relaunch, current package
OpenAI.Codex 26.818.5229.0:avatarOverlayBrowserWindow whileelectron-avatar-overlay-open=false.thread_history_1.sqliteis 2.19 GB, but 421,776 of 535,875 pages are on the freelist; live item JSON is ~419.6 MiB, of which ~310.7 MiB is image-generation payload. The current thread projection is 390 items / 3.5 MiB. This may be relevant to turn-boundary page-in/projection work, but is not yet causal.The documented no-restart wake-Pet -> tuck-away cycle was applied successfully. Subjective pointer outcome is pending. An exact-renderer priority experiment was also attempted, but Chromium overwrote that priority on foreground/background transitions, so it is not being claimed as a persistent mitigation. No process was killed and no persistent config was changed. I will report whether the Pet reset actually helps instead of treating the intervention as a fix.