Repository navigation
feat: explain how to set up a runner when a workspace has none - #121
Merged
kalaspuff merged 3 commits intoOct 20, 2026
Merged
Conversation
A new workspace has no runners, and its pages said little about what to do: the Runners tab asked admins to "run two commands" they hadn't seen yet, the floor and the project page let people start sessions that then waited without a word, and a waiting session sent admins to the workspace's settings, where runners aren't. - The Runners tab of a workspace without runners shows its admins three short steps (a Mac or Linux machine with a container runtime, Register, the two commands), and the one-command `fctl host install --workspace` for machines already signed in. Members see whom to ask. - Under the task boxes on the floor and the project page, a line says when the workspace has no runner online, so sessions started there wait, with a link to its Runners tab (or whom to ask, for members). - The setup checklist's runner step says what happens until one is online, and a queued session points to the Runners tab.
"Sessions you start in it wait until it is" used "it" for both the workspace and its runner.
The Runners tab's steps for a workspace without runners now install fctl with the installer's one-liner (or Homebrew), then sign in and register the machine with `fctl host install --workspace`, each in a box to copy. Registering it above, for a command with a token, stays as the way that doesn't sign in on the machine. The install command comes from one place for this step and both register dialogs. An app at app.<domain> keeps taking the installer from the site beside it (fctl.sh for app.fctl.sh). Other instances, like self-hosted ones, now get fctl.sh's installer, as the self-hosting guide says: their Worker serves no /install, so the command fetched the web app instead.
kalaspuff
approved these changes
Oct 20, 2026
kalaspuff
deleted the
fctl/67-in-a-new-workspace-there-s-no-runners-ac
branch
October 20, 2026 10:41
kalaspuff
pushed a commit
that referenced
this pull request
Oct 20, 2026
) Sessions showed one pull request: the one fctl-agent reported last, the primary repository's first, as `#120` with no repository. A session that opened pull requests in several of its project's repositories, or a second one after the first was merged, listed only one of them and didn't say where it was. ## What changed - **The control plane keeps every pull request a session's agent finds.** After each turn fctl-agent reports the pull request of the branch each repository has checked out, so it only ever reports the latest one per repository. SessionDO now adds the new ones to the session's list, in the order they come, and takes the newer title and state of the ones it has (`fctl_domain::pulls`, at most 20). Each carries the repository it was opened in: the one its URL names, or else the repository whose state it came in. The list is written to D1 in a new `sessions.pull_requests` column (migration 0014) and is part of the account export. - **Protocol.** `Session.pull_requests` and `PullRequestRef.repo` are new and optional; `Session.pull_request` stays for clients a version behind. Agents and hosts don't change. Sessions from before this get their one pull request in the list, with its repository, when they are read, from D1 or from their SessionDO. - **Web app.** The session header links every pull request as `repository#number` (`fctl#120`, `design#14`), with its title on hover; they wrap together as one list. The rail has a **Pull requests** section with each one's title and `owner/name#number`, in place of the card under **Changes**. The floor, a workspace's page and a project's page say `PRs fctl#120, design#14`. - **The floor stays current.** SessionDO told the dashboards about a session when its status changed, and a turn's git report arrives after the turn ends. So a new pull request, and the +/− counts, reached the floor's rows only after a reload or the next turn. A git report that changes what the lists show now goes to the dashboards too. - **CLI.** `fctl show` prints each pull request with its repository (below); `--json` has the list. - **Docs.** `getting-started.md` and `cli.md` say so. The privacy policy's "branch and pull request" becomes "pull requests" in hyperstructure/fctl-site#28. ``` $ fctl show playground#3 playground#3 Name every pull request a session opens … prs: fctl#121 #121 design#15 hyperstructure/design#15 fctl-site#32 hyperstructure/fctl-site#32 ``` ## Verification - Unit tests for `fctl_domain::pulls` (repositories from URLs and from repository states, merging over turns, the limit, sessions from before the list), for `fctl show`'s lines (also from a control plane before the list) and for the web app's helpers. `cargo xtask check` passes. - End to end with `cargo xtask dev`. The dev instance has no GitHub, so the dev agents got a stand-in `gh` that answers `gh pr view` with a pull request in another repository after each turn, and the project a setup script that pushes each commit to a local remote, so fctl-agent sees its branch pushed and looks the pull request up. - On `main`, a session whose agent found fctl#120, design#14 and fctl-site#31 showed only `#31`. - I restarted the stack on this branch with the same data, and migration 0014 applied. The sessions `main` made read with their one pull request in the list, with its repository. Another turn in one of them added sandbox#7 after fctl-site#31. - A new session's agent found fctl#121, design#15 and fctl-site#32: D1, the API, `fctl show` and the web app list all three. With the session page and the floor open, the pull request a further turn found showed up on both without a reload. ## Screenshots At b04cf34, with the dev stack's data. Both columns show the same sessions, read from this branch's control plane: on the left `main`'s web app, on the right this branch's. Playground #3's agent found a pull request in four repositories. | Before | After | |---|---| |  |  | |  |  | |  |  | |  |  | |  |  | Made in fctl session https://app.fctl.sh/s/ses_01M5CBQV867BG6ARZKJHZPGVY0 --------- Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com> Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.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.
A new workspace has no runners, and its pages didn't say what to do about it. The Runners tab asked admins to "run two commands" they hadn't seen yet, and said nothing about the container runtime a machine needs. The floor and the project page let people start sessions that then waited without a word. A waiting session sent admins to the workspace's settings, where runners aren't.
What changed
curl -fsSL https://fctl.sh/install | sh, orbrew install hyperstructure/tap/fctl. (3) Sign in and register it for the workspace:fctl login <instance>, thenfctl host install --workspace <slug>. To avoid signing in on the machine, admins can still name it in the form above and choose Register, which gives a command with a token. If the admin has runners of their own, the lead says to add one of those, or bring another machine online.app.<domain>still takes the installer from the site beside it (fctl.sh for app.fctl.sh). Other instances, like self-hosted ones atfctl.acme.dev, now get fctl.sh's installer, as the self-hosting guide says. Before, the dialog pointed them at<instance>/install, which their Worker doesn't serve, socurl … | shfetched the web app's HTML.docs/getting-started.mdstep 5 says that sessions wait until a runner is online, and what the app shows meanwhile.Most of the diff in
home.tsxandproject.tsxis re-indentation: each task form is now wrapped together with its note. Hide whitespace to see the change.Verification
runnersOfinweb/src/lib/workspaces.test.ts;installCommandinweb/src/lib/install.test.ts; the note's wording, link and silence inweb/src/components/workspace/no-runners.test.tsx; the Runners tab for admins and members inweb/src/routes/workspace.test.tsx.cargo xtask check --quickpasses: fmt, generated types, Biome and TypeScript, Clippy (including wasm), Rust tests and 167 web tests.cargo xtask dev, using the dev owner and a member signed up through an invitation:fctl run -d -p notes "write todo.md".fctl sessions -p notes --jsonshowed its reason as "Waiting for a runner: this workspace has none yet. Its admins add one on its Runners tab."Screenshots
At 10f5659, with
cargo xtask dev's data plus the "Side project" workspace, 1280 px wide unless noted. The "before" shots aremainon the same control plane.The workspace's Runners tab, as its primary admin (who has a runner in another workspace):
The same tab as a member:
The project page, as an admin:
The floor with a Side project project chosen, as the admin and as the member. Before, nothing showed under the task box:
The admin's Runners tab in the dark theme at 390 px:
Made in fctl session https://app.fctl.sh/s/ses_01M5CCHK1GDVZ9BM8VNRAGY5F7