Auto-updates not applying correctly in the TUI
Description
The auto-update dialog is showing that the client has been updated, but restarting doesn't update the binary that's being run.
I have a hunch it's because I've installed opencode using brew.
This is after the dialog indicated a successful update to 1.0.162:
$ opencode --version
1.0.150
$ brew info opencode
==> opencode: stable 1.0.162 (bottled)
AI coding agent, built for the terminal
https://opencode.ai
Installed
/opt/homebrew/Cellar/opencode/1.0.150 (4 files, 93.3MB) *
Built from source on 2025-12-12 at 08:43:16
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/opencode.rb
License: MIT
OpenCode version
1.0.150
Steps to reproduce
No response
Screenshot and/or share link
https://github.com/user-attachments/assets/7ec1c703-8885-4d0f-985b-c3c01e6abc87
Operating System
macOS Tahoe 26.1 (25B78)
Terminal
Ghostty
This issue might be a duplicate of existing issues. Please check:
- #4783: Please, change autoupdate to notify by default (Version mismatch and notification issues when using brew)
- #5111: It should not be possible to exit opencode while it's silently updating itself to latest release
- #1233: "Restart to update" always pops up, even after restarting (Similar restart dialog issues)
- #4783: Auto-update behavior differs when using package managers like brew
Feel free to ignore if none of these address your specific case.
@rekram1-node there was a partial release in between yesterday that may cause this?
hm if u are using brew then it should have used brew to update it
I prefer installing via curl, and upgrading via curl as well.