Repository navigation
Description
What version of the Codex App are you using?
OpenAI.Codex_26.715.4045.0_x64__2p2nqsd0c76g0
Executable path observed locally:
C:\Program Files\WindowsApps\OpenAI.Codex_26.715.4045.0_x64__2p2nqsd0c76g0\app\ChatGPT.exe
What platform is your computer?
Windows x64
Display setup
The issue reproduces with a dual-monitor setup and 200% DPI scale reported for the Codex window.
Detected monitor layout:
DISPLAY1: secondary, Bounds X=-1536 Y=0 W=1536 H=960, WorkingArea X=-1536 Y=0 W=1536 H=912
DISPLAY2: primary, Bounds X=0 Y=0 W=1920 H=1080, WorkingArea X=0 Y=0 W=1920 H=1032
Codex/ChatGPT window DPI: 192 (200%)
What issue are you seeing?
The Codex desktop window repeatedly exceeds the current screen bounds on Windows. The issue persists after normal recovery attempts, including rebooting, restoring from maximized state, manually resizing, using Windows snap shortcuts, and programmatically moving the window back into the primary monitor working area.
Observed Win32 window geometry while the app was maximized on the left secondary display:
Window rect: L=-1543 T=-7 R=6 B=918 W=1549 H=925
DISPLAY1 working area: X=-1536 Y=0 W=1536 H=912
Saved normal position: L=-1363 T=221 R=-273 B=981 W=1090 H=760
The maximized window rect is larger than the monitor working area and extends beyond the screen edges. The restored normal position also exceeded the bottom of DISPLAY1.
Steps to reproduce
- Use Codex Desktop on Windows with a dual-monitor setup where the secondary display is positioned to the left of the primary display.
- Use 200% DPI scaling.
- Move Codex Desktop / ChatGPT window to the left secondary display.
- Maximize, restore, resize, close, and reopen the app.
- Observe that the window can restore or maximize outside the monitor working area.
Expected behavior
The Codex desktop window should stay within the active monitor working area when restored, resized, maximized, closed, and reopened.
Actual behavior
The window repeatedly returns to bounds outside the current monitor working area. Normal Windows recovery actions do not make the fix persist.
Workarounds tried
- Rebooted the computer.
- Restored the window from maximized state and manually resized it.
- Used
Win + Arrowsnap shortcuts to refresh the window placement. - Programmatically forced the main window back into the primary screen working area:
Forced safe rect: L=80 T=80 R=1360 B=952 W=1280 H=872
Primary working area: X=0 Y=0 W=1920 H=1032
The issue still returned afterward.
Additional information
The app appears to be the Windows packaged Codex desktop app. The process name is ChatGPT, and the executable path is under OpenAI.Codex_26.715.4045.0_x64__2p2nqsd0c76g0.
Activity
HanChangHun commentedon Jul 19, 2026
Additional reproduction at 100% DPI
I can reproduce the same out-of-work-area maximized bounds on the exact package version from this issue, but at 100% DPI rather than 200% DPI.
Environment
OpenAI.Codex_26.715.4045.0_x64__2p2nqsd0c76g0ChatGPT.exe10.0.26200, x641920x1080, working area0,0,1920,10321080x192096(100%)Reproduction
Runtime evidence
The live window was selected by its top-level title
ChatGPT. Bounds were captured withGetWindowRect,DwmGetWindowAttribute(DWMWA_EXTENDED_FRAME_BOUNDS),Screen.WorkingArea, andGetDpiForWindow.-8,-8,1928,1040-8,-8,1928,10400,0,1920,1032-74,-15,1846,1008-74,-15,1846,10080,0,1920,1032-8,-8,1928,1040-8,-8,1928,10400,0,1920,1032The native maximized state therefore exposes an 8px DWM frame beyond every work-area edge, including 8px into the taskbar side. Restoring removes the bottom overflow; re-maximizing restores it exactly.
For comparison on the same primary display, a maximized Whale/Chromium window reported the same outer Win32 rect (
-8,-8,1928,1040) but a correctly clipped DWM extended frame of0,0,1920,1032. This suggests the problem is not the ordinary invisible Windows resize border by itself; Codex is exposing that border as part of its visible/composited frame.Disabling the translucent sidebar improved the separate transparency artifact but did not change these maximized bounds. A separate avatar overlay is enabled on this machine, but its window is only about
408x400on the secondary display; the remaining strip spans the full width of the main Codex window, and the main window's own DWM bounds reproduce the overflow.Failure boundary and likely fix direction
The confirmed failure boundary is the packaged Windows desktop shell's native-maximize/frame-composition path. The public
openai/codextree at0fb559f0f6e231a88ac02ea002d3ecd248e2b515does not include the Electron desktop-shell implementation, so I cannot identify an exact public source file.A fix should ensure that, while natively maximized, the visible/composited DWM frame is constrained to the active monitor working area even if the underlying Win32 resize-border rect remains offset by 7-8px. Suggested regression coverage:
MONITORINFO.rcWorkpablorxz commentedon Aug 31, 2026
Got the same problem when working with 2 monitors.
whale4rain commentedon Sep 6, 2026
In a multi-monitor setup, if I move the Codex window to a monitor, minimize it, and then restore it from the taskbar, Codex sometimes restores with incorrect monitor bounds, resulting in an incorrect window position and/or size.
The issue is reproducible with just minimize → restore; maximizing, resizing, or restarting Codex is not required.
Workaround: Setting the Windows display scaling to 100% on all monitors fixed the issue for me.
This suggests the issue may be related to monitor bounds calculation when different DPI/scaling settings are used across monitors.
DanDG923 commentedon Nov 17, 2026
Restoring ChatGPT from maximised placed its window 1283 physical pixels onto the left display and 265 physical pixels below both displays. After I resized and centred it on the primary display, a maximise and restore cycle preserved the corrected position.
OpenAI.Codexversion26.1111.2228.026300.9974, tested on 17 November 2026I measured these bounds with a per-monitor-DPI-aware thread. Coordinates in the table are physical desktop pixels. Right and bottom edges are exclusive.
electron-main-window-bounds, ChatGPT saved the positionx=128, y=107and sizewidth=2304, height=1227in device-independent pixels (DIPs), withisMaximized=true. At 150% scaling this matches the final table row to within one DIP, so the app saved the corrected placement.The matching rectangles show that the client content itself extended below the desktop on restore. The maximised frame was within the primary work area. I did not establish how the original off-screen position was saved.
For a regression test, restore a maximised window whose saved normal bounds extend below both displays in this layout. Compare the saved bounds with the current work areas in the same coordinate units, and fit the restored window to the intended display if part of it would be unreachable. Include a case where the whole window is reachable across both displays and verify that its placement is preserved.