Model assumes Windows PowerShell is running on WSL resulting in seeing an "empty directory"
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
But sometimes it does detect files
As mentioned above, model assumes that it is running on a Linux based environment even though its on Windows PowerShell
but occasionally detects that it is running on Windows PowerShell
Additional information
I currently have a solution in mind and I will be working on a possible fix for this either today or tomorrow.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗