Fix: Codex Stuck on Loading Screen (VS Code)
If Codex is stuck on the loading screen and logs show:
Codex process exited unexpectedly (code=3221225781 / 0xc0000135)
Solution
Install the required runtime dependencies:
-
Microsoft Visual C++ Redistributable 2015–2022 (x64)
-
Microsoft Visual C++ Redistributable 2015–2022 (x86)
Then restart your PC.
If It Still Doesn’t Work
-
Open VS Code Output panel:
View → Output (Ctrl + Shift + U) -
Select:
Codex -
Check the first error message — that is the real root cause.
Common Issues
-
0xc0000135→ Missing DLL → Install VC++ Redistributables -
Codex process is not available→ Restart VS Code / reinstall extension -
stdin destroyed→ Backend crash → check earlier logs
Tip
This issue is usually caused by missing system dependencies, not a bug in the extension UI.