Skip to content

docs(legal): say the browser keeps the runner update you skipped - #39

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/119-it-would-be-great-on-the-home-screen-use
Oct 22, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/119-it-would-be-great-on-the-home-screen-use

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

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

app.fctl.sh's home page now tells people when a runner of theirs runs an older fctl than the control plane, and they can skip the notice for that version. The browser keeps the version they skipped (localStorage, under their user id), so the policy lists it with the rest of what the browser keeps.
@kalaspuff
kalaspuff merged commit 0215d11 into main Oct 22, 2026
3 checks passed
@kalaspuff
kalaspuff deleted the fctl/119-it-would-be-great-on-the-home-screen-use branch October 22, 2026 00:03
kalaspuff pushed a commit to hyperstructure/fctl that referenced this pull request Oct 22, 2026
…187)

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:

- **Update your runner to fctl 0.16.0**, with each runner that is behind
and its version (`studio mac runs 0.15.0 and mini runs 0.14.2`).
- **How to update** opens the steps in place: run `fctl self update` on
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 run `brew upgrade fctl`
instead, as the formula's caveat asks, then `fctl 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.
- **Skip this version** hides the notice for that version in this
browser, for this person (localStorage, `fctl:skipped-update:<user>`).
It comes back when the control plane runs a newer version.

## Why this way

- **The version to update to is the control plane's** (`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 their `version` and `yours` to
the REST list and the feed, so nothing in the protocol or the API
changes.
- **Only your own runners that are online**: the person who registered a
runner (`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.
- **Skipping is per browser**, like the passkey offer's "Not now".
Keeping it on the account would need a column, an endpoint and a CLI
command for one hint.
- On the CLI, `fctl self update --check` already 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 update` says 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

- Unit tests: `web/src/lib/updates.test.ts` covers parsing and comparing
versions as `fctl self update` does, and which runners count.
`web/src/components/runner-update.test.tsx` covers the copy for one
runner and for several, the instructions that open in place
(`aria-expanded` and `hidden`), 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) and `cargo
xtask check lint test`.
- End to end on `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. When `mini` reconnected with 0.16.0, the notice
changed at once to `studio mac` alone. **Skip this version** hid it, and
it stayed hidden across a reload. With `/api/v1/instance` rewritten to
0.17.0, it came back with all three runners.

## Screenshots

At c1f7134, on `cargo xtask dev` with the stand-in runners.

The home page in the light theme, 1440 px wide:

![The home page with the notice: update your runners to fctl 0.16.0;
studio mac runs 0.15.0 and mini runs
0.14.2](https://app.fctl.sh/api/v1/published/VhP7vICzvjgYuFFdPVQrDdDpByI93grWVgY5THhptnw/after-light.png)

How to update, open, in the dark theme:

![The notice open: run fctl self update on studio mac and mini, with the
Homebrew
alternative](https://app.fctl.sh/api/v1/published/geoV46csF5m9lPq7LDQkZ9rEkQ3MNqAopm5Iv73guY0/after-dark-open.png)

At 390 px wide, open in the light theme and closed in the dark theme:

| Light, open | Dark |
|---|---|
| ![The notice open on a phone,
light](https://app.fctl.sh/api/v1/published/9vt8lzhcnfzTR072W7oBcRdLzENNWCKvPcKRs5tKy0t/after-light-390-open.png)
| ![The notice on a phone,
dark](https://app.fctl.sh/api/v1/published/VaRoycsOjHUmlmxsBNhl9Db5tjhA8jRDTB73Uo8sgtc/after-dark-390.png)
|

Made in fctl session
https://app.fctl.sh/s/ses_01M5GDQTA4B94G6461Q881NYT8

---------

Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant