feat(updater): pre-release update checker + version indicator in nav#16
Merged
feat(updater): pre-release update checker + version indicator in nav#16
Conversation
The updater previously fetched `/releases/latest/download/latest.json`, which only serves stable releases — pre-release users never saw updates. Additionally, `isNewer()` ignored pre-release suffixes entirely. - Rewrite `isNewer()` with `parseVersion()` supporting alpha/beta/rc suffixes and numeric suffixes (e.g. rc2) - Switch from latest.json to GitHub Releases API with filtering - Add `UpdateChannel` setting (auto/stable/pre-release) with UI selector - Auto-detect channel from current version when set to auto - Mark pre-release tags in CI release workflow - Comprehensive test coverage for version parsing, comparison, and channel-aware update checking Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Display app version at the bottom of the sidebar with a pulsing icon when an update is available. Clicking navigates to Settings → About. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
latest.json(which only works for stable releases via GitHub's/releases/latest/) to the GitHub Releases API. RewriteisNewer()with full semver pre-release support (alpha < beta < rc < stable, with numeric suffixes like rc2).UpdateChannelfield in settings with a UI selector (Auto / Stable / Pre-release). Auto-detect mode infers the channel from the current version's suffix.-alpha|-beta|-rctags and setsprerelease: trueon the GitHub Release.Files changed
internal/features/updater/service.go,model.go,service_test.go,internal/features/settings/model.go,main.goshell.component.ts/scss/spec.ts,settings.component.ts/spec.ts,wails.service.ts,wails-mock.tssettings/models.js,updater/models.js.github/workflows/release.ymlTest plan
go test ./internal/...— all pass (including 10TestParseVersion+ 17TestIsNewer+ channel-aware update tests)cd frontend && npm test— 90 tests pass (including new shell + settings tests)go build -o bin/KeyLint .— compiles cleanly4.1.7-alpha, mock GitHub API returning4.1.8-alpha→ update offered🤖 Generated with Claude Code