opencode
opencode copied to clipboard
It should not be possible to exit opencode while it's silently updating itself to latest release
Description
I started opencode cli, then quit soon after. Next time I tried to start it, the command was not found because it was in the middle of a self-upgrade which it didn't finish. It would be also a good idea to show a toast message when it's self-updating
OpenCode version
1.0.132
Steps to reproduce
- Open opencode when there's an update
- stop it really soon after (maybe about 1 second delay)
- you may or may not end up with opencode missing on your system.
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
This issue might be a duplicate of existing issues. Please check:
- #4248: [FEATURE]: More transparent automatic version upgrades - Requests better visibility during automatic upgrades
- #5049: auto update shows the updated file in "Modified Files" section - Related to update notification issues
- #4450: (related) Request for OSC 9 terminal notifications - Proposes notification system for important events like agent completion
- #2987: [Bug] All sessions are gone - Related issue where interrupted operations caused data loss (from
/compactcommand)
The core issues appear to be:
- Lack of user notification during self-updates (preventing accidental interruption)
- No mechanism to prevent exit while critical operations (like upgrades) are in progress
- Incomplete update recovery - if the update is interrupted, the installation becomes broken
Feel free to ignore if none of these address your specific case.