Codex Desktop on Windows 11: WSL Agent Environment has extreme per-turn latency, including trivial prompts
What version of the Codex App are you using (From “About Codex” dialog)?
26.602.71036 • Released 8 Jun 2026
What subscription do you have?
Plus
What platform is your computer?
W11 (fully updated) + WSL2 (Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64)
What issue are you seeing?
Summary
Codex Desktop on Windows 11 is responsive when not using WSL, and WSL itself is also responsive in normal use. However, when using WSL Agent Environment, Codex becomes extremely slow, including for trivial prompts such as OK.
This is not limited to initial WSL startup. The same issue occurs on the 2nd and later prompts in an already-open thread, where WSL cold start is no longer a credible explanation.
What I observe
- Windows 11 agent path: fast
- Normal WSL usage outside Codex: fast
- Codex Desktop with
WSL Agent Environment: extremely slow - Even trivial prompts like
OKcan take minutes - This happens repeatedly and is easy to reproduce
Why this seems like a Codex WSL integration bug
The delay does not appear to be caused by model reasoning or repository analysis:
- The prompt is trivial
- The same trivial prompt is fast outside WSL agent mode
- Normal WSL work on this machine does not show comparable latency
- The issue persists after the first prompt in the thread
This suggests a problem in the Codex Desktop <-> WSL integration path, such as:
- per-turn context hydration
- repeated state/history access under
.codex - locking/contention on Codex state
- Windows/WSL IPC stalls
- unnecessary repeated scanning or bookkeeping on each turn
Reproduction
- Open Codex Desktop on Windows 11
- Start a new thread with
WSL Agent Environment - Send a trivial prompt such as
OK - Observe very long latency
- Send another trivial prompt in the same thread
- Observe that latency remains very high
Expected behavior
- First prompt in a new WSL thread may have some startup cost, but should still be on the order of seconds, not minutes
- 2nd and later trivial prompts in the same WSL-backed thread should return quickly
Actual behavior
- New-thread trivial prompts can take minutes
- Repeated trivial prompts in the same thread can also take minutes
Comparison notes
- Same machine
- Same user
- Same kind of trivial prompt
- Fast in Windows agent mode
- Fast in ordinary WSL use outside Codex
- Slow only in Codex Desktop with
WSL Agent Environment
Related public reports
These may be related, though my issue is specifically about severe per-turn latency:
- #14468
- #13762
- #13549
- #13785
Environment
- OS: Windows 11
- Agent environment: WSL
- Codex Desktop app
- WSL itself performs normally outside Codex
What steps can reproduce the bug?
Reproduction
- Open Codex Desktop on Windows 11
- Start a new thread with
WSL Agent Environment - Send a trivial prompt such as
OK - Observe very long latency
- Send another trivial prompt in the same thread
- Observe that latency remains very high
What is the expected behavior?
Expected behavior
- First prompt in a new WSL thread may have some startup cost, but should still be on the order of seconds, not minutes
- 2nd and later trivial prompts in the same WSL-backed thread should return quickly
Additional information
Related public reports
These may be related, though my issue is specifically about severe per-turn latency:
- #14468
- #13762
- #13549
- #13785
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Confirming this exact class of issue: severe per-turn latency in a WSL-backed Codex environment, including simple requests.
Environment observed:
codex-cli 0.139.06.6.87.2-microsoft-standard-WSL2Symptoms:
This matches the per-turn latency shape described here very closely.
I can confirm this with Ubuntu 24.04, and the same applies after a fresh install with Ubuntu 26.04 (WSL). Reinstalling Codex completely, including the .codex folder, doesn't help either.
Cross-linking a related report I just filed: #28935.
Same structural class, but observed from the native Windows agent environment — I migrated off WSL specifically to escape this latency, and it persists. That issue isolates two concrete mechanisms:
[mcp_servers.node_repl]block into~/.codex/config.tomleven when the related features (browser_use/computer_use/plugins) are explicitly disabled.thread/start, blocking the composer before send — even for a plain chat that never touches those tools.Proposed fix there: lazy/async init so optional subsystems load on first actual use instead of taxing every new thread. The per-turn latency described in this issue and the pre-send "spinner" in #28935 look like the same eager-init / bridge cost surfacing in different places.
doesn't even work for me at all. it's impressive how shit apps can still be in the day of llms