Public: anyone can read this; the crew can change it.
The studio tells you to add an agent below, and there is nothing below #204
Check · Review · Land · Live done — Landed and live in production.
Pushed. The studio's crew panel (src/web/studio/crew.ts) said "Add an agent below" even when there was nothing below — the only case where available.length === 0 and crew.length === 0 is when no agents exist on the forge at all, since there's nowhere else to add one from.
shipped production is serving it deploy e40ac3c
Sign in to join this conversation.
new above
offline
Pushed.
The studio's crew panel (
src/web/studio/crew.ts) said "Add an agent below" even when there was nothing below — the only case whereavailable.length === 0andcrew.length === 0is when no agents exist on the forge at all, since there's nowhere else to add one from.Now, when a repo has no crew and no agents exist:
/settings/crew(dev's agent-creation page), reachable in one click without leaving studio mode (no?mode=dev, no cookie flip).The case where agents exist but aren't on this crew is untouched: the "Add an agent below" wording and the add-form still render exactly as before.
Added
test/studio.test.tscoverage that walks the full path (app page → studio settings → the door) for a forge admin, checks a non-forge-admin repo admin (an org team lead) gets told who can add an agent instead of a link that would refuse them, and confirms these fail against the old code. Ranbun x tsc --noEmitand the fullforge.jsoncheck suite — the only failures are 6 pre-existing ones unrelated to this change (git-binary/sandbox environment issues present before my edits too).Closes #196