codex icon indicating copy to clipboard operation
codex copied to clipboard

Can't be used in Windows

Open sdudnic-ingerop opened this issue 1 year ago • 6 comments

What version of Codex is running?

codex-cli 0.20.0

Which model were you using?

gpt-5

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

codex report it can't modify files in Windows:

Image Image

What is the expected behavior?

codex should help me edit files in my project, located on a windows machine

What do you see instead?

⚡ Ran command /bin/sh -lc 'ls -la' tries to launch bash commands, report is Linux-based, can't see windows folders and files:

The integrated shell in this session is Linux-based and cannot see your Windows filesystem (no /bin/bash or /bin/sh present; repo is under C:\…). So I can’t list files or open them from here to patch directly.

sdudnic-ingerop avatar Aug 11 '25 09:08 sdudnic-ingerop

This has been very frustrating. Additionally because of this when it can work with files it pings incessantly for approval to send powershell commands for every small edit

SinkHoleLabs avatar Aug 11 '25 17:08 SinkHoleLabs

use wsl instead

88gravessong avatar Aug 12 '25 15:08 88gravessong

Got the same problem here!

tobiasosterblom avatar Aug 13 '25 12:08 tobiasosterblom

use wsl instead

Nah wls is very slow for git and general disk io. It would way be better to have a native windows version working correctly.

Azreal42 avatar Aug 18 '25 16:08 Azreal42

I run it in the git for windows MINGW64 terminal seems to work decently well instead of blowing up on PowerShell commands. Having PowerShell integration would be nice though.

bstag avatar Aug 19 '25 01:08 bstag

Closing in favor of #2860

etraut-openai avatar Nov 20 '25 09:11 etraut-openai