codex - 💡(How to fix) Fix Windows desktop app can be running with no visible window until AppX relaunch [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#17818Fetched 2026-04-15 06:27:38
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

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

26.409.1734.0

What platform is your computer?

Microsoft Windows 11 Pro x64 (reported by Get-ComputerInfo as OsBuildNumber 26200)

What issue are you seeing?

The packaged Windows desktop app can be running with multiple Codex.exe processes but no visible Codex window. From the user's perspective, Codex looks closed even though the packaged app is already alive in the background. This was not a CLI issue. It was the Microsoft Store packaged app at: C:\Program Files\WindowsApps\OpenAI.Codex_26.409.1734.0_x64__2p2nqsd0c76g0\app\Codex.exe

What steps can reproduce the bug?

I do not yet have a deterministic repro from a cold launch every time. What I observed today was:

  1. User asked me to check whether Codex was open.
  2. Process probe showed several packaged Codex.exe processes already running.
  3. Window probe using Win32 EnumWindows + IsWindowVisible found no visible packaged Codex window.
  4. A clean relaunch of the packaged app restored a visible window immediately. The relaunch that recovered the UI was: powershell Get-Process | Where-Object { .Path -like 'C:\Program Files\WindowsApps\OpenAI.Codex_*\app\Codex.exe' } | Stop-Process -Force Start-Process explorer.exe 'shell:AppsFolder\OpenAI.Codex_2p2nqsd0c76g0!App'

What is the expected behavior?

If the packaged app is running, the user should have a visible/focusable Codex window, or the app should restore the existing window when launched again.

Additional information

Current evidence from this session:

  • Initial probe showed packaged Codex.exe processes with no visible packaged Codex window.
  • The first visible-window search also found an unrelated MT5 window titled Modular_EA_Codex, so title-only detection would have been misleading. I had to verify by process path instead.
  • After the clean relaunch, a visible packaged Codex window appeared with title Codex.
  • I then ran a bounded control repro:
    • T+0s: 0 packaged Codex processes, 0 visible packaged Codex windows
    • T+8s after AppX launch: 5 packaged Codex processes, 1 visible packaged Codex window
    • T+68s: still 5 packaged Codex processes, still 1 visible packaged Codex window So the strongest report here is not "it always crashes on startup". It is specifically: there are cases where the packaged app is already running but has no visible UI until a clean AppX relaunch. If useful, I can gather follow-up evidence next time this happens again, such as AppModel events and any app-local logs around the invisible-window state.

extent analysis

TL;DR

The issue can be temporarily resolved by stopping the existing Codex.exe processes and relaunching the app using the Start-Process command.

Guidance

  • The problem seems to occur when the packaged app is running in the background with multiple processes but no visible window, suggesting an issue with the app's window management or initialization.
  • To verify the issue, use the provided PowerShell commands to probe for running Codex.exe processes and visible windows, and check if the window appears after a clean relaunch.
  • To mitigate the issue, use the provided Stop-Process and Start-Process commands to forcefully stop the existing processes and relaunch the app, which has been shown to restore the visible window.
  • Gathering additional evidence, such as AppModel events and app-local logs, may help identify the root cause of the issue.

Example

Get-Process | Where-Object { $_.Path -like 'C:\Program Files\WindowsApps\OpenAI.Codex_*\app\Codex.exe' } | Stop-Process -Force
Start-Process explorer.exe 'shell:AppsFolder\OpenAI.Codex_2p2nqsd0c76g0!App'

Notes

The provided workaround may not address the underlying cause of the issue, and further investigation is needed to determine why the app is not displaying a visible window in certain cases.

Recommendation

Apply the provided workaround to stop and relaunch the app, as it has been shown to temporarily resolve the issue. This will allow users to continue using the app while further investigation is conducted to identify and fix the root cause.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING