Skip to content

Bug: OpenCode throws error when attempting to update mise-managed installations #36572

Closed as not planned

Description

@shanebishop1

Description

OpenCode correctly detects that an update is available when installed through mise, but selecting Update now fails because mise is not recognized as an installation method.

The TUI shows a generic Update failed message, while the underlying upgrade request fails with Unknown installation method: unknown.

The running binary is installed at a path like:

~/.local/share/mise/installs/opencode/1.17.18/opencode

I would expect OpenCode to delegate the update to mise and update whichever mise config selected the running version.

Plugins

No response

OpenCode version

1.17.18

Steps to reproduce

  1. Install and pin an older OpenCode version with mise
  2. Set autoupdate to "notify"
  3. Open OpenCode and select Update now
  4. Observe that the update fails and the mise-managed version does not change

Screenshot and/or share link

No response

Operating System

macOS

Terminal

cmux

Activity

  1. github-actions commented on Jul 12, 2026

    @github-actions
    Contributor

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

  2. namelocdivad-sudo commented on Aug 26, 2026

    @namelocdivad-sudo

    Is this a related issue? I'm using the OpenCode app in HomeAssistant, which fails when attempting to update itself. Big Pickle found this:
    a bug in OpenCode's web UI updater. It couldn't detect that OpenCode was installed via npm to /usr/local (a non-standard prefix). The updater likely only checks the default npm prefix (/data/.npm-global) and doesn't account for custom global prefixes.

  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions