Skip to content

"Restart to update" always pops up, even after restarting #1233

Closed as not planned

Description

@tylerlaprade
Image

I'm using Ghostty on MacOS. I tried /exit and then reopening multiple times, and even killed my terminal and opened a new one. This still pops up every time. opencode -v gives me 0.1.140, so maybe I'm just on such an old version that I can't auto-update? If so, the popup should tell me to reinstall instead.

Activity

  1. ChaseRensberger commented on Jul 23, 2025

    @ChaseRensberger

    I would assume the update is failing. Based on this code it in theory shouldn't show the banner on a failure:

              await Installation.upgrade(method, latest)
                .then(() => {
                  Bus.publish(Installation.Event.Updated, { version: latest })
                })
                .catch(() => {})

    which makes me think the issue is with the upgrade method:

      export async function upgrade(method: Method, target: string) {
        const cmd = (() => {
          switch (method) {
            case "curl":
              return $`curl -fsSL https://opencode.ai/install | bash`.env({
                ...process.env,
                VERSION: target,
              })
            case "npm":
              return $`npm install -g opencode-ai@${target}`
            case "pnpm":
              return $`pnpm install -g opencode-ai@${target}`
            case "bun":
              return $`bun install -g opencode-ai@${target}`
            case "brew":
              return $`brew install sst/tap/opencode`.env({
                HOMEBREW_NO_AUTO_UPDATE: "1",
              })
            default:
              throw new Error(`Unknown method: ${method}`)
          }
        })()

    How have you installed opencode? Have you tried a clean reinstall?

  2. tylerlaprade commented on Jul 23, 2025

    @tylerlaprade
    Author

    I manually updated with brew, but of course now there's no newer version available to trigger the banner. We'll see what happens with the banner once a new version is released.

  3. self-assigned this
    on Jul 23, 2025
  4. thdxr commented on Jul 23, 2025

    @thdxr
    Member

    seems like brew is failing silently

  5. tylerlaprade commented on Jul 24, 2025

    @tylerlaprade
    Author

    Confirmed it's still happening with the newer version

    Image Image
  6. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  7. tylerlaprade commented on Jan 7, 2026

    @tylerlaprade
    Author

    @rekram1-node, this still happens for me. I still have to manually update with Brew

  8. rekram1-node commented on Jan 7, 2026

    @rekram1-node
    Contributor

    Weird...

  9. github-actions commented on Mar 25, 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.

  10. brandon-pereira commented on May 19, 2026

    @brandon-pereira

    I had this too - ran brew update && brew upgrade opencode to fix it. Might not use brew to install this if its not fixed - would rather upgrade with the OpenCode CLI itself

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