Repository navigation
Description
Summary
On Windows, Codex/ChatGPT Desktop package OpenAI.Codex_26.820.7780.0_x64__2p2nqsd0c76g0 entered a multi-stage failure state during normal use:
- After closing the app, it could not be reopened normally.
- A newly activated
ChatGPT.exewas created but remained permanently suspended: ~2.5 MB working set, 1 thread,MainWindowHandle=0,CPU=0, withThreadState=Wait / WaitReason=Suspended. - Manually calling
NtResumeProcessreturned0and immediately restored the app to a normal Electron process tree (~338 MB, 64 threads, nonzero window handle). - The previous
codex.exe app-serverdid not terminate. It remained as an orphan with a dead parent PID and only 1 thread, even aftertaskkill /FandStop-Process -Force. - After recovery, an existing task/thread would not load its content. Later, messages would not submit and older tasks/chats would not load.
- A full Windows restart did not resolve the thread/history/send failures.
- The Desktop app then closed and reopened by itself. The old main
ChatGPT.exedisappeared, but itscodex.exeapp-server again remained orphaned; a new main process and a newcodex.exeapp-server were created. - Windows Application Event Log contained no matching
ChatGPT,Codex, orOpenAIcrash event during the observed self-relaunch window.
This appears to be a Desktop lifecycle / activation / app-server cleanup / state-sync regression rather than a single stuck UI process.
Environment
- OS: Windows 11 x64
- Codex/ChatGPT Desktop MSIX package:
26.820.7780.0 - Package identity:
OpenAI.Codex_2p2nqsd0c76g0 - Installed executable path:
C:\Program Files\WindowsApps\OpenAI.Codex_26.820.7780.0_x64__2p2nqsd0c76g0\app\ChatGPT.exe - Bundled app-server path:
C:\Users\<user>\AppData\Local\OpenAI\Codex\bin\d0097be4feba73d0\codex.exe
Evidence: permanently suspended launch
Direct AppX activation succeeded in creating a process:
Start-Process explorer.exe -ArgumentList 'shell:AppsFolder\OpenAI.Codex_2p2nqsd0c76g0!App'But the resulting process was effectively uninitialized:
Id : 12128
ProcessName : ChatGPT
Responding : True
MainWindowHandle : 0
Handles : 0
Threads : 1
CPU : 0
WorkingSet : 2588672
Thread state:
Id ThreadState WaitReason
33780 Wait Suspended
The process command line was simply:
"C:\Program Files\WindowsApps\OpenAI.Codex_26.820.7780.0_x64__2p2nqsd0c76g0\app\ChatGPT.exe"
Calling NtResumeProcess manually:
Add-Type @"
using System;
using System.Runtime.InteropServices;
public static class NativeMethods {
[DllImport("ntdll.dll")]
public static extern int NtResumeProcess(IntPtr ProcessHandle);
}
"@
$p = Get-Process -Id 12128
[NativeMethods]::NtResumeProcess($p.Handle)returned:
0
Immediately afterward the same process became healthy:
Id : 12128
CPU : 16.609375
WorkingSet : 337772544
Threads : 64
MainWindowHandle : 396952
The Suspended wait reason disappeared and the full Electron child tree was spawned.
Evidence: orphaned app-server that cannot be cleaned up
Before the successful resume, an older app-server was left behind:
PID : 27900
Name : codex.exe
Parent PID: 28572
CPU : 7.875 s
Threads : 1
The parent process no longer existed.
Its command line showed the normal Desktop app-server invocation with the bundled codex_app MCP server and a per-instance named pipe.
Both of these failed to remove it:
taskkill /PID 27900 /T /F
Stop-Process -Id 27900 -ForceStop-Process -Force returned without an error, but the same PID, CPU time, working set, handle count, and single thread remained visible afterward.
Its sole remaining thread was:
ThreadState: Wait
WaitReason : Executive
After the resumed ChatGPT.exe initialized normally, it created a new healthy app-server:
codex.exe PID 15380
Parent PID 12128
Threads 41
while orphan PID 27900 remained.
Evidence: thread/history/send failures
After the app was manually recovered:
- The Desktop shell rendered normally.
- An existing task/thread could be selected from the sidebar, but its conversation/task content remained blank and would not load.
- Later, messages would not submit.
- Older tasks/chats would not load.
- A full Windows restart did not resolve these failures.
This is similar to #40968 for prompt submission, but in this case it occurred together with suspended activation, orphan app-server leakage, thread/history loading failures, and later self-relaunch.
Evidence: silent self-relaunch and second orphan
Later, without the user intentionally closing the app, the main Desktop process changed.
The previous main process (ChatGPT.exe PID 12128) disappeared, leaving its app-server (codex.exe PID 15380) orphaned with one thread.
A completely new process tree then started:
15380 codex 26.08.2026 23:33:11.516 Threads=1 RAM=151.8 MB # old orphan
35796 ChatGPT 26.08.2026 23:42:26.818 Threads=55 RAM=342.8 MB # new main
5012 ChatGPT 26.08.2026 23:42:26.899 Threads=8 RAM=9.6 MB
14528 ChatGPT 26.08.2026 23:42:27.251 Threads=23 RAM=225.6 MB
29024 ChatGPT 26.08.2026 23:42:27.255 Threads=22 RAM=55.6 MB
24872 ChatGPT 26.08.2026 23:42:27.271 Threads=10 RAM=22.4 MB
5236 ChatGPT 26.08.2026 23:42:28.667 Threads=31 RAM=324.6 MB
35700 ChatGPT 26.08.2026 23:42:28.667 Threads=31 RAM=207.4 MB
22424 codex 26.08.2026 23:42:28.759 Threads=40 RAM=120.1 MB # new active app-server
2268 ChatGPT 26.08.2026 23:42:33.141 Threads=35 RAM=261.3 MB
12992 ChatGPT 26.08.2026 23:42:33.142 Threads=12 RAM=35.0 MB
Process ancestry confirmed:
codex.exe 15380 -> parent 12128 (parent no longer exists)
ChatGPT.exe 35796 -> new main process
codex.exe 22424 -> parent 35796 (new healthy app-server)
The new Desktop tree therefore started while the previous app-server remained orphaned.
A query of the Windows Application event log for the previous 15 minutes returned no ChatGPT, Codex, or OpenAI matching crash/error event, so the visible close/reopen may have been an internal relaunch/self-recovery rather than a conventional WER-recorded crash.
Expected behavior
- AppX activation should resume the main
ChatGPT.exeautomatically; the user should never need to callNtResumeProcessmanually. - Closing/restarting/relaunching Desktop should terminate its
codex.exe app-serverand associated per-instance resources. - A new Desktop instance should not leave previous app-server processes orphaned.
- Existing threads/tasks should reliably load after launch/restart.
- Prompt submission should either succeed or return a clear actionable error; it should not silently fail.
- If Desktop performs an internal recovery/relaunch, it should preserve thread state and cleanly tear down the previous process tree.
Related issues
- [Windows] Codex/ChatGPT desktop MSIX auto-updater loops forever — new build downloads but never deploys; app also launches into a permanently-suspended process #38843 — permanently suspended
ChatGPT.exelaunch;NtResumeProcessworkaround - Windows Codex desktop: Send button spins forever and prompts never submit #40968 — Windows Desktop Send button/prompt submission failure on
26.820.7780.0 - Windows 26.715: duplicate MCP suites accumulate per session; termination misses cmd.exe/node.exe grandchildren (Job Object pattern exists in-repo but unused on MCP spawn path) #34614 — Windows child-process / orphan cleanup failures in Codex Desktop
The combination above reproduces on the current 26.820.7780.0 package and persisted even after a full Windows restart.
Activity
github-actions commentedon Aug 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
skstussy commentedon Aug 29, 2026
I am experiencing what appears to be the same regression after the recent Codex Desktop update on Windows 10.
In my case it is now completely blocking Codex:
I submitted diagnostics using the built-in Send Feedback function.
Feedback ID: no-active-thread-01a04c2a-e91d-7fa2-b0cd-f07dacf1bcf0
The issue is currently preventing me from using Codex Desktop for both existing and new Work sessions.
glarionenko commentedon Sep 2, 2026
Reproducing this on the latest Microsoft Store Stable build as of 2026-09-03:
OpenAI.Codex 26.901.1978.0(Status: Ok)26.825.6671.0OpenAI.CodexBeta 26.727.4816.001a04541-a03b-7403-9f21-143b8f3e8391Current symptom after updating to
26.901.1978.0: the Desktop app shows the existing chat/thread list in the sidebar, but selecting an existing thread leaves the conversation content blank / stuck loading. New chats in the same project can be created and work normally.During troubleshooting I also observed the same lifecycle pattern described in this issue:
ChatGPT.execan disappear while itscodex.exe ... app-serverremains running. One Stable app-server was left with a dead parent PID;taskkill /Freported that no instance of the task was running, and CIMTerminatereturnedReturnValue: 2. A Windows reboot was required to clear it.After a clean reboot with no Codex/ChatGPT processes running and after disabling a user Startup shortcut, the issue still reproduces. Updating Stable from
26.825.6671.0to26.901.1978.0did not fix the missing thread contents.I also tested Beta
26.727.4816.0from a clean state: it can open the project and attempt to resume the thread, but the historical content still does not load; its GUI process then disappears while the Betacodex.exe app-serverremains.Standalone npm CLI is
codex-cli 0.150.1(D:\CodexTools\npm\codex.cmd).codex resume --allfinds the existing session and entersResuming session…, which suggests the thread/session metadata is still present. The failure appears specific to resuming/hydrating existing thread history rather than creating new threads.glarionenko commentedon Sep 7, 2026
Follow-up: still reproducible on Stable
26.901.6511.0; same persisted thread can work in one process lifetime, then stay blank after restart, and the orphan app-server can survive sign-outReproducing again on Windows x64 on 2026-09-07 with Microsoft Store Stable:
OpenAI.Codex 26.901.6511.0C:\Users\<user>\AppData\Local\OpenAI\Codex\bin\8e5b6932251c2c1c\codex.exeThere are two persistent symptoms that appear related.
1. Existing thread is listed, but its conversation body does not hydrate after restart
The thread remains present in the sidebar, but selecting it can leave the conversation body blank/loading indefinitely after restarting Codex. This has continued across several Desktop updates.
This does not look like simple transcript corruption or a hard size limit:
30,125lines,0parse errors.Most importantly, the same unchanged historical thread later opened successfully in Stable
26.901.1978.0/ bundled core0.153.0-alpha.5after waiting. Once open, it worked normally:/root/developer,/root/reviewer, and/root/runtime_deployersubagents were accessible;After later restarts, the same thread can again remain blank. So large history may amplify hydration cost, but it is not sufficient to explain the failure by itself: the exact same persisted graph is sometimes fully usable and sometimes fails to hydrate after process restart.
This still looks consistent with a restart/resume/hydration/lifecycle race or state-sync problem rather than data loss.
2.
codex.exe app-serverbecomes an unkillable orphan and prevents a clean Desktop restartOn the current
26.901.6511.0build, closing the Desktop UI left this app-server behind:Attempts to terminate it from an elevated Administrator PowerShell:
After
Stop-Process -Force, .NET reported:The sole remaining thread was:
CIM termination returned:
The orphan survives Windows sign-out
I then signed out of Windows and signed back in. The new interactive console session became Session 2, but the orphan stayed in the old Session 1:
codex.exestill existed as PID 2112 in Session 1 withHasExited=True.Only these processes remained in Session 1:
Both of these session cleanup attempts reported success / no error but did not remove Session 1 or PID 2112:
The orphan still holds the live Codex databases
Sysinternals
handle.exe -p 2112shows that the stuck app-server continues to hold handles to the active Codex state, including:This is particularly concerning because a new Desktop instance may start while the old, half-terminated app-server still owns the same SQLite/WAL state.
Sysinternals cleanup attempts also failed:
PsKillas Administrator: access denied / unable to kill.PsExec -s ... taskkill /PID 2112 /F: still reports no instance of the task is running.PsExec -s ... pskill 2112: also fails.At this point only a full Windows reboot appears able to remove the stuck app-server/session.
User-visible impact
This creates a repeating recovery loop:
codex.exe app-serverin a half-terminated orphan state.Downwith the orphan process.Requested investigation / questions
HasExited=True) but the EPROCESS/thread/handles remain and even SYSTEM-level termination cannot reap it?CODEX_HOMEwhile a previous instance still owns the SQLite/WAL files, and surface an actionable recovery message instead?doctor/ rehydrate / clean app-server restart procedure for Windows that does not require rebooting the entire machine?No private transcript contents, credentials, auth files, tokens, or raw databases are included. I can provide additional sanitized process/session/handle output if maintainers need a specific diagnostic.
canyrtcn commentedon Oct 4, 2026
Reproduced again on a newer Windows Desktop build, so this regression appears to persist beyond 26.820.7780.0.
Environment
OpenAI.Codex_26.930.3930.0_x64__2p2nqsd0c76g0OpenAI.Codex_2p2nqsd0c76g0%LOCALAPPDATA%\OpenAI\Codex\bin\8aaf1547b825b104\codex.exeReproduction observed repeatedly
ChatGPT.exeorcodex.exeuser processes running andCodexSandboxService.OpenAI.CodexinRunningstate.ChatGPT.exeprocess is created, but no window appears.ThreadState=Wait / WaitReason=SuspendedNtResumeProcesson the mainChatGPT.exereturns0.codex.exe app-serverprocesses can accumulate. The currently active app-server is the child of the current mainChatGPT.exe; older ones remain orphaned with dead parent PIDs.Wait / Executive.Stop-Process -Forcecan return without actually removing the process. StoppingCodexSandboxService.OpenAI.Codexcaused one such orphan to disappear, but the suspended-launch problem reproduced again on the next clean launch.Example suspended frontend observed on this build:
The working manual recovery is still:
Return value is
0, and the window appears immediately.This makes the failure mode look extremely similar to the original report, but it is still reproducible on 26.930.3930.0. The combination of suspended AppX activation, orphaned app-server processes, occasional self-relaunch, and thread/history hydration failure is still present.
A watchdog/self-recovery for a main process that remains
Wait/Suspended, plus reliable teardown of the previous app-server during relaunch, would likely remove the need for manual recovery. Happy to provide additional logs/diagnostics if useful.