Skip to content

brew upgrade not working #4448

Closed
Closed

Description

@sharma-shanu

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 18, 2025
  2. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 18, 2025
  3. self-assigned this
    on Nov 18, 2025
  4. changed the title [-]Upgrade not working[/-] [+]brew upgrade not working[/+] on Nov 18, 2025
  5. CodingInCarhartts commented on Nov 19, 2025

    @CodingInCarhartts

    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

  6. vanyauhalin commented on Nov 22, 2025

    @vanyauhalin
  7. BAVhel commented on Nov 25, 2025

    @BAVhel

    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
    
  8. ajjaic commented on Nov 27, 2025

    @ajjaic

    Same here.

    With opencode upgrade:

    Image

    And then opencode --version gives me 1.0.107

  9. BAVhel commented on Nov 27, 2025

    @BAVhel
    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)
    
  10. BAVhel commented on Nov 27, 2025

    @BAVhel

    workaround #4777 (comment)

  11. rekram1-node commented on Dec 3, 2025

    @rekram1-node
    Collaborator

    fixed the version checking:
    e2e2b79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions