You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex desktop's concurrent wsl.exe git probes crash WSL's Interop server, and every new WSL session hangs until the distro restarts #46703
With a project in WSL (Ubuntu, systemd enabled), Codex desktop eventually fails worktree creation with:
[info] Starting worktree creation
[stderr] Failed to resolve git-root-relative cwd: Git is unavailable
After that, no new WSL session can be opened from anywhere on the machine (Codex, wsl.exe, terminals) until wsl --terminate Ubuntu or a reboot. Sessions already open keep working.
Root cause
WSL's in-distro Interop server crashes if a client disconnects before it replies. That's a WSL bug, tracked at microsoft/WSL#41592:
WSL (2 - Interop) ERROR: SendMessage:182: Failed to write message LxMessageResultBool. Channel: InteropServer
terminating due to uncaught exception of type wil::ResultException: Broken pipe @...SocketChannel.h:183
kernel: init: Interop: potentially unexpected fatal signal 6.
Codex desktop is what creates that condition. Its Sentry breadcrumbs (%APPDATA%\Codex\web\Codex\sentry\scope_v3.json) show it starting about 20 wsl.exe processes within about 200 ms for git operations, and killing the ones that don't finish (exit code 4294967295). WSL handles session creation one at a time, so the burst queues up and Codex's timeouts fire. One kill during the handshake crashes interop. I've seen this twice in three days (2026-09-16 and 2026-09-18). The second time, a UI click in Codex came 6 s before the crash. After wsl --terminate Ubuntu, with Codex still open, it crashed again 6½ minutes later, 2 s after Codex opened a burst of sessions. So with Codex desktop open on a WSL project, restarting WSL only buys minutes.
After the crash, the "Git is unavailable" error is just Codex's own wsl.exe calls failing.
Suggested mitigations on the Codex side
Limit how many wsl.exe processes run at once for WSL projects, or reuse a single long-lived process for git calls. The WSL-side app-server is already running and could run them.
Don't kill wsl.exe on a short timeout, or at least not while the session is still being set up.
When wsl.exe probes hang or fail with "Catastrophic failure", show a specific message ("WSL interop is unresponsive; run wsl --terminate <distro>") instead of "Git is unavailable".
Environment: Codex desktop 26.915.4065.0 (Microsoft Store), Windows 11, WSL2 kernel 6.6.114.1, Ubuntu with systemd=true.
Follow-up with a stronger data point: a full Windows reboot is close to the worst case, not a recovery.
Codex desktop starts at login. On 2026-09-19 it began opening WSL sessions at 19:04:54, the same second the distro started and while systemd was still booting (WSL logged WaitForBootProcess: /sbin/init failed to start within 10000ms). The Interop server crashed at 19:08:06 — about 3 minutes after boot — and every new WSL session has hung since.
For comparison, the same crash took 2½ hours during ordinary use, and 6½ minutes after a wsl --terminate with Codex left open.
Two things make startup the riskiest window:
Codex probes immediately, while systemd is still coming up, so CreateLoginSession is at its slowest.
Codex's timeouts then fire during that wait, and the killed client is exactly the disconnect that crashes WSL's single-threaded Interop worker.
Concrete effect for users: with a WSL project open in Codex desktop, WSL interop cannot be kept working at all. Rebooting, terminating the distro, or quitting and reopening Codex all fail within minutes. The only workaround I've found is to stop using Codex desktop for WSL-hosted repos and use the Codex CLI inside WSL instead.
Suggestion, in addition to the ones above: don't probe git until the distro reports it has finished booting, and back off instead of killing in-flight wsl.exe processes.
Activity
meisenbraun commentedon Sep 20, 2026
Follow-up with a stronger data point: a full Windows reboot is close to the worst case, not a recovery.
Codex desktop starts at login. On 2026-09-19 it began opening WSL sessions at 19:04:54, the same second the distro started and while systemd was still booting (WSL logged
WaitForBootProcess: /sbin/init failed to start within 10000ms). The Interop server crashed at 19:08:06 — about 3 minutes after boot — and every new WSL session has hung since.For comparison, the same crash took 2½ hours during ordinary use, and 6½ minutes after a
wsl --terminatewith Codex left open.Two things make startup the riskiest window:
CreateLoginSessionis at its slowest.Concrete effect for users: with a WSL project open in Codex desktop, WSL interop cannot be kept working at all. Rebooting, terminating the distro, or quitting and reopening Codex all fail within minutes. The only workaround I've found is to stop using Codex desktop for WSL-hosted repos and use the Codex CLI inside WSL instead.
Suggestion, in addition to the ones above: don't probe git until the distro reports it has finished booting, and back off instead of killing in-flight
wsl.exeprocesses.