From 53cadb4df6e078354663f435f5fff16bd6fb7aa3 Mon Sep 17 00:00:00 2001 From: Naoya Yasuda <43776161+yanskun@users.noreply.github.com> Date: Wed, 22 Oct 2025 11:10:30 +0900 Subject: [PATCH] docs: Add `--cask` option to brew command to suggest (#5432) ## What - Add the `--cask` flag to the Homebrew update command for Codex. ## Why - `brew upgrade codex` alone does not update the cask, so users were not getting the right upgrade instructions. ## How - Update `UpdateAction::BrewUpgrade` in `codex-rs/tui/src/updates.rs` to use `upgrade --cask codex`. ## Testing - [x] cargo test -p codex-tui Co-authored-by: Thibault Sottiaux --- codex-rs/tui/src/updates.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/tui/src/updates.rs b/codex-rs/tui/src/updates.rs index fe859e15..8b92af4f 100644 --- a/codex-rs/tui/src/updates.rs +++ b/codex-rs/tui/src/updates.rs @@ -175,7 +175,7 @@ impl UpdateAction { match self { UpdateAction::NpmGlobalLatest => ("npm", &["install", "-g", "@openai/codex@latest"]), UpdateAction::BunGlobalLatest => ("bun", &["install", "-g", "@openai/codex@latest"]), - UpdateAction::BrewUpgrade => ("brew", &["upgrade", "codex"]), + UpdateAction::BrewUpgrade => ("brew", &["upgrade", "--cask", "codex"]), } }