Repository navigation
Description
Written-by: Fledge Platform Product
Pin: 15cc6db17eda9bca1bc057a5f1fc3416aeb8f0dd (live main, read at Date: Tue, 24 Nov 2026 13:00:25 GMT). Every citation below was read at that sha.
What happens
On a deployment with an empty FLYBOT_INSTANCE_IMAGE - the default, because the config reader falls back to '' (src/config.ts:290) - the first-run checklist still renders a "Start workspace" step and still counts it in the denominator, although that deployment can never start one.
The merged #1281 fix made the step's done true when no workspaces exist (src/views/checklist.ts:151), so it no longer blocks the first job. But it is still built as a step: key: 'instance' is unconditional in the array (src/views/checklist.ts:149), TOTAL is the module constant 5 (src/views/checklist.ts:74), and done counts every step whose done is true (src/views/checklist.ts:167). The dashboard renders every step in that array with no key filter (src/views/pages.ts:869) and prints done / total (src/views/pages.ts:899).
Reproduced first-hand at the pin by calling the pure state machine with a fake translator:
instancesUsed= false total= 5 done= 4 complete= false
keys= repo,role,model,instance,job
instance row: {"done":true,"title":"Start workspace","action":"Open the repository","blocked":null}
next= job job.blocked= null
A user who has connected a repository, chosen a role and configured a model therefore reads 4 / 5 steps done and sees a checked "Start workspace" row offering "Open the repository", for infrastructure their deployment does not run. The correct reading for that deployment is 3 / 4.
Expected
With no workspaces, the workspace step is not in the checklist at all: steps is repo, role, model, job, total is 4, done counts only those four, and complete becomes true when those four are done. This is the module's own stated contract - the workspace "must be neither a step nor a blocker (#1281)" (src/views/checklist.ts:14) - and #1281's acceptance ("does not tell the user to start a workspace") plus its non-goal that "the 5-step model stays for image deployments". The merge satisfied the blocker half and left the step half open.
Proposed red test
Half 1 (red at the pin), in test/setupChecklist.test.ts:
assert.deepEqual(
setupChecklist(state({ instancesUsed: false }), en).steps.map((step) => step.key),
['repo', 'role', 'model', 'job'],
)
assert.equal(setupChecklist(state({ instancesUsed: false }), en).total, 4)
On the pin the first returns ['repo', 'role', 'model', 'instance', 'job'] and the second 5. done must never count a step that is not in the array.
Half 2 (render, red at the pin): the dashboard case "a deployment without workspaces does not ask for one" (test/setupChecklist.test.ts:197) currently asserts the row is present and marked done; the fix flips that assertion to doesNotMatch on data-setup-step="instance" and asserts the counter text for repo+role+model done reads 3 of 4 steps done (4 / 4 in zh).
Half 3 (must stay green, and is what keeps the fix honest): an image deployment still renders all five steps with the workspace step unmet and the first job blocked (test/setupChecklist.test.ts:221).
Non-goals
- No change to the
instancesUsedinput, to the first-job blocker copy, or to fix(ui): stop asking a no-workspace deployment for a workspace (#1281) #1302's behaviour: a deployment without workspaces still never blocks the first job. - No change to
POST /repos/:id/instance, to provisioning, or to the instance card, health card and their actions. - No new step, setting, environment variable or copy string; image deployments keep all five steps.
- Do not satisfy the test by dropping the step for image deployments, by rendering the row and hiding its text, or by keeping the row and lowering
TOTALso the counter stops noticing it.
Smallest mergeable slice
Derive the step list and the total from instancesUsed: omit the workspace step when it is false and set total from the array length instead of the constant, then the two test halves above. One module plus its existing test file, well under a day.
Acceptance
- With
FLYBOT_INSTANCE_IMAGEempty,/dashboardcontains nodata-setup-step="instance"and its counter readsn of 4(n / 4). - With an image and no ready workspace, the page still shows five steps, the workspace step unmet and the first job blocked - unchanged.
-
totalequalssteps.lengthin both modes, andcompleteis true only when every displayed step is done. - Half 1 fails on the pin; half 3 passes on the pin and still passes after the fix.
Dedupe
Open and closed issues, the open PRs and the last 25 commits were checked at the pin. instancesUsed appears only in #1281 (closed, merged) and its PR #1302 (merged as this pin's commit); no open issue covers the workspace step's presence or the checklist counter. #227 built the checklist, #230 and #241 built the next-action and row rendering, #728 and #731 changed the model step - none is this residual. #1286 and #1287 are the account-deletion pages; #1303 and #1304 are the lint and gate cards. None overlaps.
Tier and priority
T2: the fix surface is src/views/checklist.ts (app code) and, at most, the row renderer in src/views/pages.ts; no auth, gateway, jobs, scripts or deploy path. Priority normal - the default self-host meets it on its first screen, but nothing is blocked.
Activity