Skip to content

fix(web): keep members' pools out of projects, and pass on pool capacity - #648

Merged
kalaspuff merged 4 commits into
mainfrom
fctl/1545-pool-review-findings
Nov 24, 2026
Merged

kalaspuff merged 4 commits into
mainfrom
fctl/1545-pool-review-findings

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This fixes the seven review findings left unanswered on #644 and #645, which merged with them.

  • Members' own pools: a project's Settings → Runners no longer offers a member's own pool, or the pool of a runner that runs only its owner's sessions. Such pools only take their owner's sessions, so a project that chose one made everyone else's sessions wait for runners that never took them. They also no longer hide the amber warning that no runner has the project's labels, and neither does a pool whose token was revoked or expired with no runners left, which the server no longer counts.
  • The warning while pools load: it now waits for the pools before it says no runner has the labels, rather than flashing until they come.
  • One toast: saving the Runners page says "Sessions that start from now on run on …" once, without a second "Saved".
  • Cancel in Edit pool: it was the form's submit button, so it saved what had changed. Now it only closes.
  • Pool cards after runner changes: approving, rejecting, draining or removing a runner refetches the pools' demand too, so their counts update with the list below them.
  • Capacity: fctl host install runs 4 sessions unless told otherwise, while the New pool form starts at 3, the cloud modules' default. The command for your own machines left --capacity out at 3, so those machines ran 4. It now always passes the form's value, and the Kubernetes step names it too (fctl host install --no-service --capacity N, then fctl host run).

I verified it with unit and component tests for each fix, and checked that each new test fails without its fix. npm run check and the web app's 1,893 tests pass.

Refs #615

Screenshots

At 3a89ca9, from cargo xtask dev, light theme. Before is main's web app against the same control plane, so its commands name port 5175 instead of 5173; the dev stack's tokens are masked.

A project's Settings → Runners, with the workspace's AWS large pool and the dev owner's own My GPUs pool. Before, the project could choose My GPUs; after, it can't:

Before After
Before: Its sessions run on offers Any runner, AWS large, My GPUs and Runners with labels you choose After: Any runner, AWS large and Runners with labels you choose, without My GPUs

A new pool on your own machines at the form's 3 sessions each, whose command now says so:

Before After
Before: the enroll command ends with fctl host install After: the enroll command ends with fctl host install --capacity 3

A new pool on Kubernetes: the Deployment step now names the install and the capacity:

Before After
Before: Run the host as a Deployment, each pod enrolling with the secret's token and running the host After: the same step with fctl host install --no-service --capacity 3, then fctl host run

fctl session


Note

Low risk. It changes only how the web app picks and lists pools for a project, in a front-end helper and its tests, and nothing is stored or sent differently.

What it does. Keeps members' own pools out of the pools a project can choose or wait for, since their runners run only that member's sessions, and passes on a pool's capacity from its form to its machines. Pools whose token ended with no runners left no longer count, as on the server.

fctl review's first look at 3a89ca9 · 8 files, +122 −35 · Review agent settings

fctl-sh Bot added 3 commits November 24, 2026 08:21
A member's own pool runs only their sessions, so a project that chose it
waited for runners that never took anyone else's, and its amber warning
hid. Projects no longer see such pools or runners, the warning waits for
the pools to load before it says no runner has the labels, and saving
the Runners page shows one toast.
…ools after runner changes

Cancel was the form's submit button, so it saved what had changed.
Approving, rejecting, draining or removing a runner now refetches the
pools' demand too, which their cards show.
fctl host install runs 4 sessions unless told, while the form starts at
the cloud modules' 3: the command for one's own machines left it out at
3. It now always passes it, and the Kubernetes step says it too.
@fctl-review

This comment has been minimized.

Comment thread web/src/lib/pools.ts Resolved
…labels wait for

The server keeps a pool whose token was revoked or expired only while it
has runners (pools::named), as the choices did: poolFor now does too, so
labels that only such a pool had show the amber warning.
fctl-sh Bot added a commit to hyperstructure/design that referenced this pull request Nov 24, 2026
…fctl#648 changes

The New pool form offers seven ways to remove offline runners, not five;
the Runners tab's section names lib/pools.ts, lib/pool-setup.ts and
PoolCard; Access tokens' summary is like a new pool's. The setup steps'
capacity, the Kubernetes step's words and the amber line's wait say that
they are as hyperstructure/fctl#648 makes them.
@kalaspuff
kalaspuff merged commit 5ab7c26 into main Nov 24, 2026
15 checks passed
@kalaspuff
kalaspuff deleted the fctl/1545-pool-review-findings branch November 24, 2026 08:32
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