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.
4 Comments
Update: I have finals so regarding the additional information I will be working on this some time in the next week
But this is another example of it not working on powershell due to thinking its on a Linux system
!Image
I have the same issue:
Environment
I added a potential fix in https://github.com/openai/codex/pull/688
Thank you for the feedback! Please try again on the latest version of Codex CLI. If the issue persists, we'd appreciate a contribution to the
codex-rs/implementation. You can find more details on our project update here.