Repository navigation
feat(updater): add opt-in install updates on quit setting (opencode#66501) - #1297
Merged
Merged
Conversation
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.
Ports official
anomalyco/opencode#66501(63261c1c5d617002461a06178fdb5b98c26c15b7, UP-244): adds an opt-in Install updates on quit toggle in Settings -> General -> Updates (off by default on all desktop platforms) and wires it into the native updater's quit handoff on macOS and Windows.Summary
features/updater(lib.rs,mac.rs,windows.rs,service.rs):set_install_on_quit(bool)/install_on_quit_enabled()defaulting tofalse.mac.rs:installs_on_quit()now honorsinstall_on_quit_enabled()instead of unconditionally installing on quit. Because Rune swaps the signed bundle directly at quit (no Squirrel.Mac), turning the setting off mid-session disarms quit-install cleanly.windows.rs: implementedinstalls_on_quit()(self.owned && install_on_quit_enabled()) andinstall_on_quit()invokinghand_off(false)(--apply-updatewithout--relaunch).apps/desktop/src/surfaces/updater.rs,apps/desktop/src/dialogs/settings/updater_fallback.rs):plugin.updater/installOnQuit({"enabled": bool}, defaultfalse) intoopencode_feature_updater::set_install_on_quiton store-version change inupdater.polland right beforeupdater.closing.settings-install-on-quitrow (desktop only, omitted onwasm32) to the single-frame native fallback section betweensettings-release-notesandsettings-check-updates, disabled and unchecked while the updater is starting or disabled.plugins/updater/{init,view}.luau,plugin.toml,locales/en.json):installOnQuitstore (default{ enabled = false }),settings-install-on-quitsearch entry, and desktop-only Settings row betweenRelease notesandCheck for updates(matchingpackages/gui-plugins/src/updater/{contract,main,platform,renderer,section}.tsx,i18n/en.ts).Updater:State()is unavailable orphase == "disabled".Verification
45763694986on headbf0a8efd5e: green (guardrails,build-macos,build-windows (x64),build-windows (arm64),build-linux (x64); Linux arm64 skipped).c1360881ed), 3/3 headless cases passed:setting-settings-install-on-quitrenders aty=2570, strictly betweensetting-settings-release-notes(y=2492) andsetting-settings-check-updates(y=2648), with title"Install updates on quit"and description"Automatically install downloaded updates when you quit OpenCode". Before: absent (settings-check-updatesdirectly aty=2570).install-on-quit-switch(role=switch) hasfocusable=false, muted track#5c5c5cff, thumb at leftx=1098(unchecked; compared with enabled checkedrelease-notes-switch:focusable=true,#3b5cf6ff, thumbx=1106)."install updates on quit"insettings-search-inputsurfaces"Install updates on quit"/"Preferences / Updater"aty=240.scripts/guardrails.ps1): 9/9 passed;bun scripts/web-clock.ts: 0 violations.