-
Notifications
You must be signed in to change notification settings - Fork 12.1k
[Windows/WSL] Reconnecting loop: timeout waiting for child process to exit #21914
Copy link
Copy link
Open
Labels
appIssues related to the Codex desktop appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesIssues involving app server protocol or interfacesbugSomething isn't workingSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)Issues involving networking or endpoint connectivity problems (disconnections)windows-osIssues related to Codex on Windows systemsIssues related to Codex on Windows systems
Metadata
Metadata
Assignees
Labels
appIssues related to the Codex desktop appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesIssues involving app server protocol or interfacesbugSomething isn't workingSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)Issues involving networking or endpoint connectivity problems (disconnections)windows-osIssues related to Codex on Windows systemsIssues related to Codex on Windows systems
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug report: Codex Windows WSL environment gets stuck in infinite reconnect loop
Environment
localhost proxy configwarning appears inside WSL, but commands still execute correctlyWhat I changed
wsl --set-default Ubuntu-24.04which bashrg --versiongit --versionC:\Windows\System32\wsl.exe -d Ubuntu-24.04 -- bash -lc "which bash && rg --version && git --version"Exact verification output
/usr/bin/bashripgrep 14.1.0git version 2.43.0Reproduction steps
Actual behavior
On each first user message / conversation attempt, Codex keeps entering reconnection retries:
Reconnecting... 2/5timeout waiting for child process to exitReconnecting... 3/5Reconnecting... 4/5Reconnecting... 5/5Reconnecting... 1/5Reconnecting... 2/5and loops indefinitely until user stops interaction.
No normal model response is returned.
Expected behavior
Codex should start a child shell/process once and run commands normally in the configured WSL environment, then proceed with normal chat interaction.
Notes
/usr/bin/bash.Impact
Codex is unusable for the first conversation after startup when WSL mode is used.