[BUG] opencode upgrade not working via brew

Resolved 💬 1 comment Opened Jan 14, 2026 by MaxVanDijck Closed Jan 14, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When i try to upgrade opencode via opencode upgrade it does not actually upgrade correctly eg.

 maxvandijck@Maxs-MacBook-Air ~/..../terraform  main  opencode upgrade

                                   ▄
  █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
  █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
  ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀  ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀

┌  Upgrade
│
●  Using method: brew
│
●  From 1.1.10 → 1.1.20
│
◇  Upgrade complete
│
└  Done

 maxvandijck@Maxs-MacBook-Air ~/..../terraform  main  opencode --version
1.1.10
 maxvandijck@Maxs-MacBook-Air ~/..../terraform  main  which opencode
/opt/homebrew/bin/opencode

whereas after running brew upgrade opencode it actually upgrades correctly

✔︎ Bottle icu4c@78 (78.2)                                           Downloaded   32.0MB/ 32.0MB
✔︎ Bottle opencode (1.1.20)                                         Downloaded   33.0MB/ 33.0MB
==> Upgrading opencode
  1.1.10 -> 1.1.20
==> Installing dependencies for opencode: icu4c@78 and sqlite
==> Installing opencode dependency: icu4c@78
==> Pouring icu4c@78--78.2.arm64_sequoia.bottle.tar.gz
🍺  /opt/homebrew/Cellar/icu4c@78/78.2: 279 files, 87.9MB
==> Installing opencode dependency: sqlite
==> Pouring sqlite--3.51.2.arm64_sequoia.bottle.tar.gz
🍺  /opt/homebrew/Cellar/sqlite/3.51.2: 13 files, 5.3MB
==> Installing opencode
==> Pouring opencode--1.1.20.arm64_sequoia.bottle.tar.gz
🍺  /opt/homebrew/Cellar/opencode/1.1.20: 10 files, 97.6MB
==> Running `brew cleanup opencode`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
Removing: /opt/homebrew/Cellar/opencode/1.1.10... (10 files, 96.8MB)
Removing: /Users/maxvandijck/Library/Caches/Homebrew/opencode_bottle_manifest--1.1.10... (27KB)
Removing: /Users/maxvandijck/Library/Caches/Homebrew/opencode--1.1.10... (32.8MB)
 maxvandijck@Maxs-MacBook-Air ~/..../terraform  main  opencode --version
1.1.20
 maxvandijck@Maxs-MacBook-Air ~/..../terraform  main 

brew version:

 maxvandijck@Maxs-MacBook-Air ~/..../terraform  main  brew --version
Homebrew 5.0.10

What Should Happen?

Opencode should upgrade itself correctly

Error Messages/Logs

Steps to Reproduce

see issue

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

n/a

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗