Skip to content

feat: the app checks GitHub for a newer release and says so in the title bar - #44

Merged
ba2slk merged 8 commits into
mainfrom
feat/update-check
Aug 18, 2026
Merged

feat: the app checks GitHub for a newer release and says so in the title bar#44
ba2slk merged 8 commits into
mainfrom
feat/update-check

Conversation

@ba2slk

@ba2slk ba2slk commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Termspace asks the GitHub releases API for a newer release at startup and once every 24 hours: one anonymous GET, nothing else sent. When one exists, a chip at the end of the title bar's left group names the version and opens the release page on click. Nothing is downloaded; installing is the user's, on both platforms, as it is today.

Dismissing the chip hides it for the run. A stable build sees only stable releases; a prerelease build sees prereleases too, and never an older stable. A version higher than anything published (a local build) reports nothing. Drafts, unparseable tags and non-github.com URLs are skipped.

updateCheck (default 1) in settings.yaml or the toggle in Settings › Updates turns the automatic check off. "Check now" in the same section runs regardless and reports inline (up to date / version available with a button to the page / GitHub unreachable). The renderer only ever receives a state and a version string; the URL stays in main. Three IPC channels: update:check, update:open-release, update:state. Not started under the self-check.

update-check.ts (SemVer, candidate choice) and updater.ts (timer, injected fetch) are pure and unit tested; the chip and the settings rows have DOM tests. Checked by hand against the live API by running a build versioned as 1.1.0-beta.3: the chip named 1.1.0-beta.4 and the settings row did the same. README, MANUAL-QA and the engineering notes cover it; in-place AppImage replacement is deferred and noted there.

Generated with Claude Code

ba2slk and others added 8 commits August 19, 2026 02:43
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…otes

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ba2slk
ba2slk merged commit 8734aa2 into main Aug 18, 2026
2 checks passed
@ba2slk
ba2slk deleted the feat/update-check branch August 18, 2026 18:18
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