Homebrew: fix codex stuck on old version (formula overrides cask)

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
Categories
Operating Systems
macos
Prerequisites
Homebrew installed
Last Tested

10/18/2025

Tags
brewcodexmacospackage-manager
Details

What this solves

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.

Fix steps

  1. Remove the outdated formula:
    brew uninstall codex --formula
    
  2. Reinstall (or relink) the cask cleanly:
    brew reinstall --cask codex
    
  3. Confirm you're now on the latest:
    codex --version
    

Expected output should now show 0.47.x instead of 0.46.x.

Safety Notes
  • Non-destructive: removes only the formula, not your code or config.
  • You keep the latest cask install and don’t lose any data.