codex - 💡(How to fix) Fix Windows: sidebar ghost trails/stale repaints at 120Hz; disabling GPU compositor fixes it [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20413Fetched 2026-05-01 05:43:22
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×3renamed ×3commented ×1

Codex Desktop on Windows leaves visible ghost trails / stale UI remnants in the left sidebar during hover, mouse movement, and window redraw/resize. Old sidebar rows, dark rectangles, and text briefly remain behind instead of being fully repainted.

This is reproducible enough to make Codex visually distracting in normal use. It does not occur after launching Codex with GPU/compositor-related Chromium flags disabled, which points to the Windows + Electron/Chromium compositor path rather than normal app content rendering.

Root Cause

  • Most visible in Codex's dark left sidebar and hover states.
  • Appears during hover/mouse movement and window redraw/resize behavior.
  • Looks like stale surfaces/text are not being fully invalidated or repainted.
  • Much more obvious in Codex than in normal desktop use, likely because the app combines dark custom UI, large sidebar hover regions, and Electron/Chromium compositing.

Fix Action

Fix / Workaround

System-level workarounds already tested

Workaround that resolves it

With those flags active, the main process command line includes the full workaround, and the renderer process includes --force-color-profile=srgb and --disable-gpu-compositing. The GPU process falls back to WARP-style behavior (--use-angle=d3d11-warp-webgl) rather than the normal accelerated path.

Code Example

--disable-gpu --disable-gpu-compositing --disable-direct-composition --disable-features=EnableTransparentHwndEnlargement,CalculateNativeWinOcclusion --force-color-profile=srgb
RAW_BUFFERClick to expand / collapse

Summary

Codex Desktop on Windows leaves visible ghost trails / stale UI remnants in the left sidebar during hover, mouse movement, and window redraw/resize. Old sidebar rows, dark rectangles, and text briefly remain behind instead of being fully repainted.

This is reproducible enough to make Codex visually distracting in normal use. It does not occur after launching Codex with GPU/compositor-related Chromium flags disabled, which points to the Windows + Electron/Chromium compositor path rather than normal app content rendering.

Environment

  • App: Codex Desktop for Windows
  • Package: OpenAI.Codex 26.422.9565.0
  • App process metadata: Electron 41.2.0
  • Windows build: 26100
  • GPU: NVIDIA GeForce RTX 3060
  • NVIDIA driver: 32.0.15.9636
  • Display mode: 1920x1080, 120 Hz
  • Device scale factor observed in renderer command line: 1.25
  • Renderer process uses --device-scale-factor=1.25
  • Windows transparency effects: off
  • Codex default launch has an active GPU process
  • Default GPU process enabled feature included EnableTransparentHwndEnlargement

Repro characteristics

  • Most visible in Codex's dark left sidebar and hover states.
  • Appears during hover/mouse movement and window redraw/resize behavior.
  • Looks like stale surfaces/text are not being fully invalidated or repainted.
  • Much more obvious in Codex than in normal desktop use, likely because the app combines dark custom UI, large sidebar hover regions, and Electron/Chromium compositing.

System-level workarounds already tested

The following did not fully resolve the issue under the normal Codex launch path:

  • Disabled MPO via HKLM\SOFTWARE\Microsoft\Windows\Dwm\OverlayTestMode = 5
  • Disabled DirectX swap-effect upgrade via HKCU\Software\Microsoft\DirectX\UserGpuPreferences, DirectXUserGlobalSettings = SwapEffectUpgradeEnable=0;
  • Set Codex to high-performance GPU preference
  • Cleared stale per-user monitor ICM profiles / removed custom monitor profile path
  • Windows transparency effects were already off

Workaround that resolves it

Launching Codex with the following Chromium/Electron flags fixes the ghosting:

--disable-gpu --disable-gpu-compositing --disable-direct-composition --disable-features=EnableTransparentHwndEnlargement,CalculateNativeWinOcclusion --force-color-profile=srgb

With those flags active, the main process command line includes the full workaround, and the renderer process includes --force-color-profile=srgb and --disable-gpu-compositing. The GPU process falls back to WARP-style behavior (--use-angle=d3d11-warp-webgl) rather than the normal accelerated path.

Suspected areas

The full workaround is intentionally broad, but it strongly suggests the default issue is somewhere in the Electron/Chromium accelerated presentation path, likely one of:

  • Windows DirectComposition
  • EnableTransparentHwndEnlargement
  • native window occlusion / stale invalidation behavior
  • GPU compositor / ANGLE / D3D path on NVIDIA at 120 Hz
  • interaction with 125% scaling / device-scale-factor=1.25

Expected behavior

Codex should not leave stale UI trails or ghosted sidebar/text remnants under the default install/launch path, including on NVIDIA + 120 Hz + 125% scaling setups.

Notes

A narrower flag isolation pass would be useful to determine whether --disable-direct-composition, --disable-features=EnableTransparentHwndEnlargement, or --disable-gpu-compositing is the minimal fix. The broad compositor-disable launch is currently confirmed as a working workaround.

extent analysis

TL;DR

Launching Codex with specific Chromium/Electron flags disables GPU acceleration and compositor features, resolving the ghosting issue.

Guidance

  • The issue is likely related to the Electron/Chromium accelerated presentation path, specifically with Windows DirectComposition, EnableTransparentHwndEnlargement, or GPU compositor/ANGLE/D3D path.
  • To verify the issue, try reproducing it with the default launch path and then apply the provided workaround flags to see if the ghosting is resolved.
  • A narrower flag isolation pass is recommended to determine the minimal fix among --disable-direct-composition, --disable-features=EnableTransparentHwndEnlargement, or --disable-gpu-compositing.
  • Consider testing with different GPU settings, such as disabling GPU acceleration or using a different GPU driver version, to further isolate the issue.

Example

The provided workaround flags can be applied to the Codex launch command, for example:

codex --disable-gpu --disable-gpu-compositing --disable-direct-composition --disable-features=EnableTransparentHwndEnlargement,CalculateNativeWinOcclusion --force-color-profile=srgb

Notes

The workaround is intentionally broad, and a more targeted solution may be possible with further investigation. The issue may be specific to the combination of NVIDIA GPU, 120 Hz display, and 125% scaling.

Recommendation

Apply the workaround by launching Codex with the provided flags, as it has been confirmed to resolve the ghosting issue. This will disable GPU acceleration and compositor features, which may have performance implications, but will provide a stable and ghosting-free experience.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Codex should not leave stale UI trails or ghosted sidebar/text remnants under the default install/launch path, including on NVIDIA + 120 Hz + 125% scaling setups.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING