Bundled PowerShell 7.6.4 (.NET 10.0.10) crashes with CET fail-fast on Windows 11 21H2 (22000.1455)

Open 💬 4 comments Opened Aug 21, 2026 by liweijie123
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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.
---------------------------------------------------------------------------------------------------------------------

  1. Install Codex Desktop App.
  2. Run Codex on Windows 11 21H2 (OS build 22000.1455).
  3. Ask Codex to execute any shell command, for example:

git status

  1. Command execution fails with CET fatal error.

The issue can also be reproduced without Codex:

  1. Locate:

C:\Users\<user>\.cache\codex-runtimes\codex-primary-runtime\dependencies\native\powershell\pwsh.exe

  1. Run:

pwsh.exe -v

  1. The process immediately exits with:

Fatal error.
Your Windows doesn't fully support CET.
Please install all available Windows updates.

Exit code:
0x80131506

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 7 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #39711
  • #38878

Powered by Codex Action

liweijie123 · 7 days ago

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:

  • Related issues:
  • "Unknown Hard Error"
  • This issue:
  • .NET/CoreCLR CET initialization failure
  • Exit code: 0x80131506
  • "Your Windows doesn't fully support CET"

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:

  • Windows PowerShell 5.1
  • cmd.exe
  • global npm Codex CLI 0.130.0

Failing:

  • Codex Desktop bundled PowerShell 7.6.4.500

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.

danjiahao666 · 2 days ago

How to fix it?please help me.

danjiahao666 · 2 days ago

All I can do is roll back to the previous version and then stop updating.