Model assumes Windows PowerShell is running on WSL resulting in seeing an "empty directory"

Resolved 💬 4 comments Opened Apr 19, 2025 by PramaYudhistira Closed Aug 7, 2025

What version of Codex is running?

0.1.2504181820

Which model were you using?

04-mini

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

There isn't a deterministic way to reproduce this but occasionally, the model doesn't know it is running in a Windows PowerShell CLI and so it cannot detect anything in a non-empty working directory. i.e. it sometimes works and sometimes doesn't.

run codex on any non-empty directory, and sometimes the model cannot detect any files as it is running Linux commands on Windows PowerShell

What is the expected behavior?

For the model to detect files.

What do you see instead?

Model occasionally does not detect any files

!Image

But sometimes it does detect files

!Image

As mentioned above, model assumes that it is running on a Linux based environment even though its on Windows PowerShell

!Image

but occasionally detects that it is running on Windows PowerShell

!Image

Additional information

I currently have a solution in mind and I will be working on a possible fix for this either today or tomorrow.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗