Bundled PowerShell 7.6.4 (.NET 10.0.10) crashes with CET fail-fast on Windows 11 21H2 (22000.1455)
What version of the Codex App are you using (From “About Codex” dialog)?
OpenAI.Codex_26.818.3698.0_x64
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Windows 11 x64 Version: Windows 11 21H2 OS Build: 22000.1455 [Microsoft Windows NT 10.0.22000.0 True]
What issue are you seeing?
Codex App command execution fails because the bundled PowerShell runtime crashes during startup.
The failure happens before the user command is executed. For example, running git commands from Codex results in:
Fatal error.
Your Windows doesn't fully support CET.
Please install all available Windows updates.
Exit code:
-2146233082 (0x80131506)
The failing executable is the PowerShell runtime bundled by Codex:
C:\Users\<user>\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe
Directly launching this executable outside Codex reproduces the same crash:
pwsh.exe -v
The bundled runtime version is:
PowerShell: 7.6.4.500
.NET runtime: 10.0.10
System Windows PowerShell 5.1 works normally.
What steps can reproduce the bug?
Feedback ID: no-active-thread-01a0224a-db40-7d53-8343-dbd61c847315
What is the expected behavior?
Codex should execute shell commands normally.
If the bundled PowerShell runtime is incompatible with the current Windows version, Codex should either:
- detect the unsupported environment before execution;
- fall back to another supported shell (for example cmd.exe or Windows PowerShell 5.1);
- or provide a clear compatibility message instead of repeatedly retrying failed commands.
Additional information
Additional investigation:
The issue appears to be related to the bundled PowerShell/.NET runtime shipped with Codex, not the user's project commands.
Confirmed working:
- Windows PowerShell 5.1
- cmd.exe
- global npm Codex CLI 0.130.0
Confirmed failing:
- Codex bundled PowerShell 7.6.4.500
Runtime details:
Codex Desktop:
OpenAI.Codex_26.818.3698.0_x64
Bundled runtime:
codex-primary-runtime
PowerShell:
7.6.4.500
.NET:
10.0.10
Windows:
Windows 11 21H2 build 22000.1455
The issue started after a Codex update around 2026-08-14~2026-08-17. I do not have the previous runtime bundle available for comparison, so I cannot confirm the exact first bad runtime version.
---------------------------------------------------------------------------------------------------------------------
- Install Codex Desktop App.
- Run Codex on Windows 11 21H2 (OS build 22000.1455).
- Ask Codex to execute any shell command, for example:
git status
- Command execution fails with CET fatal error.
The issue can also be reproduced without Codex:
- Locate:
C:\Users\<user>\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe
- Run:
pwsh.exe -v
- The process immediately exits with:
Fatal error.
Your Windows doesn't fully support CET.
Please install all available Windows updates.
Exit code:
0x80131506
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Thanks for the duplicate detection.
I checked the related issues. They appear related because they also involve Codex Desktop bundled PowerShell failing on Windows.
However, this issue has a different failure mode:
The failing bundled runtime is:
PowerShell 7.6.4.500
.NET 10.0.10
The crash is reproducible by directly launching the bundled pwsh.exe outside Codex, before executing any tool command.
I will keep this issue open because the underlying runtime/CET compatibility failure may require a different fix.
---------------------
Additional findings:
I was able to reproduce the issue without running any Codex command.
The failure is caused by the bundled PowerShell runtime shipped with Codex Desktop.
Failing executable:
C:\Users\lwj\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe
Running:
pwsh.exe -v
directly from cmd.exe produces:
Fatal error.
Your Windows doesn't fully support CET.
Please install all available Windows updates.
Exit code:
0x80131506
Runtime information:
PowerShell: 7.6.4.500
.NET runtime: 10.0.10
Windows: Windows 11 21H2 (OS build 22000.1455)
Control tests:
Working:
Failing:
This indicates the failure happens during .NET/CoreCLR initialization before any user shell command (for example git) is executed.
The issue started after a Codex runtime update around 2026-08-14~2026-08-17. I do not have the previous runtime bundle available, so I cannot confirm the exact first bad version.
How to fix it?please help me.
All I can do is roll back to the previous version and then stop updating.