Repository navigation
Description
What version of the Codex App are you using (From "About Codex" dialog)?
Installed Microsoft Store/MSIX package: OpenAI.Codex_26.1007.9446.0_x64__2p2nqsd0c76g0.
This version was read from the installed package and running executable path, not transcribed from the About dialog. The main desktop process is ChatGPT.exe.
What subscription do you have?
Not provided.
What platform is your computer?
Windows 11 Home, 25H2, x64, build 26200.9457.
Affected display: 2560 x 1600 physical pixels, 150% scaling (GetDpiForWindow = 144).
Bottom taskbar; measured monitor work area: 2560 x 1528.
What issue are you seeing?
A correctly maximized Codex window becomes too tall after closing it to the system tray and restoring it. The application process remains running throughout this cycle. After restoration, the window covers the taskbar's reserved area and the bottom of the message composer is clipped.
This concerns hiding/restoring the existing desktop window, not fully quitting/restarting the application or entering F11 fullscreen.
Native geometry measured locally:
| State | Visible DWM frame | Maximized state |
|---|---|---|
| Correct maximized window before hiding | 2560 x 1527 at (0, 0) |
IsZoomed = true, showCmd = 3 |
| Affected restore without a local workaround | 2560 x 1600 at (0, 0) |
Still IsZoomed = true, showCmd = 3 |
| After the local corrective resize | 2560 x 1527 at (0, 0) |
Maximized state retained |
The monitor work area remains 2560 x 1528. The incorrect visible height therefore consumes the taskbar-reserved area. The 1-pixel difference between the correct visible frame and work area is reported as measured; DPI rounding may contribute.
On affected restores, native outer bounds were approximately 2580 x 1619-1620 at (-10, -10), while the visible DWM frame covered the whole 2560 x 1600 display.
What steps can reproduce the bug?
- Launch the official Windows Codex application.
- Maximize the window and confirm the composer is fully visible above the taskbar.
- Click the title-bar X. The window is hidden to the notification area; do not choose the application's full Exit command.
- Click the Codex system-tray icon to show the same running application again.
- Observe that the window now extends into the taskbar area and the composer is clipped at the bottom.
- Restoring and maximizing the window again can recover the correct size temporarily, but another hide/show cycle reproduces the problem.
The affected user repeatedly reproduced the actual tray-click path. Automated checks also reproduced the geometry change by clicking X and reactivating the hidden instance through its registered Windows application entry. Those automated checks are an additional activation path, not a substitute for the user's tray-click reproduction.
What is the expected behavior?
Restoring a maximized window from the tray should retain maximization and fit the current monitor's work area. Normal restore bounds should remain intact, and the taskbar and message composer should stay usable.
The first visible frame should already have the correct geometry. A visible full-monitor expansion followed by a corrective shrink or flash makes routine window switching feel unstable.
Additional information
Isolation and attribution
The problem was first noticed after using the community dragon-codex-boot launcher. That timing alone does not establish its cause, so the following comparisons were performed:
- Fully exited the official client, disabled the launcher and local correction process, and launched a new official process through the registered Windows entry. The tray-restore problem still reproduced.
- While all official client processes were stopped, backed up the global state and removed only
electron-main-window-bounds. A new official launch regenerated default normal bounds (1280 x 816logical pixels), but the user reproduced the same tray-restore problem. Other user settings were retained. - Fully exited again and used the unchanged desktop startup script that predated the community launcher. The user still reproduced the problem.
- Reversibly quarantined the community launcher and disabled its task-owned shortcuts/executables. The user then reinstalled the official Codex application and reported the same problem before the launcher/correction was restored. A completely new user-data profile was not independently verified.
- Five key installed files, including
ChatGPT.exe,chrome.dll,app.asar, and the runtime configuration files, matched the installed package block map during inspection. The executable's Authenticode signature was valid.
These observations rule out the local correction process actively causing the baseline reproduction and make a single stale main-window-bounds value insufficient to explain it. They do not establish the precise native root cause or eliminate every other saved preference, OS state, driver, or third-party component.
The earlier report against the community launcher was closed while attribution was investigated: yushua0808-cpu/dragon-codex-boot#4. It remains closed. This report requests investigation of the official client's Windows restore/work-area behavior.
Local mitigation and its limitations
An external, non-injected helper currently mitigates the incorrect geometry:
- It observes the official window with out-of-context WinEvent hooks.
- It detects a visible, non-minimized, maximized window whose native bounds unexpectedly match the full monitor while exceeding the work area.
- It applies the current monitor's work-area bounds with
SetWindowPos, preserving the maximized flag and normal restore placement. The local flags areSWP_NOZORDER | SWP_NOACTIVATE | SWP_NOSENDCHANGING. - It caches the tracked window/process, moves log writes off the event thread, and avoids immediate corrective resizes during normal minimize/resize gestures. Tray reveal is handled immediately; a stable-bounds check is used only as a fallback.
- A further experiment briefly sets
DWMWA_TRANSITIONS_FORCEDISABLEDduring the corrective resize and releases it immediately afterward, to reduce an additional corrective transition. Graceful shutdown also releases helper-owned transient state.
The user confirmed that corrected dimensions and taskbar identity were normal, but still noticed a brief flash/jump with the first optimization. Event traces showed little observable delivery delay and individual synchronous resize calls of roughly 37-41 ms. A later real hide/show validation with the correction-only DWM change completed the resize in about 19.5 ms and retained correct maximized bounds. This is a single observed sample, not a controlled frame-time benchmark or confirmation that visible flashing has disappeared.
Local regression checks covered preserving normal bounds and maximization, ignoring animation/intermediate bounds, distinguishing tray show from minimize restore, fallback correction, and releasing the temporary transition suppression. This external helper is a workaround and does not establish an upstream fix. No official package files were patched, and no global Windows animation settings were changed.
Requested investigation / fix direction
Please investigate the native Windows show/restore path, particularly the transition from hidden-maximized to visible-maximized:
- Validate the selected monitor, per-monitor DPI, frame insets, and
workAreaversus full monitorboundsbefore making the window visible. - Preserve the saved normal placement and maximized/minimized state independently of the visible frame size.
- Produce the correct first visible frame, so an external after-show resize is unnecessary and does not compete with the native transition.
- Add coverage for repeated tray hide/show, minimize/restore, maximize/unmaximize, display/work-area changes, and intentional fullscreen without treating fullscreen as an overflow to correct.
Related reports
- [Windows] Maximized window extends behind translucent taskbar, causing white blurred strip #46888: maximized window extends behind the taskbar, on the same Windows build, but triggered by ordinary maximization on an older app package.
- Windows app 26.1007.2314.0 freezes on focus return, expands over taskbar, then restores; restart while typing #53866: focus return expands over the taskbar and then jumps back on
26.1007.2314.0. - [Windows][Desktop] Maximized window is 270 px taller than the screen on a 150%-scaled 1920x1080 display (composer/input area pushed off-screen) - 26.1007.2314.0 #53027: maximized height/composer overflow at 150% scaling on
26.1007.2314.0, with a different overflow amount and reproduction path. - [Windows][Desktop] Window height stretches far beyond the monitor after minimizing and restoring with Alt+Tab (dual monitor, extended display set as primary) #42493: abnormal height after minimize/Alt+Tab restore on a multi-monitor setup.
These may share a window-management problem, but identical causes have not been established. Please consolidate this report if the tray-specific path is already covered. Private conversation screenshots, account identifiers, local project paths, and raw logs are omitted; the relevant native measurements are included above.
Activity
github-actions commentedon Oct 15, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action