Bug report: Codex VS Code extension stuck on loading, never shows login screen


:white_check_mark: 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)

:check_mark: Solution

Install the required runtime dependencies:

  • Microsoft Visual C++ Redistributable 2015–2022 (x64)

  • Microsoft Visual C++ Redistributable 2015–2022 (x86)

Then restart your PC.


:magnifying_glass_tilted_left: If It Still Doesn’t Work

  1. Open VS Code Output panel:

    View → Output (Ctrl + Shift + U)
    
    
  2. Select:

    Codex
    
    
  3. Check the first error message — that is the real root cause.


:light_bulb: 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


:brain: Tip

This issue is usually caused by missing system dependencies, not a bug in the extension UI.