Codex Desktop (Microsoft Store) cannot complete Primary Runtime installation on Windows 10

Open 💬 1 comment Opened Jun 30, 2026 by QFeng333

What version of the Codex App are you using (From “About Codex” dialog)?

Codex version: 26.623.9142.0

What subscription do you have?

plus

What platform is your computer?

Windows 10 22H2 (x64)

What issue are you seeing?

On first launch, Codex always shows "Unable to install dependencies".

The application never completes the Primary Runtime onboarding.

What steps can reproduce the bug?

What I observed

The file:

C:\Users\Admin\.codex\.codex-global-state.json

is rewritten on every launch.

These values always become:

"electron:onboarding-primary-runtime-install-ready": false,
"electron:onboarding-primary-runtime-install-requested": true

Even if I manually change them to:

ready = true
requested = false

Codex resets them back on the next startup.

What I have already checked
System Node.js is installed and works correctly.
npm works correctly.
PATH is correct.
The bundled cua_node runtime exists and its manifest is intact.
No missing Visual C++ runtime.
No obvious runtime installation logs were generated.
The MSIX package is installed successfully.
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalState is created but remains empty.

What is the expected behavior?

Codex should install or initialize the Primary Runtime successfully and continue to the application.

Additional information

Actual behavior

The Primary Runtime never becomes ready and Codex always returns to the dependency installation error screen.

Additional information

This appears to be related to the Primary Runtime initialization process rather than the system Node.js installation, because the onboarding state is reset on every startup.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗