Skip to content

Settings, System: Check for updates, and Update installs the newest release - #310

Merged
nambok merged 1 commit into
mainfrom
releases-fresh-check
Nov 4, 2026
Merged

nambok merged 1 commit into
mainfrom
releases-fresh-check

Conversation

@nambok

@nambok nambok commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Settings, System now says when the install last read GitHub's release list and has a Check for updates button to read it now. Pressing Update always installs the newest release at that moment. Needs the gateway route and updater changes in CoderHelm/coderhelm-platform#462.

Changes

  • Version section: "Checked just now" / "Checked 31 min ago" (from releases.fetched_at) and a small Check for updates button. It calls POST /api/system/releases/check (api.checkReleases), which the updater rate-limits to one read every 30 seconds, and the page then shows the fresh status. If the last read failed, a line says "The last check couldn't reach GitHub, so this is the list from then."
  • Update now and Try again send no version, so the updater reads the list first and installs the newest release at that moment. Skipping a model check still names the release whose check the admin read.
  • New status behind: if latest.json names a release that GitHub's list doesn't show yet, the page says "v1.3.0 is out" and shows no Update button for an older release.
  • SystemVersion.releases type (ReleaseFreshness).

Verification

  • ui-lint, no-hosted-links, tsc --noEmit, next build: clean.
  • E2E_STATIC=1 playwright test e2e/selfhost.spec.ts e2e/models-switch.spec.ts: 51 passed. The new tests run on desktop and phone:
    • Check for updates goes from "Checked 31 min ago" to "Checked just now" with exactly one call, and the newer release's Update button appears
    • a newer release GitHub doesn't list yet: the behind state, no Update button, and the failed-check line
  • Update now asserts an empty body (no version).

…talls the newest release

The Version section shows when the install last read GitHub's release list
and a Check for updates button (POST /api/system/releases/check). Update now
sends no version, so the updater reads the list first and installs the newest
release at that moment. A newer release GitHub doesn't list yet shows as such,
with no Update button for an older one.
@nambok
nambok merged commit ae22eb3 into main Nov 4, 2026
10 checks passed
@nambok
nambok deleted the releases-fresh-check branch November 4, 2026 17:55
nambok added a commit to CoderHelm/coderhelm-platform that referenced this pull request Nov 4, 2026
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