Removes the outdated codex Homebrew formula (0.46.x) so the newly installed cask (0.47.x) becomes the active binary.
brew uninstall codex --formula
brew reinstall --cask codex
codex --version
10/18/2025
When both the formula and cask are installed, the formula's older binary
often takes precedence in $PATH, causing codex to say:
Update available! 0.46.0 → 0.47.0. Run brew upgrade codex ...
even though the cask at 0.47.0 is already installed.
brew uninstall codex --formula
brew reinstall --cask codex
codex --version
Expected output should now show 0.47.x instead of 0.46.x.