Codex updater reports success even when curl fails to download the install script
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.5k
- PR merge metrics
- PR metrics pending
Description
What version of Codex CLI is running?
codex-cli 0.152.0
What subscription do you have?
plus
Which model were you using?
No response
What platform is your computer?
x86
What terminal emulator and version are you using (if applicable)?
No response
Codex doctor report
What issue are you seeing?
Description
When updating Codex, the updater reports that the update completed successfully even though curl failed to connect to chatgpt.com and the installation script was never downloaded.
The output looks like this:
Updating Codex via `sh -c 'curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_NON_INTERACTIVE=1 sh'` ...
curl: (7) Failed to connect to chatgpt.com port 443 after 21047 ms: Could not connect to server
🎉 Update ran successfully! Please restart Codex.
The final success message is misleading because the preceding command clearly failed.
What steps can reproduce the bug?
-
Run the Codex update flow.
-
Make https://chatgpt.com/codex/install.sh unreachable, for example due to a network issue or blocked connection.
-
curl exits with an error.
-
Codex still prints:
🎉 Update ran successfully! Please restart Codex.
What is the expected behavior?
If downloading or executing the update script fails, Codex should:
- report that the update failed;
- return or propagate a non-zero exit status;
- avoid displaying the success message;
- optionally show the underlying error and suggest retrying.
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the Codex update flow that runs sh -c 'curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_NON_INTERACTIVE=1 sh', then reproduce the failure with the install URL unreachable. The fix is done when download or script execution failures produce a non-zero status and no success message, while the underlying error remains visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100