Skip to content

codex-5.1 or 5.1 max keep failing when using powershell #6998

@rockyicer

Description

@rockyicer

What version of Codex is running?

0.4.46

What subscription do you have?

gpt pro

Which model were you using?

codex-5.1 + 5.1 max

What platform is your computer?

window

What issue are you seeing?

I use the codex inside vscode. after I get some update to 5.1 from yestoday, i keep meet the fails to using the powershell in windows.

Image

also when I copy the text from the answer, the chinese letter will shows ????. -> the issue i met it before and it is been fix already long time, but with 5.1 or 5.1 max, it pop up again.

and the sad thing is : i WANT TO GO BACK TO codex-5 and I do not have that option...

What steps can reproduce the bug?

$ 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' -Command 'rg -n "SYST:CONF:EDEV" -S D:\Documents\measurements'

$ 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' -Command 'rg -n "SYST:CONF:EDEV" -S -g"*.m" D:\Documents'
Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='cp1252'>
OSError: [Errno 22] Invalid argument

$ 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' -Command 'Get-ChildItem -Path D:\Documents -Filter ExternalDevices.m -Recurse -ErrorAction SilentlyContinue'

Directory: D:\Documents\measurements+n5247b
Mode LastWriteTime Length Name


-a---- 9/22/2025 7:39 PM 5173 ExternalDevices.m

Directory: D:\Documents\measurements+n5247b
Mode LastWriteTime Length Name


-a---- 9/22/2025 7:39 PM 5173 ExternalDevices.m

What is the expected behavior?

gpt codex previous is quite smooth to do the job....

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingextensionIssues related to the VS Code extensionwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions