Skip to content

opencode upgrade reports success every time #8422

Closed

Description

@asaf-genie

Description

➜  mydir git:(some-branch) opencode upgrade 1.1.1534543

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

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

➜  mydir git:(some-branch) opencode --version
1.1.10
➜  mydir git:(some-branch) opencode upgrade 2.33243.254353

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

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

➜  mydir git:(some-branch) opencode upgrade 0.0.0

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

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

➜  mydir git:(some-branch) opencode --version
1.1.10

Plugins

No response

OpenCode version

1.1.10

Steps to reproduce

  1. opencode ugrade with any version number
  2. opencode --version to confirm it failed

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jan 14, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. added a commit that references this issue on Jan 14, 2026
    ec3f928
  3. MaxVanDijck commented on Jan 14, 2026

    @MaxVanDijck

    Had the same issue here:

    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
  4. lnoir commented on Jan 18, 2026

    @lnoir

    Just thought I'd add that I encountered this issue today. I'd installed OpenCode via Homebrew some time ago. Tried to upgrade via the opencode upgrade command and saw:

    ╰─❯ opencode upgrade
    
                                       ▄     
      █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
      █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
      ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀  ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀
    
    ┌  Upgrade
    │
    ●  Using method: brew
    │
    ●  From 1.0.164 → 1.1.25
    │
    ◇  Upgrade complete
    │
    └  Done

    But a version check showed:

    ╰─❯ opencode --version
    1.0.164

    Had to upgrade via brew upgrade opencode for the upgrade to actually take effect.

  5. Darren-cy commented on Jan 20, 2026

    @Darren-cy

    Same issue, brew upgrade opencode solves the issue, but it's a "false success" message by opencode upgrade

  6. trollkotze commented on Jan 24, 2026

    @trollkotze

    This is not the only false success message in opencode. I wonder if failure messages actually exist yet and success is just reported for just about everything.

    Other examples:

    1. export session: Type in a path for saving the session markdown file. If that path goes somewhere outside the current directory, nothing is saved, but success is shown.
    2. connect provider: a dialog opens showing a link to click for oauth with the provider (like openai), and it says "c to copy". I press "c" and it says "copied successfully" but nothing has been copied to the clipboard. (Selecting the text to copy over normal key combos does not work either here, annoyingly).

    Sorry for off-topic. Just thought to mention, maybe it's a good idea to open a general "false success messages" issue for that category of error, because I assume there will be more of the same.

  7. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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