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

Open
opened 2026-02-16 17:28:36 -05:00 by yindo · 7 comments
Owner

Originally created by @tylerlaprade on GitHub (Jul 22, 2025).

Originally assigned to: @thdxr on GitHub.

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.

Originally created by @tylerlaprade on GitHub (Jul 22, 2025). Originally assigned to: @thdxr on GitHub. <img width="1440" height="900" alt="Image" src="https://github.com/user-attachments/assets/fa73ddfd-3e65-4dba-9e96-e02674c5a83e" /> 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.
Author
Owner

@ChaseRensberger commented on GitHub (Jul 23, 2025):

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?

@ChaseRensberger commented on GitHub (Jul 23, 2025): I would assume the update is failing. Based on this code it in theory shouldn't show the banner on a failure: ```ts 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: ```ts 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?
Author
Owner

@tylerlaprade commented on GitHub (Jul 23, 2025):

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.

@tylerlaprade commented on GitHub (Jul 23, 2025): 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.
Author
Owner

@thdxr commented on GitHub (Jul 23, 2025):

seems like brew is failing silently

@thdxr commented on GitHub (Jul 23, 2025): seems like brew is failing silently
Author
Owner

@tylerlaprade commented on GitHub (Jul 23, 2025):

Confirmed it's still happening with the newer version

Image Image
@tylerlaprade commented on GitHub (Jul 23, 2025): Confirmed it's still happening with the newer version <img width="510" height="42" alt="Image" src="https://github.com/user-attachments/assets/fd8f4203-9361-4182-b9c8-2d0a19cdc6b6" /> <img width="482" height="604" alt="Image" src="https://github.com/user-attachments/assets/ef8e77c3-41b0-4529-ba8f-1598478b9db1" />
Author
Owner

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

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

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Author
Owner

@tylerlaprade commented on GitHub (Jan 7, 2026):

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

@tylerlaprade commented on GitHub (Jan 7, 2026): @rekram1-node, this still happens for me. I still have to manually update with Brew
Author
Owner

@rekram1-node commented on GitHub (Jan 7, 2026):

Weird...

@rekram1-node commented on GitHub (Jan 7, 2026): Weird...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#866