Repository navigation
Conversation
Copy the TUI's /update flow into the desktop app. Once OpenCode 1 is up to date, the app offers OpenCode 2.0 in a dialog with the TUI's words and its Dismiss and Upgrade choices. Dismiss hides the offer for 7 days. Upgrade downloads OpenCode 2 through a second updater that reads the OpenCode 2 feed, and Restart installs it over OpenCode 1.
Replace the two-step offer. OpenCode 2 now downloads in the background once OpenCode 1 is up to date, the way an OpenCode 1 update does. The offer opens only when the download is done, and only right after the app starts. Restart to upgrade installs at once, Upgrade on quit installs when the app quits, and Later hides the offer for 7 days.
The v1 pipeline builds the desktop app for release only, so the beta feed could never be reached.
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Five rows name what OpenCode 2 adds. The config row is gone.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
No linked issue. OpenCode 1 desktop has no path to OpenCode 2 today; the TUI got one in #54409.
Type of change
What does this PR do?
OpenCode 1 desktop now offers OpenCode 2.0, the desktop counterpart of
/updatein the TUI.OpenCode 2 desktop keeps the app ID, so its installer replaces OpenCode 1 in place. OpenCode 1 reads GitHub releases and OpenCode 2 publishes to its own feed, so the offer uses a second updater. The OpenCode 1 updater never sees the OpenCode 2 feed:
Upgrade on quit arms
electron-updaterafter the fact. It only registers its quit handler when a download finishes, so the cached installer is "downloaded" again, which returns at once:How did you verify your code works?
Screenshots / recordings
Restart to upgrade, recorded with a simulated updater:
restart-to-upgrade.mp4
Checklist