Codex desktop pet window is not always on top after wake on Windows

Open 💬 2 comments Opened May 6, 2026 by pszgad

What happened?

On Windows 11 Enterprise LTSC 2024, after using Wake pet / the pet command to show the Codex desktop pet, the pet appears but can be covered by normal application windows such as Chrome, Feishu, and the Codex main window.

Expected behavior: the pet overlay should remain always-on-top by default, while the Codex main window should not become always-on-top.

Observed behavior: the pet overlay window is not marked as topmost, so other windows can cover it.

Environment

  • OS: Windows 11 Enterprise LTSC 2024, 64-bit, build 26100
  • Codex desktop package: OpenAI.Codex_26.429.8261.0_x64__2p2nqsd0c76g0

Note: a local PowerShell Get-ComputerInfo readout displayed WindowsProductName : Windows 10 Enterprise LTSC 2024, but build 26100 corresponds to the Windows 11 24H2 / LTSC 2024 line. The affected machine should be treated as Windows 11 Enterprise LTSC 2024.

Scope update

  • Reproduces on Windows 11.
  • Does not reproduce on Windows 10.
  • Does not reproduce on macOS.

So this appears to be specific to the Windows 11 desktop behavior/window flags path rather than a general pet overlay issue across all platforms.

Reproduction steps

  1. Open Codex desktop on Windows 11.
  2. Go to Settings > Appearance > Pet.
  3. Select the default Codex pet.
  4. Click Wake pet / use the pet wake command.
  5. Move or focus another normal application window over the pet.

Actual result

The pet window is covered by the other application window.

Additional local inspection

Using the Windows API to inspect visible top-level windows showed the pet overlay as a separate Codex window, roughly 356x320, but its extended window style did not include WS_EX_TOPMOST (TopMost=False). The Codex main window and pet overlay are both titled Codex, but the main window is much larger; only the pet overlay should be topmost.

Expected fix

When the pet overlay is created or woken, set the pet overlay window to always-on-top / topmost on Windows 11, without applying topmost to the main Codex window.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗