Repository navigation
feat(web): ask people on the home page to update their runners' fctl - #187
Merged
kalaspuff merged 2 commits intoOct 22, 2026
Merged
Conversation
While a runner someone registered is online with an older fctl than the control plane, their home page says so: which runners, and the version to update to. How to update shows the command to run on them, fctl self update (or brew upgrade fctl and fctl host restart where Homebrew installed it). Skip this version hides the notice in that browser until the control plane runs a newer version.
kalaspuff
pushed a commit
to hyperstructure/fctl-site
that referenced
this pull request
Oct 22, 2026
app.fctl.sh's home page now tells people when a runner they registered is online with an older fctl than the control plane, with the command that updates it (hyperstructure/fctl#187). They can skip the notice for that version. Their browser then keeps the version they skipped in localStorage, under their user id, so that the notice stays away until the control plane runs a newer one. The privacy policy lists each thing app.fctl.sh keeps in the browser, so this adds that one to "Cookies and browser storage", beside the folded workspaces and the last project, and moves `updated` to 2026-10-22. Nothing new is stored on app.fctl.sh or sent anywhere. Merge it when hyperstructure/fctl#187 merges. Made in fctl session https://app.fctl.sh/s/ses_01M5GDQTA4B94G6461Q881NYT8 Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
kalaspuff
approved these changes
Oct 22, 2026
kalaspuff
deleted the
fctl/119-it-would-be-great-on-the-home-screen-use
branch
October 22, 2026 00:05
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.
People who provide a runner had no way to learn from the app that it runs an old fctl: the web app showed runner versions only under Admin. Now, while a runner you registered is online with an older fctl than the control plane, your home page says so, under the task box:
studio mac runs 0.15.0 and mini runs 0.14.2).fctl self updateon the runner (with a copy button). It installs the latest fctl and restarts the host service, and the sessions running there carry on. Where Homebrew installed fctl, it says to runbrew upgrade fctlinstead, as the formula's caveat asks, thenfctl host restart, since Homebrew doesn't restart the host service. The notice goes away by itself once the runner reconnects with the new version: the feed carries its new hello.fctl:skipped-update:<user>). It comes back when the control plane runs a newer version.Why this way
GET /api/v1/instance), compared with the version in each runner's hello. On app.fctl.sh that is the latest release, since every release redeploys it. On a self-hosted instance it is the version its hosts are meant to run ("hosts tolerate a control plane one version ahead"), and the control plane doesn't have to fetch fctl.sh to know it. The change is in the web app only: runners already report theirversionandyoursto the REST list and the feed, so nothing in the protocol or the API changes.yours) is the one who can update its machine. An offline runner's version is only what it said last, and one that has been off for months shouldn't nag.fctl self update --checkalready says whether a newer release is out.Known gap: right after a release, app.fctl.sh can run the new version shortly before fctl.sh publishes its archives. For v0.16.0, the deploy finished at 23:29:36 and the Release workflow's Publish job at 23:30:45. In that minute or so,
fctl self updatesays fctl is up to date, and the notice stays until the archives are out.The privacy policy on fctl.sh lists what app.fctl.sh keeps in the browser, so hyperstructure/fctl-site#39 adds the skipped version to it. Merge the two together.
Verification
web/src/lib/updates.test.tscovers parsing and comparing versions asfctl self updatedoes, and which runners count.web/src/components/runner-update.test.tsxcovers the copy for one runner and for several, the instructions that open in place (aria-expandedandhidden), what doesn't show, and skipping: it holds for that person and version, and comes back for another person and for a newer version.cd web && npm run check, the whole web test suite (434 tests),cargo xtask check web(including the production build) andcargo xtask check lint test.cargo xtask dev(control plane 0.16.0): I registered two more runners and connected them with a small stand-in host that sends a real hello with versions 0.15.0 and 0.14.2. In Chromium, the home page listed both. Whenminireconnected with 0.16.0, the notice changed at once tostudio macalone. Skip this version hid it, and it stayed hidden across a reload. With/api/v1/instancerewritten to 0.17.0, it came back with all three runners.Screenshots
At c1f7134, on
cargo xtask devwith the stand-in runners.The home page in the light theme, 1440 px wide:
How to update, open, in the dark theme:
At 390 px wide, open in the light theme and closed in the dark theme:
Made in fctl session https://app.fctl.sh/s/ses_01M5GDQTA4B94G6461Q881NYT8