brew upgrade not working #2936

Closed
opened 2026-02-16 17:37:53 -05:00 by yindo · 7 comments
Owner

Originally created by @sharma-shanu on GitHub (Nov 18, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Hi,

I tried upgrading my opencode from version from 1.0.49 to latest using opencode upgrade commad, it proceeds and completes the upgrade with a success message but fails to actually upgrade the version (opencode -v).

However upgrading using brew upgrade opencode works and updates the version successfully.

OpenCode version

1.0.49

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @sharma-shanu on GitHub (Nov 18, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Hi, I tried upgrading my opencode from version from 1.0.49 to latest using `opencode upgrade` commad, it proceeds and completes the upgrade with a success message but fails to actually upgrade the version (`opencode -v`). However upgrading using `brew upgrade opencode` works and updates the version successfully. ### OpenCode version 1.0.49 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:37:53 -05:00
yindo closed this issue 2026-02-16 17:37:53 -05:00
Author
Owner

@CodingInCarhartts commented on GitHub (Nov 19, 2025):

This behavior also happens to me.
Has always been an issue for me (was happening even in v0.15.31). So much so that I created an updater myself for the issue.

OpenCode version
1.0.49

Steps to reproduce
No response

Screenshot and/or share link
No response

Operating System
Omarchy Distro
Arch Linux
Build: rolling

Terminal
Kitty

opencode-updater master ❯ opencode upgrade 1.0.72

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

┌ Upgrade

■ opencode is installed to /usr/bin/opencode and may be managed by a package manager

◇ Install anyways?
│ Yes

● Using method: unknown

● From 1.0.78 → 1.0.72

■ Upgrade failed

■ Unknown method: unknown

└ Done

opencode-updater master ❯ opencode upgrade

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

┌ Upgrade

■ opencode is installed to /usr/bin/opencode and may be managed by a package manager

◇ Install anyways?
│ Yes

● Using method: unknown

● From 1.0.93 → 1.0.104

■ Upgrade failed

■ Unknown method: unknown

└ Done

@CodingInCarhartts commented on GitHub (Nov 19, 2025): This behavior also happens to me. Has always been an issue for me (was happening even in v0.15.31). So much so that I created an updater myself for the issue. OpenCode version 1.0.49 Steps to reproduce No response Screenshot and/or share link No response Operating System Omarchy Distro Arch Linux Build: rolling Terminal Kitty opencode-updater master ❯ opencode upgrade 1.0.72   ▄ █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ┌ Upgrade │ ■ opencode is installed to /usr/bin/opencode and may be managed by a package manager │ ◇ Install anyways? │ Yes │ ● Using method: unknown │ ● From 1.0.78 → 1.0.72 │ ■ Upgrade failed │ ■ Unknown method: unknown │ └ Done opencode-updater master ❯ opencode upgrade   ▄ █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ┌ Upgrade │ ■ opencode is installed to /usr/bin/opencode and may be managed by a package manager │ ◇ Install anyways? │ Yes │ ● Using method: unknown │ ● From 1.0.93 → 1.0.104 │ ■ Upgrade failed │ ■ Unknown method: unknown │ └ Done
Author
Owner

@vanyauhalin commented on GitHub (Nov 22, 2025):

$ brew info opencode
==> opencode: stable 0.15.23 (bottled)
AI coding agent, built for the terminal
https://opencode.ai
Installed
/opt/homebrew/Cellar/opencode/0.15.23 (12 files, 88.8MB) *
  Poured from bottle using the formulae.brew.sh API on 2025-10-29 at 11:11:09
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/opencode.rb
License: MIT
==> Dependencies
Required: node ✔

$ brew upgrade opencode
Warning: opencode 0.15.23 already installed

I am still living on the 0.15.23 because this is what brew tells me. Did not even known opencode had newer versions.

Edit: After brew update I see newer version (1.0.98).

@vanyauhalin commented on GitHub (Nov 22, 2025): ```sh $ brew info opencode ==> opencode: stable 0.15.23 (bottled) AI coding agent, built for the terminal https://opencode.ai Installed /opt/homebrew/Cellar/opencode/0.15.23 (12 files, 88.8MB) * Poured from bottle using the formulae.brew.sh API on 2025-10-29 at 11:11:09 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/opencode.rb License: MIT ==> Dependencies Required: node ✔ $ brew upgrade opencode Warning: opencode 0.15.23 already installed ``` I am still living on the 0.15.23 because this is what brew tells me. Did not even known opencode had newer versions. Edit: After `brew update` I see newer version (1.0.98).
Author
Owner

@BAVhel commented on GitHub (Nov 25, 2025):

mac, installed over brew

~ % opencode upgrade

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

┌  Upgrade
│
●  Using method: brew
│
●  From 1.0.107 → 1.0.110
│
◇  Upgrade complete
│
└  Done

and after that one more time:

~ % opencode upgrade

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

┌  Upgrade
│
●  Using method: brew
│
●  From 1.0.107 → 1.0.110
│
◇  Upgrade complete
│
└  Done
@BAVhel commented on GitHub (Nov 25, 2025): mac, installed over brew ``` ~ % opencode upgrade   ▄ █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ┌ Upgrade │ ● Using method: brew │ ● From 1.0.107 → 1.0.110 │ ◇ Upgrade complete │ └ Done ``` and after that one more time: ``` ~ % opencode upgrade   ▄ █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ┌ Upgrade │ ● Using method: brew │ ● From 1.0.107 → 1.0.110 │ ◇ Upgrade complete │ └ Done ```
Author
Owner

@ajjaic commented on GitHub (Nov 27, 2025):

Same here.

With opencode upgrade:

Image

And then opencode --version gives me 1.0.107

@ajjaic commented on GitHub (Nov 27, 2025): Same here. With `opencode upgrade`: <img width="411" height="267" alt="Image" src="https://github.com/user-attachments/assets/6a6da477-350c-4d3c-8122-3a98a63f3e85" /> And then `opencode --version` gives me `1.0.107`
Author
Owner

@BAVhel commented on GitHub (Nov 27, 2025):

brew info opencode
==> opencode: stable 1.0.107 (bottled)
AI coding agent, built for the terminal
https://opencode.ai
Installed
/opt/homebrew/Cellar/opencode/1.0.107 (10 files, 85.6MB) *
  Poured from bottle using the formulae.brew.sh API on 2025-11-24 at 10:29:28
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/opencode.rb
License: MIT
==> Dependencies
Required: node ✔
==> Analytics
install: 23,025 (30 days), 30,571 (90 days), 30,570 (365 days)
install-on-request: 23,028 (30 days), 30,570 (90 days), 30,571 (365 days)
build-error: 33 (30 days)
@BAVhel commented on GitHub (Nov 27, 2025): ``` brew info opencode ==> opencode: stable 1.0.107 (bottled) AI coding agent, built for the terminal https://opencode.ai Installed /opt/homebrew/Cellar/opencode/1.0.107 (10 files, 85.6MB) * Poured from bottle using the formulae.brew.sh API on 2025-11-24 at 10:29:28 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/opencode.rb License: MIT ==> Dependencies Required: node ✔ ==> Analytics install: 23,025 (30 days), 30,571 (90 days), 30,570 (365 days) install-on-request: 23,028 (30 days), 30,570 (90 days), 30,571 (365 days) build-error: 33 (30 days) ```
Author
Owner

@BAVhel commented on GitHub (Nov 27, 2025):

workaround https://github.com/sst/opencode/issues/4777#issuecomment-3584430725

@BAVhel commented on GitHub (Nov 27, 2025): workaround https://github.com/sst/opencode/issues/4777#issuecomment-3584430725
Author
Owner

@rekram1-node commented on GitHub (Dec 2, 2025):

fixed the version checking:
https://github.com/sst/opencode/commit/e2e2b7934e94606b376bee1c42911ace394535b6

@rekram1-node commented on GitHub (Dec 2, 2025): fixed the version checking: https://github.com/sst/opencode/commit/e2e2b7934e94606b376bee1c42911ace394535b6
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2936