Skip to content

Windows Codex cannot start when WSL mode is enabled (terminalShell=wsl) #14461

Description

@askxue

What version of the Codex App are you using (From “About Codex” dialog)?

26.309.3504.0

What subscription do you have?

plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Codex fails to start when the following configuration exists in: C:\Users<user>.codex\codex-global-state.json

"runCodexInWindowsSubsystemForLinux": true,
"integratedTerminalShell": "wsl"

When these options are enabled, Codex desktop cannot start successfully.

The application crashes during initialization.

Image

Manually editing the configuration file resolves the issue.

File: C:\Users<user>.codex\codex-global-state.json

"runCodexInWindowsSubsystemForLinux": false,
"integratedTerminalShell": "powershell"

After this change, Codex starts normally.

What steps can reproduce the bug?

  1. Install Windows Codex
  2. Open Settings
  3. Change the Agent environment to WSL
  4. Change the Integrated terminal shell to WSL
  5. Restart

You can see the Codex crashed!

What is the expected behavior?

Works well with WSL on Windows

Additional information

Happy to help test fixes if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingterminalIssues related to the in-app terminalwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions