You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Windows] Codex desktop launches processes but shows no window after update #42714
Additional confirmed Windows case + working workaround:
After the latest Codex/ChatGPT Desktop update, launching the app only created background processes in Task Manager. No visible window or taskbar icon appeared. Restarting Windows, terminating all app processes in Task Manager, and trying Alt+Space did not help.
In my case, Windows required a NEW network permission for Codex after the update. After granting the app network access again, Codex opened normally immediately.
This suggests the update may invalidate or change the existing Windows network/firewall permission for the app/package, while the GUI does not surface a useful error when network access is blocked. Instead, the app appears to run headlessly.
Potential area to investigate:
Windows Firewall / network capability state after app update
package/app identity or executable path changing during update
handling when network access is denied or an old firewall rule no longer matches
showing a visible network-permission/error dialog instead of remaining background-only
Expected behavior: existing network access remains valid after an update, or Codex clearly prompts for the required permission and still creates a visible window/error state.
Update: issue reproduced after another Microsoft Store update\n\nThe issue is still reproducible and appears tied to the desktop app update sequence.\n\n- Codex worked normally on the morning of 2026-09-06.\n- At approximately 14:24 on 2026-09-06, Microsoft Store updated 26.901.5280.0 to 26.901.6511.0.\n- The UI disappeared again after that update.\n- Current package version: 26.901.6511.0.\n\nNew diagnostics:\n- The app process is created successfully, along with GPU, network, and storage processes.\n- No renderer process is created.\n- All ChatGPT processes have MainWindowHandle=0, so no visible window exists.\n- Normal launch without the GPU-disabled argument fails in the same way, so this is not caused by the custom GPU-disabled shortcut.\n- The startup log stops after Launching app and does not record window or renderer initialization.\n- AppX Deployment logged warning 0x80070015 while notifying the app pre-launch service during the update.\n- A previous build also generated a Windows MoAppHang event.\n\nReinstall, AppX re-registration, Reset-AppxPackage, clean user data, normal launch, and GPU-disabled launch were all unsuccessful.\n\nThis is a regression across successive Windows desktop updates. No private chats, credentials, databases, or project files are attached.
For machines that repeatedly enter this post-update "processes running, no window" state, I am using a reversible controlled-update policy rather than allowing Codex/Store to update unattended.
Normal use:
CODEX_SPARKLE_ENABLED=false
Microsoft Store AutoDownload=2
Planned maintenance:
backup current state
-> temporarily unblock
-> update manually
-> verify Get-AppxPackage OpenAI.Codex
-> require intended Version + Status: Ok
-> re-block
Full CMD/PowerShell workflow with timestamped logging and backup/restore: #25770 (comment)
This does not fix the renderer/runtime/network-permission failure described in this issue. It is meant to stop frequent automatic package transitions from repeatedly putting an otherwise working installation into the bad post-update state. Also, AutoDownload=2 affects automatic updates for all Microsoft Store apps, not only Codex.
Windows: first launch after a Store update is headless for minutes (3 m 37 s measured) because the EFS Application Protected runtime payload is materialized before the renderer.
After each MSIX Store update, the first launch copies the bundled runtime out of the package. Files under app\resources\cua_node are EFS Application Protected; the copy costs ~57 ms per file. Copying 2,365 files / 239.6 MB takes >2 min and blocks renderer/app-server creation. Once cached, launch takes seconds. Retry only appears to fix it because the prior copy has finished.
Environment: Windows 10 Home zh-CN 22H2, build 19045, x64. Codex MSIX OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0, installed 2026-10-07 20:33:16 (local UTC+8); the same copy failures also appear in this machine's logs on 26.930.3930.0 and 26.930.7945.0. 2 NVMe SSDs (C: 187 GB, E: 1 TB), NTFS, NtfsDisableEncryption=0. Kaspersky AV; Defender real-time off. CODEX_HOME set to a non-default path (not the cause; marketplace copy failures land there).
Repro: let Store update the app while closed; click the icon. Task Manager shows ChatGPT.exe, crashpad, GPU/network/storage utilities, but no renderer, no app-server, no window. After 2-4 min a failure page with Retry appears. Retry starts in seconds because the prior copy finished.
Timeline (2026-10-07, local UTC+8): 20:33:16 package installed. 20:38:53-55 bin\969... populated. 20:45:35 launch; no renderer/app-server. 20:48:36-40 cua_node\3dd... finishes, 2,365 files / 239.6 MB. 20:48:41 rg.exe written. 20:49:12 first renderer. 20:49:13 app-server starts. Total 3 m 37 s launch->renderer; the session's log files are only created at 20:49:11-15.
Benchmark: xcopy /G (COPY_FILE_ALLOW_DECRYPTED_DESTINATION): packaged cua_node, 2,365 / 239.6 MB = 134.4 s, 57 ms/file; already materialized copy = 4.4 s, 1.8 ms/file; single codex.exe 333 MB = 0.3 s. Throughput is fine (~1.1 GB/s); the cost is per-file decryption of the protected source.
Evidence: cipher /c on the packaged manifest.json shows E, Compatibility Level: Application Protected. Plain copy /y fails with "The specified file could not be encrypted." -- reproduced with destinations on two different volumes (D: and E:), so it is a property of the source, not of a drive. xcopy /G succeeds. Node fs.copyFile / fs.cp fails with UNKNOWN: unknown error, copyfile from the packaged plugin.json to CODEX_HOME\tmp...staging-. Logs show six distinct staging GUIDs in ~10 min; failed copies restart from scratch.
Impact: every Store update leaves the app apparently broken for 2-4 min: processes but no window, splash, progress, or error until timeout. Retry teaches the wrong workaround. Slower machines may exceed the startup timeout and look permanently broken.
Suggestions: 1) use COPY_FILE_ALLOW_DECRYPTED_DESTINATION or a buffered read/write fallback, not fs.copyFile / fs.cp. 2) Show a window/splash immediately; materialize behind the UI, or at install/update time. 3) Ship the runtime as one archive extracted once or in parallel, not thousands of files. 4) Reuse the content-addressed runtime directory when the archive hash is unchanged. 5) Recover incomplete .staging-* and surface the relocation error.
Workaround: a PowerShell task detects a package-version change, launches the app in the background, waits for renderer + app-server, then minimizes the window. Later normal click is a warm start: 15.3 s activation->renderer. App unmodified.
Activity
github-actions commentedon Sep 4, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
bobi09-netizen commentedon Sep 5, 2026
Additional confirmed Windows case + working workaround:
After the latest Codex/ChatGPT Desktop update, launching the app only created background processes in Task Manager. No visible window or taskbar icon appeared. Restarting Windows, terminating all app processes in Task Manager, and trying Alt+Space did not help.
In my case, Windows required a NEW network permission for Codex after the update. After granting the app network access again, Codex opened normally immediately.
This suggests the update may invalidate or change the existing Windows network/firewall permission for the app/package, while the GUI does not surface a useful error when network access is blocked. Instead, the app appears to run headlessly.
Potential area to investigate:
Expected behavior: existing network access remains valid after an update, or Codex clearly prompts for the required permission and still creates a visible window/error state.
Lanceleelzl commentedon Sep 7, 2026
Update: issue reproduced after another Microsoft Store update\n\nThe issue is still reproducible and appears tied to the desktop app update sequence.\n\n- Codex worked normally on the morning of 2026-09-06.\n- At approximately 14:24 on 2026-09-06, Microsoft Store updated 26.901.5280.0 to 26.901.6511.0.\n- The UI disappeared again after that update.\n- Current package version: 26.901.6511.0.\n\nNew diagnostics:\n- The app process is created successfully, along with GPU, network, and storage processes.\n- No renderer process is created.\n- All ChatGPT processes have MainWindowHandle=0, so no visible window exists.\n- Normal launch without the GPU-disabled argument fails in the same way, so this is not caused by the custom GPU-disabled shortcut.\n- The startup log stops after Launching app and does not record window or renderer initialization.\n- AppX Deployment logged warning 0x80070015 while notifying the app pre-launch service during the update.\n- A previous build also generated a Windows MoAppHang event.\n\nReinstall, AppX re-registration, Reset-AppxPackage, clean user data, normal launch, and GPU-disabled launch were all unsuccessful.\n\nThis is a regression across successive Windows desktop updates. No private chats, credentials, databases, or project files are attached.
attacker88 commentedon Sep 10, 2026
The issue still exists in the new version 26.903.9818.0
I can see it run in the task manager but the GUI never pops up.
tolga-guldutuna commentedon Sep 25, 2026
For machines that repeatedly enter this post-update "processes running, no window" state, I am using a reversible controlled-update policy rather than allowing Codex/Store to update unattended.
Normal use:
Planned maintenance:
Full CMD/PowerShell workflow with timestamped logging and backup/restore:
#25770 (comment)
This does not fix the renderer/runtime/network-permission failure described in this issue. It is meant to stop frequent automatic package transitions from repeatedly putting an otherwise working installation into the bad post-update state. Also,
AutoDownload=2affects automatic updates for all Microsoft Store apps, not only Codex.Changypz commentedon Oct 7, 2026
Windows: first launch after a Store update is headless for minutes (3 m 37 s measured) because the EFS Application Protected runtime payload is materialized before the renderer.
After each MSIX Store update, the first launch copies the bundled runtime out of the package. Files under app\resources\cua_node are EFS Application Protected; the copy costs ~57 ms per file. Copying 2,365 files / 239.6 MB takes >2 min and blocks renderer/app-server creation. Once cached, launch takes seconds. Retry only appears to fix it because the prior copy has finished.
Environment: Windows 10 Home zh-CN 22H2, build 19045, x64. Codex MSIX OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0, installed 2026-10-07 20:33:16 (local UTC+8); the same copy failures also appear in this machine's logs on 26.930.3930.0 and 26.930.7945.0. 2 NVMe SSDs (C: 187 GB, E: 1 TB), NTFS, NtfsDisableEncryption=0. Kaspersky AV; Defender real-time off. CODEX_HOME set to a non-default path (not the cause; marketplace copy failures land there).
Repro: let Store update the app while closed; click the icon. Task Manager shows ChatGPT.exe, crashpad, GPU/network/storage utilities, but no renderer, no app-server, no window. After 2-4 min a failure page with Retry appears. Retry starts in seconds because the prior copy finished.
Timeline (2026-10-07, local UTC+8): 20:33:16 package installed. 20:38:53-55 bin\969... populated. 20:45:35 launch; no renderer/app-server. 20:48:36-40 cua_node\3dd... finishes, 2,365 files / 239.6 MB. 20:48:41 rg.exe written. 20:49:12 first renderer. 20:49:13 app-server starts. Total 3 m 37 s launch->renderer; the session's log files are only created at 20:49:11-15.
Benchmark: xcopy /G (COPY_FILE_ALLOW_DECRYPTED_DESTINATION): packaged cua_node, 2,365 / 239.6 MB = 134.4 s, 57 ms/file; already materialized copy = 4.4 s, 1.8 ms/file; single codex.exe 333 MB = 0.3 s. Throughput is fine (~1.1 GB/s); the cost is per-file decryption of the protected source.
Evidence: cipher /c on the packaged manifest.json shows E, Compatibility Level: Application Protected. Plain copy /y fails with "The specified file could not be encrypted." -- reproduced with destinations on two different volumes (D: and E:), so it is a property of the source, not of a drive. xcopy /G succeeds. Node fs.copyFile / fs.cp fails with UNKNOWN: unknown error, copyfile from the packaged plugin.json to CODEX_HOME\tmp...staging-. Logs show six distinct staging GUIDs in ~10 min; failed copies restart from scratch.
Impact: every Store update leaves the app apparently broken for 2-4 min: processes but no window, splash, progress, or error until timeout. Retry teaches the wrong workaround. Slower machines may exceed the startup timeout and look permanently broken.
Suggestions: 1) use COPY_FILE_ALLOW_DECRYPTED_DESTINATION or a buffered read/write fallback, not fs.copyFile / fs.cp. 2) Show a window/splash immediately; materialize behind the UI, or at install/update time. 3) Ship the runtime as one archive extracted once or in parallel, not thousands of files. 4) Reuse the content-addressed runtime directory when the archive hash is unchanged. 5) Recover incomplete .staging-* and surface the relocation error.
Workaround: a PowerShell task detects a package-version change, launches the app in the background, waits for renderer + app-server, then minimizes the window. Later normal click is a warm start: 15.3 s activation->renderer. App unmodified.
Related: #41752, #42412.