The log file name should not use the colon character
Resolved 💬 2 comments Opened May 18, 2025 by doggy8088 Closed Aug 7, 2025
What version of Codex is running?
0.1.2505171619
Which model were you using?
o4-mini
What platform is your computer?
Microsoft Windows NT 10.0.19045.0 x64
What steps can reproduce the bug?
$env:DEBUG='true'
codex
What is the expected behavior?
The log file should be created successfully.
What do you see instead?
Error: ENOENT: no such file or directory, open 'C:\Users\user\AppData\Local\Temp\oai-codex\codex-cli-2025-05-18T11:08:47.log'
at Module.writeFileSync (node:fs:2426:20)
at hD (file:///C:/ProgramData/nvm/v22.14.0/node_modules/@openai/codex/dist/cli.js:163:3080)
at file:///C:/ProgramData/nvm/v22.14.0/node_modules/@openai/codex/dist/cli.js:1014:771 {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\Users\\user\\AppData\\Local\\Temp\\oai-codex\\codex-cli-2025-05-18T11:08:47.log'
}
Additional information
Don't use the colon character in the filename.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗