Updater reports success after install script fails with curl 403

Open 💬 3 comments Opened Apr 24, 2026 by guluarte

What version of the Codex App are you using (From “About Codex” dialog)?

codex-cli 0.122.0

What subscription do you have?

Not provided.

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What issue are you seeing?

Running the in-product Codex update flow can fail to download the install script with curl: (22) The requested URL returned error: 403, but Codex still prints a success message saying the update succeeded.

Press enter to continue

Updating Codex via `sh -c 'curl -fsSL https://chatgpt.com/codex/install.sh | sh'`...
curl: (22) The requested URL returned error: 403

Update ran successfully! Please restart Codex.

What steps can reproduce the bug?

  1. Trigger the Codex update flow.
  2. Continue so Codex runs:

sh -c 'curl -fsSL https://chatgpt.com/codex/install.sh | sh'

  1. Observe that curl returns HTTP 403.
  2. Observe that Codex still prints Update ran successfully! Please restart Codex.

What is the expected behavior?

If the install script download fails, the update should fail clearly and should not report success.

Additional information

This looks consistent with curl ... | sh only checking the shell process result. If curl fails before producing script output, sh can still exit successfully on empty input unless the caller explicitly checks the curl exit status or uses pipefail.

View original on GitHub ↗

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