Bug report: ChatGPT/Codex Desktop repeatedly fails to start on Windows after auto-update due to `cua_node` runtime relocation
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of the Codex App are you using (From “About Codex” dialog)?
OpenAI.Codex 26.825.6671.0
What subscription do you have?
plus
What platform is your computer?
- OS: Windows x64 - Distribution: Microsoft Store / MSIX - Current package: -
OpenAI.Codex 26.831.1445.0- package family:OpenAI.Codex_2p2nqsd0c76g0- App ID: -OpenAI.Codex_2p2nqsd0c76g0!App- System drive: - NTFS 3.1 - EFS test in the user's temp directory: -cipher /e <temp>\efs-test\test.txt- result:[OK]- so ordinary NTFS/EFS functionality on the system drive is working.
What issue are you seeing?
Bug report: ChatGPT/Codex Desktop repeatedly fails to start on Windows after auto-update due to cua_node runtime relocation
Summary
ChatGPT/Codex Desktop on Windows repeatedly starts headless after Microsoft Store auto-updates. The main ChatGPT.exe, crashpad, GPU and utility processes are created, but ChatGPT.exe --type=renderer and codex.exe ... app-server are missing, and no usable window appears.
The problem reproduced on:
OpenAI.Codex 26.825.6671.0- after auto-update, again on
OpenAI.Codex 26.831.1445.0
A normal reinstall/reset did not provide a durable fix.
Environment
- OS: Windows x64
- Distribution: Microsoft Store / MSIX
- Current package:
OpenAI.Codex 26.831.1445.0- package family:
OpenAI.Codex_2p2nqsd0c76g0
- App ID:
OpenAI.Codex_2p2nqsd0c76g0!App
- System drive:
- NTFS 3.1
- EFS test in the user's temp directory:
cipher /e <temp>\efs-test\test.txt- result:
[OK] - so ordinary NTFS/EFS functionality on the system drive is working.
Symptoms
On launch, Windows AppModel reports successful package activation and process creation.
Observed process state during failure:
- main
ChatGPT.exe: present - crashpad handlers: present
- GPU process: present
- network utility process: present
- storage utility process: present
ChatGPT.exe --type=renderer: missingcodex.exe ... app-server: missing- visible application window: missing / unusable
Disabling the updater did not resolve the issue.
Calling ShowWindow() on discovered Chromium windows also did not restore the UI while the renderer was absent.
Runtime staging failure
Under:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node
every failed launch created another directory of the form:
.staging-<runtime-id>-<random>
For the earlier affected build, multiple staging directories contained:
bin\node.exe: presentbin\node_repl.exe: missing
while the packaged source file existed under:
C:\Program Files\WindowsApps\OpenAI.Codex_<version>_x64__2p2nqsd0c76g0\app\resources\cua_node\bin\node_repl.exe
More than twenty failed staging directories accumulated across repeated launches.
Confirmed workaround
The reliable workaround was to:
- identify the runtime ID from the newest
.staging-<runtime-id>-*directory; - create the final content-addressed runtime directory:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<runtime-id> - copy the complete official packaged
cua_noderuntime from WindowsApps into that directory with:
xcopy /E /I /H /Y /G - verify:
bin\node.exebin\node_repl.exemanifest.json
- relaunch ChatGPT.
In the successful repair on 26.825.6671.0, 4,679 files were copied. Immediately afterward:
ChatGPT.exe --type=rendererappeared;codex.exe ... app-serverappeared;- the desktop window opened and could be closed/reopened normally.
After a Microsoft Store auto-update to 26.831.1445.0, the startup failure returned, indicating the workaround is runtime/version-specific and must be repeated when the content-addressed runtime ID changes.
Why this appears to be a product bug rather than broken local EFS
The system drive is NTFS 3.1, and a local EFS encryption test succeeds:
cipher /e <temp>\efs-test\test.txt → [OK]
The failure is specifically associated with relocation/extraction of packaged Application Protected resources from the MSIX/WindowsApps location into the user-writable runtime cache.
Expected behavior
The desktop app should:
- reliably relocate/extract bundled Application Protected runtime resources into the user cache;
- use a Windows copy path that supports a decrypted destination (equivalent to
COPY_FILE_ALLOW_DECRYPTED_DESTINATION/xcopy /G) or use a safe buffered read/write fallback; - atomically finalize the content-addressed runtime;
- recover from an incomplete
.staging-*directory rather than creating a new failed staging directory on every launch; - surface the underlying relocation error instead of silently remaining headless.
Related public reports
- openai/codex #41540 — headless startup caused by Application Protected
node_repl.exerelocation failure (0x80071770) - openai/codex #41654 — repeated regressions across updates due to Application Protected runtime relocation failures
- openai/codex #40843 — MSIX bundled executable relocation fails with
ERROR_ENCRYPTION_FAILED - openai/codex #40791 — Windows startup blocker involving Application Protected
codex.exe
Additional note
No WindowsApps ownership/ACLs, package files, registry EFS settings, or system encryption settings were modified to achieve the workaround.
What steps can reproduce the bug?
Bug report: ChatGPT/Codex Desktop repeatedly fails to start on Windows after auto-update due to cua_node runtime relocation
Summary
ChatGPT/Codex Desktop on Windows repeatedly starts headless after Microsoft Store auto-updates. The main ChatGPT.exe, crashpad, GPU and utility processes are created, but ChatGPT.exe --type=renderer and codex.exe ... app-server are missing, and no usable window appears.
The problem reproduced on:
OpenAI.Codex 26.825.6671.0- after auto-update, again on
OpenAI.Codex 26.831.1445.0
A normal reinstall/reset did not provide a durable fix.
Environment
- OS: Windows x64
- Distribution: Microsoft Store / MSIX
- Current package:
OpenAI.Codex 26.831.1445.0- package family:
OpenAI.Codex_2p2nqsd0c76g0
- App ID:
OpenAI.Codex_2p2nqsd0c76g0!App
- System drive:
- NTFS 3.1
- EFS test in the user's temp directory:
cipher /e <temp>\efs-test\test.txt- result:
[OK] - so ordinary NTFS/EFS functionality on the system drive is working.
Symptoms
On launch, Windows AppModel reports successful package activation and process creation.
Observed process state during failure:
- main
ChatGPT.exe: present - crashpad handlers: present
- GPU process: present
- network utility process: present
- storage utility process: present
ChatGPT.exe --type=renderer: missingcodex.exe ... app-server: missing- visible application window: missing / unusable
Disabling the updater did not resolve the issue.
Calling ShowWindow() on discovered Chromium windows also did not restore the UI while the renderer was absent.
Runtime staging failure
Under:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node
every failed launch created another directory of the form:
.staging-<runtime-id>-<random>
For the earlier affected build, multiple staging directories contained:
bin\node.exe: presentbin\node_repl.exe: missing
while the packaged source file existed under:
C:\Program Files\WindowsApps\OpenAI.Codex_<version>_x64__2p2nqsd0c76g0\app\resources\cua_node\bin\node_repl.exe
More than twenty failed staging directories accumulated across repeated launches.
Confirmed workaround
The reliable workaround was to:
- identify the runtime ID from the newest
.staging-<runtime-id>-*directory; - create the final content-addressed runtime directory:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<runtime-id> - copy the complete official packaged
cua_noderuntime from WindowsApps into that directory with:
xcopy /E /I /H /Y /G - verify:
bin\node.exebin\node_repl.exemanifest.json
- relaunch ChatGPT.
In the successful repair on 26.825.6671.0, 4,679 files were copied. Immediately afterward:
ChatGPT.exe --type=rendererappeared;codex.exe ... app-serverappeared;- the desktop window opened and could be closed/reopened normally.
After a Microsoft Store auto-update to 26.831.1445.0, the startup failure returned, indicating the workaround is runtime/version-specific and must be repeated when the content-addressed runtime ID changes.
Why this appears to be a product bug rather than broken local EFS
The system drive is NTFS 3.1, and a local EFS encryption test succeeds:
cipher /e <temp>\efs-test\test.txt → [OK]
The failure is specifically associated with relocation/extraction of packaged Application Protected resources from the MSIX/WindowsApps location into the user-writable runtime cache.
Expected behavior
The desktop app should:
- reliably relocate/extract bundled Application Protected runtime resources into the user cache;
- use a Windows copy path that supports a decrypted destination (equivalent to
COPY_FILE_ALLOW_DECRYPTED_DESTINATION/xcopy /G) or use a safe buffered read/write fallback; - atomically finalize the content-addressed runtime;
- recover from an incomplete
.staging-*directory rather than creating a new failed staging directory on every launch; - surface the underlying relocation error instead of silently remaining headless.
Related public reports
- openai/codex #41540 — headless startup caused by Application Protected
node_repl.exerelocation failure (0x80071770) - openai/codex #41654 — repeated regressions across updates due to Application Protected runtime relocation failures
- openai/codex #40843 — MSIX bundled executable relocation fails with
ERROR_ENCRYPTION_FAILED - openai/codex #40791 — Windows startup blocker involving Application Protected
codex.exe
Additional note
No WindowsApps ownership/ACLs, package files, registry EFS settings, or system encryption settings were modified to achieve the workaround.
What is the expected behavior?
Bug report: ChatGPT/Codex Desktop repeatedly fails to start on Windows after auto-update due to cua_node runtime relocation
Summary
ChatGPT/Codex Desktop on Windows repeatedly starts headless after Microsoft Store auto-updates. The main ChatGPT.exe, crashpad, GPU and utility processes are created, but ChatGPT.exe --type=renderer and codex.exe ... app-server are missing, and no usable window appears.
The problem reproduced on:
OpenAI.Codex 26.825.6671.0- after auto-update, again on
OpenAI.Codex 26.831.1445.0
A normal reinstall/reset did not provide a durable fix.
Environment
- OS: Windows x64
- Distribution: Microsoft Store / MSIX
- Current package:
OpenAI.Codex 26.831.1445.0- package family:
OpenAI.Codex_2p2nqsd0c76g0
- App ID:
OpenAI.Codex_2p2nqsd0c76g0!App
- System drive:
- NTFS 3.1
- EFS test in the user's temp directory:
cipher /e <temp>\efs-test\test.txt- result:
[OK] - so ordinary NTFS/EFS functionality on the system drive is working.
Symptoms
On launch, Windows AppModel reports successful package activation and process creation.
Observed process state during failure:
- main
ChatGPT.exe: present - crashpad handlers: present
- GPU process: present
- network utility process: present
- storage utility process: present
ChatGPT.exe --type=renderer: missingcodex.exe ... app-server: missing- visible application window: missing / unusable
Disabling the updater did not resolve the issue.
Calling ShowWindow() on discovered Chromium windows also did not restore the UI while the renderer was absent.
Runtime staging failure
Under:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node
every failed launch created another directory of the form:
.staging-<runtime-id>-<random>
For the earlier affected build, multiple staging directories contained:
bin\node.exe: presentbin\node_repl.exe: missing
while the packaged source file existed under:
C:\Program Files\WindowsApps\OpenAI.Codex_<version>_x64__2p2nqsd0c76g0\app\resources\cua_node\bin\node_repl.exe
More than twenty failed staging directories accumulated across repeated launches.
Confirmed workaround
The reliable workaround was to:
- identify the runtime ID from the newest
.staging-<runtime-id>-*directory; - create the final content-addressed runtime directory:
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<runtime-id> - copy the complete official packaged
cua_noderuntime from WindowsApps into that directory with:
xcopy /E /I /H /Y /G - verify:
bin\node.exebin\node_repl.exemanifest.json
- relaunch ChatGPT.
In the successful repair on 26.825.6671.0, 4,679 files were copied. Immediately afterward:
ChatGPT.exe --type=rendererappeared;codex.exe ... app-serverappeared;- the desktop window opened and could be closed/reopened normally.
After a Microsoft Store auto-update to 26.831.1445.0, the startup failure returned, indicating the workaround is runtime/version-specific and must be repeated when the content-addressed runtime ID changes.
Why this appears to be a product bug rather than broken local EFS
The system drive is NTFS 3.1, and a local EFS encryption test succeeds:
cipher /e <temp>\efs-test\test.txt → [OK]
The failure is specifically associated with relocation/extraction of packaged Application Protected resources from the MSIX/WindowsApps location into the user-writable runtime cache.
Expected behavior
The desktop app should:
- reliably relocate/extract bundled Application Protected runtime resources into the user cache;
- use a Windows copy path that supports a decrypted destination (equivalent to
COPY_FILE_ALLOW_DECRYPTED_DESTINATION/xcopy /G) or use a safe buffered read/write fallback; - atomically finalize the content-addressed runtime;
- recover from an incomplete
.staging-*directory rather than creating a new failed staging directory on every launch; - surface the underlying relocation error instead of silently remaining headless.
Related public reports
- openai/codex #41540 — headless startup caused by Application Protected
node_repl.exerelocation failure (0x80071770) - openai/codex #41654 — repeated regressions across updates due to Application Protected runtime relocation failures
- openai/codex #40843 — MSIX bundled executable relocation fails with
ERROR_ENCRYPTION_FAILED - openai/codex #40791 — Windows startup blocker involving Application Protected
codex.exe
Additional note
No WindowsApps ownership/ACLs, package files, registry EFS settings, or system encryption settings were modified to achieve the workaround.
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start on Windows x64 with the MSIX package and reproduce the launch while inspecting %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node and its .staging-* directories. Compare the packaged resources, especially bin\node.exe, bin\node_repl.exe, and manifest.json, with the staged runtime and the reported relocation failure. Done means auto-updated installs complete staging, launch ChatGPT.exe --type=renderer and codex.exe ... app-server, and recover without repeated incomplete staging directories.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100