Skip to content

feat: improve updater flow with auto-restart after download#231

Merged
AmethystLiang merged 2 commits into
mainfrom
improve-updater
Mar 31, 2026
Merged

feat: improve updater flow with auto-restart after download#231
AmethystLiang merged 2 commits into
mainfrom
improve-updater

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Problem

The update toast requires multiple user interactions for auto-downloaded updates (first clicking "Update" to download, then "Restart Now" to install). Additionally, the "View Changes" button was implemented via a brittle workaround (a plain button to avoid Sonner's auto-dismiss behavior), which is redundant given the existing "Release notes" link.

Solution

  • Introduced an autoRestartAfterDownload flag to seamlessly install and restart the app immediately after an auto-download completes, streamlining the process to a single click.
  • Removed the custom createViewChangesButton component to simplify the toast's action buttons, relying instead on the existing "Release notes" link and the native Toaster close button.

@AmethystLiang AmethystLiang merged commit 86ea7ad into main Mar 31, 2026
1 check passed
thomaszdxsn pushed a commit to thomaszdxsn/orca that referenced this pull request Jun 15, 2026
…#231)

* improve the updater

* fix: extract restoreScrollbackBuffers to fix max-lines lint error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant