feat(console): let an available update be dismissed (don't force the install) - #78
Merged
Conversation
…install) The updater button conflated find + install: once "Check for updates" found a newer nightly it flipped to "Update to vX ↻" and every subsequent click only *installed* it. There was no way to skip the found build and keep working, or to re-check for a later nightly, without installing first (or restarting) — the operator was effectively forced to upgrade. Add a **Later** dismiss, shown only while an update is pending: - index.html: a `#update-dismiss` button next to the update button. - main.ts: `setPending()` toggles the dismiss with the pending state; the dismiss clears `pending` back to "Check for updates" and notes the skip. Install hides the dismiss while running. 1-click install is unchanged. - styles.css: a quiet underlined `.update-dismiss` (muted → text on hover). Now finding an update offers install *or* skip; skipping keeps the current build and a later Check picks up whatever nightly is newest then. Verification: `tsc --noEmit` clean · 89 vitest · `vite build` OK. Updater flow is desktop-only (Tauri bridge); frontend-only change.
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.
Problem
The updater button conflated find and install. Once Check for updates found a newer nightly, it flipped to
Update to vX ↻and the click handler became install-only:So once an update was found there was no way to skip it and keep working, and no way to re-check for a later nightly (clicking just installed the found one). The only exits from the pending state were install or restart — the operator was effectively forced to upgrade to whatever nightly it first saw.
Fix
Add a Later dismiss, shown only while an update is pending:
#update-dismissbutton beside the update button.setPending()toggles the dismiss with the pending state; the dismiss clearspendingback to Check for updates and logs the skip. Install hides the dismiss while running. 1-click install is unchanged..update-dismiss(muted → text on hover).Finding an update now offers install or skip; skipping keeps the current build, and a later Check picks up whatever nightly is newest at that point.
Verification
console:tsc --noEmitclean · 89 vitest ·vite buildOK. The updater flow is desktop-only (Tauri bridge); this is a frontend-only change. Visual/interaction pass (find → Later → keeps build → re-check) wants eyes on a real build.🤖 Generated with Claude Code