[Q]Does Codex startup time depend on WSL 2 status?

Resolved 💬 2 comments Opened Sep 18, 2025 by tzengshinfu Closed Nov 11, 2025

Windows 11 24H2
Codex v0.38.0
Node.js v22.19.0
WSL 2.6.1.0
Only using Codex in Command Prompt
Default directory: %USERPROFILE%
.wslconfig

[wsl2]
networkingMode=Mirrored
[experimental]
hostAddressLoopback=true
sparseVhd=true
autoMemoryReclaim=Gradual

After freshly installing Codex, I encountered a startup delay issue.
It freezes on this screen for about 20 seconds before I can enter any commands or prompts.
<img width="485" height="139" alt="Image" src="https://github.com/user-attachments/assets/112f33be-b8b1-4cd3-9c5a-55109af55b3c" />

When I later installed Codex on another Windows 10 machine, there was no delay at all.
That’s when I realized Codex should normally start up very quickly.
The only difference was that WSL 2 had been removed from that machine.

Since I haven’t used WSL 2 for a long time after switching tech stacks, I tried running wsl --shutdown.
(PS: At that time, if I run Codex simultaneously, it also becomes unresponsive.
Running WSL afterward shows the error Wsl/Service/E_UNEXPECTED.
I have to run wsl --shutdown again before WSL 2 works normally.)

With Codex, the first launch is delayed,
but the second and subsequent launches are normal—
until the delay eventually returns.

I then tried keeping a separate terminal window open with WSL 2 logged in.
(Not sure if this is related to the WSL 2 settings, so I included them above.)
So far, Codex startup has been very fast again.

If the problem persists, I may have to uninstall WSL 2 altogether.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗