Update prompt fails because it does not include `sudo`.

Open 💬 2 comments Opened Mar 2, 2026 by JaredTweed

What version of Codex CLI is running?

codex-cli 0.104.0

What subscription do you have?

Plus

Which model were you using?

N/A

What platform is your computer?

Linux 6.18.13-100.fc42.x86_64 x86_64 unknown (Fedora 42 Workstation)

What terminal emulator and version are you using (if applicable)?

_No response_

What issue are you seeing?

When codex prompts for an update, it doesn't have sudo in the prompted update. Thus causing it to fail and for me to type sudo npm install -g @openai/codex.

<img width="579" height="203" alt="Image" src="https://github.com/user-attachments/assets/5f65cce9-edfa-4717-a6f8-a99c9b7966a8" />

<img width="1364" height="637" alt="Image" src="https://github.com/user-attachments/assets/5a6d2c68-42be-4f1b-b332-3b1b81582e55" />

What steps can reproduce the bug?

Use Linux, have codex-cli prompt for an update, and select "Update now".

What is the expected behavior?

The expected behavior is for it to update correctly (using sudo) when selecting "Update now" when prompted.

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗