Codex CLI on Windows update fails

Hi guys,

I noticed recently the Codex cli on windows on start when there is an update now it has a menu of three items one of them is run the update.

Previously it was displaying a message with the exact command to run the update. Now that message is gone.

When you select the first item to run the update, the update fails because codex is running it from its own sandbox and hits the permission wall. While trying to update it displays the command to run.

Basically you need to close the terminal open a new session run that command to update…

Ideally I would love to have the exact command displayed above the list of three items so that I can copy it from there update codex and restart.

Thanks for the update. I use Codex on Windows as well, which makes us part of a fairly rare group.

I haven’t upgraded my version yet today, and since I use the VS Code extension, I’ll keep an eye out for any errors.

I also checked the Codex issues page, and some of the recently reported problems appear to be related to Windows updates, so I’ll be keeping those in mind as well.


Does this issue appear to be the same?

Well it might be both related to the Sandbox permissions I’m running it in auto-approve mode.

For me it was more the UI question as codex have removed the exact command to update replacing it by a list of items where the first one is supposed to replace the command and does not work out of the box…

Then yes we already had a discussion about sandbox permissions so I’m trying to figure that out. What I see often is that when codex spawns us up process that sub-process is mostly failing on the first run.

I updated VS Code, the Codex extension, and the Claude Code extension without any problems.

That said, I only update when I’m about to start a new session or chat, with nothing running in the background, so that may have helped avoid the issue.

@sergeliatko are you using it within WSL?

have you tried a quick: npm install -g @openai/codex?

They may be working on this and may have fixed it.

no, inside PHPStorm that runs in in poweshell

npm install -g @openai/codex

Yes, that’s the only way to make it work, the post was more about the logic: let’s hide the convenient command display behind “automated” option that does not work…

Ah ok. The automated system appears to work reliably inside Ubuntu WSL