Skip to content

Windows App WSL: Opening Codex causes ubuntu to not be able to execute .exe files #15495

Closed as duplicate

Description

@LiquidGunay

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

26.313.41514

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64 and Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What issue are you seeing?

When I open WSL through the terminal I can execute cmd/powershell commands, but once I open Codex App, I cannot execute these through the codex shell or through an external ubuntu shell. I get this error

-bash: /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe: cannot execute binary file: Exec format error

This gets resolved if I restart the PC, but same issue occurs if I start Codex App.

What steps can reproduce the bug?

Try to use powershell.exe in the codex terminal in the WSL app.

What is the expected behavior?

This was not happening in previous versions. I am using this for android testing using adb, but my agents are not able to execute windows powershell commands anymore.

Additional information

No response

Activity

  1. added
    app
    on Mar 23, 2026
  2. added
    bug
    windows-os
    on Mar 23, 2026
  3. added
    terminal
    on Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugterminalwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions