Skip to content

[Windows] Normal window resizes to 960×1200 after restoring from taskbar #54518

Open

Description

@879017209

What version of the Codex App are you using (From “About Codex” dialog)?

26.1013.31256, build 20586, production channel (reported by the desktop updater).
Windows/MSIX package: OpenAI.Codex_26.1013.3656.0_x64.
These are desktop app/package versions, not the Codex CLI version. The configured updater reported up_to_date on October 16, 2026.

What subscription do you have?

Not collected; this report concerns native desktop window geometry.

What platform is your computer?

Windows 11 Home, x64, OS version 10.0.26200 (build 26200).
Observed Codex window DPI: 96 (100%).

What issue are you seeing?

After manually resizing the normal, non-maximized Codex window, minimizing it, and restoring it by clicking its taskbar icon, the window is changed to 960 × 1200, instead of keeping the size before minimization.

This has repeatedly disrupted normal window placement. It persisted across a desktop update and after a verified reset of the saved window-bounds state. No error dialog accompanies the resize.

What steps can reproduce the bug?

  1. Open the Windows desktop app in normal (non-maximized) window mode.
  2. Manually shorten the window to a height below 1200.
  3. Minimize it.
  4. Restore it by clicking the taskbar icon.
  5. Observe that the normal window becomes 960 × 1200.

This is a taskbar restore of an existing window, rather than closing it to the system tray and reopening it. The original observations retained the same native window handle across the minimize/restore cycle.

What is the expected behavior?

Restoring the window should preserve the manually selected size from immediately before minimization, without a second resize or visible geometry jump.

Additional information

Read-only native measurements

Observation Before minimization After taskbar restoration
October 13, 2026 960 × 807 960 × 1200
October 13, 2026 960 × 784 960 × 1200

The window handle and DPI did not change in these transitions. Windows' normal placement still held the pre-minimize dimensions while the window was minimized.

Verified saved-state reset did not resolve the issue

On October 16, with all Codex desktop processes fully exited:

  • Both global-state JSON files (the primary file and its backup) were backed up.
  • Only the top-level electron-main-window-bounds field was removed.
  • All unrelated contents were verified unchanged, and the backup hashes were verified.
  • Codex was relaunched, and the one-time maintenance task was removed.

The user reproduced the original problem after this completed reset. In a subsequent read-only observation, the persisted bounds were 1280 × 820, while the visible native window measured 960 × 1200. The persisted value is reported as diagnostic evidence; it is not being claimed as a measurement immediately before that particular minimize operation.

Other attempts

  • Resetting font size did not resolve the issue.
  • Refreshing Windows' normal window placement while minimized succeeded at the API level, but the window still restored to 960 × 1200.
  • A temporary local post-restore correction could restore the requested dimensions but caused a visible second resize. It was withdrawn and stopped.
  • No Codex application package files were modified, and no local resize workaround remains running.

Related report

#54397 describes a maximized window restored from the system tray covering the taskbar. This report differs: it concerns a normal window, taskbar minimization/restoration, 100% DPI, and repeated resizing to 960 × 1200. A shared root cause has not been established.

The exact internal trigger remains unknown. Please investigate the Windows window-restoration path and other sources of geometry changes.

This public report contains sanitized technical measurements only. It omits account identifiers, private project names, local user paths, window-handle values, full configuration files, screenshots with unrelated content, and conversation transcripts.

Activity

  1. added
    bug
    app
    windows-os
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions