Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
OpenAI.Codex 26.825.6671.0 (Microsoft Store MSIX)
Package identity:
OpenAI.Codex_26.825.6671.0_x64__2p2nqsd0c76g0
Status: Ok
SignatureKind: Store
The packaged ChatGPT.exe reports Chromium file/product version 151.0.7922.174.
What subscription do you have?
Not relevant to this local pre-UI startup failure; the exact account tier was not verified.
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
Windows 11 25H2, build 26200.9168
Display adapters present:
NVIDIA GeForce RTX 4060 Laptop GPU — driver 32.0.15.9200
Intel UHD Graphics — driver 32.0.101.6790
The older OpenAI.ChatGPT-Desktop 1.2026.190.0 Store package is also installed side-by-side. The affected process path is unambiguously the OpenAI.Codex_26.825.6671.0 package.
What issue are you seeing?
Summary
Launching the Windows Codex desktop app starts a responsive Chromium process tree, but no application appears in Alt+Tab or on the taskbar. PowerShell reports MainWindowHandle = 0, and initially there are no renderer processes.
The important new diagnostic is that a valid top-level Chromium HWND has already been created. It is on-screen and has normal dimensions, but it remains hidden:
Owner PID: main packaged ChatGPT.exe
Class: Chrome_WidgetWin_0
Visible: False
Title: <empty>
Rect: 69,69,922,559
Calling Win32 ShowWindow(hwnd, SW_SHOW) followed by SetForegroundWindow(hwnd) immediately changes the application state:
- the native window becomes visible;
- multiple
--type=rendererprocesses are spawned; - the window title becomes
ChatGPT; - the application becomes usable;
- no reset, reinstall, cache deletion, or configuration change is required.
This indicates that AppX activation and native window creation both succeed, but the startup lifecycle fails to transition an already-created BrowserWindow/HWND from hidden to visible. MainWindowHandle = 0 is misleading here because .NET returns the main visible top-level window; direct Win32 enumeration proves that the hidden top-level window exists.
Process state before forcing the window visible
main ChatGPT.exe running, Responding=True, MainWindowHandle=0
crashpad-handler running
crashpad-handler running
gpu-process running
network utility running
storage utility running
renderer NOT PRESENT
The main process remained active and consumed approximately 1.73 CPU seconds during a two-second sample, consistent with a high-CPU startup spin rather than an exited process.
The main process was launched through normal AppX activation with explorer.exe as its parent. Its command line contained no --hidden or start-minimized argument.
Process state immediately after ShowWindow
main ChatGPT.exe MainWindowHandle != 0, title = ChatGPT
renderer spawned (multiple processes)
gpu-process still running
network/storage utilities still running
application UI visible and usable
The renderer processes appeared only after the existing hidden native window was shown.
Windows and package evidence
AppModel-Runtime recorded successful activation rather than an AppX launch failure:
Event 201: Created process for OpenAI.Codex_2p2nqsd0c76g0!App
Event 210: Created Desktop AppX container
Event 211: Added process to Desktop AppX container
No matching events were found in the Application log for:
Application Error 1000
Windows Error Reporting 1001
Application Hang 1002
The active Crashpad profile contained no crash report for this startup.
Checks that did not identify the cause
- AppX package status is
Ok. - The main window rectangle is valid and on-screen, so this is not an off-screen saved-bounds problem.
config.tomldoes not containapproval_policy = "untrusted".- No persisted
ELECTRON_*,CHROME_*,NODE_OPTIONS,OZONE, orANGLEenvironment override exists in HKCU/HKLM. - There are no AppCompat layer flags for the packaged
ChatGPT.exe. - GPU and utility processes start normally.
- There is no crash, WER, or AppModel activation failure.
- Repair/reset/reinstall-style explanations do not fit the observed recovery: showing the already-existing HWND restores the same running process immediately.
Why this report is distinct from related reports
There are several related headless-startup reports, including #41523, #41096, #41482, #41073, and #38766. Most infer that a window has not yet been created because MainWindowHandle = 0, or focus on updater/runtime extraction delays.
This report adds a narrower and directly observed state transition:
- the main native
Chrome_WidgetWin_0already exists with valid bounds; - it is specifically hidden (
IsWindowVisible == false); - showing that same HWND immediately triggers renderer creation and restores the UI.
A shorter version of this diagnostic was also added to #41523. This standalone report consolidates the full environment, exclusions, reproduction evidence, and suggested engineering checks so the hidden-window lifecycle failure can be tracked independently.
What steps can reproduce the bug?
- Install or update the Microsoft Store Codex app to
26.825.6671.0. - Launch Codex from the Start menu.
- Observe that several packaged
ChatGPT.exeprocesses start, but no UI appears and the app is absent from Alt+Tab. - Confirm the initial process state:
Get-CimInstance Win32_Process |
Where-Object {
$_.Name -eq 'ChatGPT.exe' -and
$_.ExecutablePath -like '*OpenAI.Codex*'
} |
Select-Object ProcessId, ParentProcessId, CommandLine
Get-Process ChatGPT |
Select-Object Id, Responding, MainWindowHandle, MainWindowTitle, CPU- Enumerate all top-level windows with Win32
EnumWindows, filter by the packaged main-process PID, and inspectGetClassName,IsWindowVisible, andGetWindowRect. - Observe the hidden
Chrome_WidgetWin_0with a normal on-screen rectangle. - Call
ShowWindow(hwnd, SW_SHOW)andSetForegroundWindow(hwnd)for that window. - Observe that the UI appears immediately and renderer processes are created.
A minimal PowerShell diagnostic/recovery sample is below. It deliberately targets only the main ChatGPT.exe whose executable path belongs to OpenAI.Codex:
PowerShell Win32 window enumeration and diagnostic ShowWindow call
Add-Type @'
using System;
using System.Text;
using System.Runtime.InteropServices;
public static class CodexWindowProbe {
public delegate bool EnumWindowsProc(IntPtr hwnd, IntPtr lParam);
[DllImport("user32.dll")]
public static extern bool EnumWindows(EnumWindowsProc callback, IntPtr lParam);
[DllImport("user32.dll")]
public static extern uint GetWindowThreadProcessId(IntPtr hwnd, out uint processId);
[DllImport("user32.dll")]
public static extern int GetClassName(IntPtr hwnd, StringBuilder text, int maxCount);
[DllImport("user32.dll")]
public static extern bool IsWindowVisible(IntPtr hwnd);
[DllImport("user32.dll")]
public static extern bool ShowWindow(IntPtr hwnd, int command);
[DllImport("user32.dll")]
public static extern bool SetForegroundWindow(IntPtr hwnd);
}
'@
$main = Get-CimInstance Win32_Process |
Where-Object {
$_.Name -eq 'ChatGPT.exe' -and
$_.ExecutablePath -like '*OpenAI.Codex*' -and
$_.CommandLine -notmatch '--type='
} |
Select-Object -First 1
[CodexWindowProbe]::EnumWindows({
param($hwnd, $lParam)
$ownerPid = 0
[CodexWindowProbe]::GetWindowThreadProcessId($hwnd, [ref]$ownerPid) | Out-Null
if ($ownerPid -eq $main.ProcessId) {
$className = [Text.StringBuilder]::new(256)
[CodexWindowProbe]::GetClassName($hwnd, $className, 256) | Out-Null
if ($className.ToString() -eq 'Chrome_WidgetWin_0') {
[pscustomobject]@{
PID = $ownerPid
Handle = ('0x{0:X}' -f $hwnd.ToInt64())
VisibleBefore = [CodexWindowProbe]::IsWindowVisible($hwnd)
}
# Diagnostic intervention used in this report:
[CodexWindowProbe]::ShowWindow($hwnd, 5) | Out-Null # SW_SHOW
[CodexWindowProbe]::SetForegroundWindow($hwnd) | Out-Null
}
}
return $true
}, [IntPtr]::Zero) | Out-NullThe exact trigger may be tied to the first launch after an automatic update. The failure was observed after the package was updated on the same day. The window-level state and immediate recovery are deterministic once the app is in the affected headless state.
What is the expected behavior?
The desktop app should always make its main window visible after successful AppX activation and native window creation.
If pre-renderer initialization, updater policy, runtime extraction, shell-environment discovery, or another startup gate must complete first, the app should display a bounded splash/progress/recovery window rather than leave a fully hidden top-level window and high-CPU background process indefinitely.
If the intended ready-to-show transition does not occur within a bounded interval, the app should recover by showing the existing main window with an actionable loading/error state.
Additional information
Suggested engineering checks:
- Log native BrowserWindow/HWND creation separately from renderer creation,
did-finish-load,ready-to-show, and the finalshow()call. - Record the reason whenever the main window remains hidden after AppX activation.
- Check whether a startup prerequisite is waiting for visibility while visibility itself waits for
ready-to-show, creating a circular dependency. - Check the automatic-update / first-launch path for a missed or deferred
show()call. - Add a bounded watchdog: if a valid main HWND exists but stays hidden and no renderer becomes ready, show a minimal recovery UI instead of remaining headless.
- Consider emitting a Windows-specific startup diagnostic event containing HWND-created, HWND-visible, renderer-created, and ready-to-show timestamps.
Related issues:
- Windows: Codex auto-update causes first launch to run in background with no window (MainWindowHandle=0) #41523 — post-update background launch with
MainWindowHandle=0 - Windows: App fails to launch, no renderer‑type process spawned, main process high CPU spin (26.820.9563.0) #41096 — no renderer process and high-CPU main-process spin
- Codex Desktop 26.825.4187.0 hangs on startup on Windows — background processes start but no GUI window appears #41482 — background processes start but no GUI appears
- [Windows][26.820.9563.0] ChatGPT launches headless with MainWindowHandle=0; disabling updater fixes startup #41073 — headless launch with
MainWindowHandle=0 - [Windows] Desktop app can remain headless for a prolonged period during startup before recovering #38766 — prolonged headless startup before recovery
Privacy: this report intentionally excludes usernames, account identifiers, Windows SIDs, local project paths, conversation content, session transcripts, raw browser-profile data, and complete logs. Additional sanitized diagnostics can be provided if requested.
Activity
github-actions commentedon Aug 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Ed93RUnner commentedon Aug 31, 2026
Additional reproduction on Windows with Microsoft Store package
OpenAI.Codex 26.825.6671.0(x64).Observed before recovery:
ChatGPT.exeprocess had no--type=argument.--type=rendererprocesses.Get-Process ChatGPTshowedMainWindowHandle = 0for all processes.Chrome_WidgetWin_0HWND while the UI was not visible.Recovery behavior in this reproduction was slightly different from the issue description:
ShowWindow(hwnd, SW_SHOW)call blocked for a while instead of returning immediately.ShowWindowAsync(hwnd, SW_SHOW)returnedTrue, butIsWindowVisible(hwnd)was stillFalseafter 2 seconds.ShowWindowcall eventually returned, and at that moment the Codex/ChatGPT UI appeared.ChatGPT.exe --type=rendererchild processes were present.This further suggests the native HWND is created but the startup/UI thread is stuck before completing the hidden->visible transition and renderer startup. No app reset, reinstall, cache deletion, or package repair was needed for this recovery.
ZLv69 commentedon Sep 3, 2026
Confirmed a closely related hidden-window state on a newer Windows MSIX build:
26.831.2377.0.Observed before recovery:
OkChatGPT.exe: running / responsive--type=rendererMainWindowHandle = 0Chrome_WidgetWin_0withVisible=FalseOne important difference from the original report: synchronous
ShowWindow(hwnd, SW_SHOW)did not return immediately on this reproduction. It blocked while the app was still in its post-update startup work.ShowWindowAsyncreturned, but the window remained effectively unusable and no renderer appeared.During the same interval, a new CUA Node runtime under
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<hash>was being materialized. On this run:bin\node.exe: presentbin\node_repl.exe: presentOnly after runtime preparation completed did renderer processes and the bundled
codex.exe ... app-serverappear. The blocked synchronousShowWindowthen returned and the UI became available.Another observation: forcing the hidden HWND visible early could expose a black Chromium host window. That did not mean the application was fully ready; message sending / app-server readiness still depended on the rest of startup completing. After the runtime was fully materialized, a clean restart was normal.
So on this machine the hidden
Chrome_WidgetWin_0is real, but it appears coupled to a longer main-thread/startup stall rather than always being only a missed finalshow()call.This may be useful for distinguishing:
No installed package files, runtime files, registry settings, or auth data were modified during this diagnosis. Local paths/identifiers are omitted.
HEYWEIREN commentedon Sep 8, 2026
Recurrence on
26.901.6511.0(2026-09-08)This reproduced again on a substantially newer Windows Store/MSIX build.
Environment
26200.9168OpenAI.Codex_26.901.6511.0_x64__2p2nqsd0c76g0OkInitial headless state
The main packaged
ChatGPT.exeprocess started at approximately21:33:00local time.Before recovery:
ChatGPT.exeprocesses were present (main/crashpad/GPU/utility services).Responding=True.ChatGPT.exe --type=rendererprocess existed.MainWindowHandle = 0.Chrome_WidgetWin_0owned by the main process withVisible=False.Window-recovery behavior differed from the original reproduction
This time, merely requesting that the hidden HWND be shown was not sufficient:
ShowWindowAsync(hwnd, SW_SHOW)returnedTrue.SetWindowPos(..., SWP_SHOWWINDOW)request also returnedTrue.IsWindowVisible(hwnd)was stillFalse,MainWindowHandlewas still0, and there were still no renderer processes.ShowWindow(hwnd, SW_SHOW)diagnostic call blocked instead of returning promptly; I stopped only that diagnostic PowerShell helper.I then re-issued normal packaged activation through:
I did not terminate the existing Codex/ChatGPT process tree. Within about 8 seconds:
28648) acquired a non-zero main-window handle;ChatGPT;IsWindowVisible=True;Strong correlation with CUA runtime materialization
A new runtime was populated under:
Observed metadata:
2026-09-08 21:33:06.5822026-09-08 21:39:41.521bin\node.exe: presentbin\node_repl.exe: presentmanifest.json: presentThe runtime-materialization interval overlaps the headless startup interval closely. This is consistent with the reports in #41822 and the broader startup/runtime-staging cluster (#42501, #41523).
The important refinement to the original issue is that the hidden
Chrome_WidgetWin_0can be a visible symptom of a blocked pre-renderer startup path, rather than always being only a missed finalshow()transition. In this recurrence, forcing the HWND visible early did not complete startup; normal AppX reactivation after runtime preparation had progressed/completed restored the UI without restarting the main process.No app reset, reinstall, cache deletion, package/runtime modification, configuration change, or authentication-data change was performed.
QianSteveLei commentedon Sep 10, 2026
Additional reproduction on a newer Microsoft Store/MSIX build:
OpenAI.Codex 26.903.8094.0(x64).Observed before recovery:
OpenAI.Codex_26.903.8094.0_x64__2p2nqsd0c76g0ChatGPT.exeprocesses, but no taskbar window/UI appeared.Get-Process ChatGPT | Select Id, ProcessName, CPU, MainWindowTitle, MainWindowHandlereportedMainWindowHandle = 0and an empty title for all 6 processes.EnumWindowsenumeration found a top-level Chromium window owned by aChatGPT.exeprocess:Troubleshooting attempted before recovery:
ShowWindow(..., SW_SHOW)attempt against the hiddenChrome_WidgetWin_0was issued earlier, but the UI did not appear immediatelyThe application eventually became visible later during process/window diagnostics. At the moment it appeared, the command being run was a read-only
Get-CimInstance Win32_Processquery to identify the main packagedChatGPT.exe(no--type=argument). That query itself should not change window state, so I cannot claim it caused recovery. A priorShowWindowrequest may have completed asynchronously/delayed, or startup may have unblocked independently.The useful new data point is that this hidden-window/headless-startup condition is still reproducible on
26.903.8094.0, and the affectedChrome_WidgetWin_0was explicitly confirmed asVisible=FalsewhileDWMWA_CLOAKED=0.No
.codexproject/session data was deleted or modified during diagnosis.QianSteveLei commentedon Sep 13, 2026
Recurrence on a newer Windows Store/MSIX build:
OpenAI.Codex 26.908.4834.0(x64).The same machine that previously reproduced this on
26.903.8094.0reproduced the headless startup again after the app updated.Current package state:
During the failed launch, direct Win32 enumeration again found the hidden Chromium top-level window:
ShowWindowAsync(hwnd, SW_SHOW)andSetForegroundWindow(hwnd)were issued, followed by a normal packaged reactivation via:At the time of this diagnostic, the key confirmed point is that the hidden-window/headless-startup bug still reproduces on
26.908.4834.0; package status remainsOk.This is a recurrence on the same system, not a first-launch/install-only event.
CYZice commentedon Nov 7, 2026