Windows: system-wide mouse cursor flicker after turn completes; fixed only by restarting dwm.exe
Summary
On Windows, after a Codex Desktop turn finishes (idle), the mouse cursor starts flickering continuously across the entire screen. The flicker is not present while the turn is in progress. It survives full app exit (no ChatGPT/codex processes remaining). Restarting dwm.exe fixes it immediately; rebooting Windows also fixes it. Reloading system cursors via SPI_SETCURSORS does not fix it.
Environment
- OS: Windows (build: run
winverand fill in if needed) - Codex Desktop: 26.715.52143 (Microsoft Store / MSIX)
- Platform: Windows x64
Already ruled out (please do not close as environment noise)
- Custom mouse cursor theme / pointer style
- Background software
- GPU / GPU driver reinstall
- External injectors (e.g. Codex++ / skin injectors)
- Built-in pet / avatar UI feature
- Codex Computer Use
Steps to reproduce
- Open Codex Desktop on Windows.
- Send any message and wait until the turn fully completes (agent becomes idle).
- Move the mouse anywhere on the screen (including empty desktop).
Expected
Cursor remains normal after turn completion.
Actual
| Condition | Result |
|---|---|
| During turn | No flicker |
| After turn completes (idle) | Continuous system-wide cursor flicker |
| Start a new turn | Flicker temporarily stops during the turn |
| That turn ends | Flicker returns |
| Fully quit Codex (no ChatGPT/codex processes in Task Manager) | Flicker continues |
SystemParametersInfo(SPI_SETCURSORS) / restore system cursors |
No effect |
Stop-Process -Name dwm -Force (DWM restarts) |
Flicker stops immediately |
| Reboot Windows | Flicker stops |
Inference
The post-turn idle path corrupts DWM cursor composition / hardware cursor state.
The bad state:
- outlives the Codex process
- is not fixed by reloading the cursor scheme from the registry
- is cleared only by recycling DWM (or rebooting Windows)
Workaround
Stop-Process -Name dwm -Force
Why this report is actionable
- Clear phase lock: only after turn idle, not during streaming
- Clear layer lock: DWM session state (process exit does not help; DWM restart does)
- Controlled exclusions listed above so it is not mistaken for cursor pack / driver / injector issues
- Optional: 10s screen recording starting at turn completion helps a lot
Request
Please investigate the turn-complete → idle path on Windows Desktop (pointer / layered window / composition / mouse passthrough cleanup) for anything that can leave DWM’s cursor composition in a bad state after the app exits.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #33258
Powered by Codex Action
Annecdotal possibly related info. computer use will often end leaving the cursor entirely invisible on windows.
The only fix is a restart. or sometimes rarely hitting the windows key (with the chatgpt app in focus - other apps dont work). will bring it back.
For anyone still seeing the system-wide cursor or compositor symptoms described here, I published an unofficial open-source Windows tray utility: https://github.com/rpaddict/CodexWatchdog
It records DWM resource history, monitors Codex-owned process growth, and provides a confirmed DWM restart action that does not reboot or sign out of Windows. This is a diagnostic/workaround tool rather than a fix for the underlying Codex/DWM issue, and it is not affiliated with OpenAI.
I packaged a guarded workaround for this recovery path:
https://github.com/TheThane69/ChatGPT-DWM-Memory-Leak-Workaround
It validates the active session and exact dwm.exe identity, records DWM/display state, recreates only the affected DWM process, reloads the relevant Windows display components, and verifies the final display state.
Observed result on the original affected session:
- DWM private memory: 962.8 MB -> 106.8 MB
- Handles: 3,561 -> 2,345
- Windows UI responsiveness restored without rebooting
It is an unofficial workaround, not a root-cause fix, and its physical-console path currently has intentionally strict compatibility checks.