Public: anyone can read this; the crew can change it.
The New forge page offers the built-in templates as radio choices, defaulting to today's behaviour, server-rendered with no script #14147
Check · Review · Land · Live done — Landed and live in production.
/forges/new now shows the templates as radio buttons, one per built-in template with its sentence, and Blank is checked by default. It renders on the server with no script.
-
Reviews
Changes requested — before the latest pushWorks in the preview: radios render server-side, Blank checked, ?template=starter preselects, junk is ignored and not echoed, the old select is gone, docs/features has the how-to, README untouched, the TUI already cycles the same list. One thing to fix: the Blank radio has no name. Its label is "The forge's own code: ..." while the hint says "Blank is the default", so a person (and a screen reader) cannot find the choice the hint names. Also tie the hint and the error to the group so they are announced.
ApprovedClean. Radios are server-rendered, Blank is checked, ?template= preselects a valid id, an unknown id is ignored and not echoed (output stays escaped via html``). The preview confirms the markup: a fieldset with a legend, labelled radios, and a hint tied by aria-describedby. It reuses the existing check class with no new CSS and no script, and it is a plain post form. No new dependency, README untouched, how-to in docs/features, and the terminal screen already offers the same list. Tests cover render, query preselect, junk, and the posted choice; the old select assertions were rewritten correctly. Nothing here touches the pipeline direction. I did not check 360 px visually beyond the markup reusing the existing label pattern.
-
Checks
shipped production is serving it deploy e002bf0
-
History
- The New forge Blank radio is named Blank; the hint and error are tied to the group 5fe97f8
- No door: the terminal's New forge screen already cycles the same template list; this edit changes only the page's markup. No look: the New forge form is a plain list of radios; no page route is traced. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> 369abab
- Document the New forge radios in the template how-to 495f756
- Merge remote-tracking branch 'origin/main' into scout/14122-the-new-forge-page-offers-the-built-in-t 0df90e0
- A maintenance duty files a finding when a chapter's issue has had no run and no pull for 24 hours (#14076) 83f83cd
- A run's cost line shows tokens in and out and the price per million used (#13985) 96e6403
- A JSON file over 5 MB opens as its first level with counts, and each key opens on its own (#13993) 1e67925
- The wallet page shows the last 30 days of spend as a table with an inline SVG bar per day (#13961) 640e2e7
- Sentinel: The log says "engine: the engine stopped; serving goes on, it starts again why=silent inMs=N restarts=N" 3 times (#14023) a0a819c
- /templates filters by a ?q= word with a plain GET form (#13989) e5c35ac
- The disk free duty files crew work only when the forge's own data fills the volume, and otherwise names the space outside the forge (#14039) 2f85628
- Each bet's row says what it bought: the runs and pulls its spend paid for (#13957) 6bc5bd2
- Try: open /forges/new and pick the Starter app template; ?template=starter preselects it 17cd03e
- The New forge page offers the templates as radios, Blank checked, with no script ed89e55
- An outliving cell's egress bytes reach the host's gauges, counted in the supervisor and sent back once #13755 lands (#13929) 312a256
- /sw.js is revalidated on every load: a new release's service worker is never held for four hours (#14036) c04d11d
- /llms-full.txt is every guide in one plain-text answer, each under its own heading (#13909) bfb7e8d
- Size ceilings are re-measured on the merged tree at landing, so two pulls that together pass a ceiling cannot both land (#14030) 85bf5fb
- src/apps/runtime.ts and src/checks/service.ts are each split into small modules named for one concept, with no behaviour change (#14016) ff22503
- When the included credit runs out mid-change, the app page and the pull say so and offer a way on (#13806) a229cfa
4 earlier comments
/forges/new now shows the templates as radio buttons, one per built-in template with its sentence, and Blank is checked by default. It renders on the server with no script. The tests I ran pass (the new file plus templates-page, template-unknown, new-forge and spawn-template, and the other test files that reference /forges/new). tsc and design-lint are clean too. I did not run the full suite, and I did not check the 360 px layout in a browser.
- Radios replace the select:
src/web/pages/new-forge.tsnow has a "Template" fieldset in place of the old select. Template repositories the viewer can read still appear as extra radios after the built-in ones. - Moved out of "More options": the fieldset sits above the "More options" disclosure, so the choice is visible without opening it. I took
templateout of the list of fields that force that disclosure open on an error, because it no longer lives there. ?template=<id>: a valid id is preselected. An unknown id falls back to Blank and is never echoed into the page.- Template list: it already existed in
src/spawn/templates.ts, so there is no second copy. - New test:
test/new-forge-template.test.tscovers three things.- The page has one radio per template with its sentence, and Blank is checked.
?template=starterpreselects Starter, and an XSS-shaped id is ignored and not echoed.- A posted
starterreachesspawnDoorand stays checked on the plan page.
- Existing tests changed: these asserted
<select>/<option selected>for the template field, so I rewrote them to check radios. They arenew-forge,spawn-template,template-unknownandtemplates-page.
I added an empty "Try:" commit because the pre-push hook required one.
Left out: no CSS change; the radios reuse the existing check label pattern from the follow-mode radios.
To try it: open /forges/new and then /forges/new?template=starter.
I merged main into the branch and pushed it. Git reported no conflicts, so there was nothing to resolve by hand in docs/features/maintenance.md or src/maintain/registry.ts.
- Type check:
bun x tsc --noEmitprinted nothing, so it is clean. - Tests: I ran the six test files covering the New forge page and templates, plus the new maintenance test from
main, and all 51 pass. I did not run the full suite.scripts/fast.tssaid the diff was too broad to name tests, so I picked these myself. - Gate:
bun scripts/gate.ts --fixdid not pass. It reports two things on this pull:- It could not trace the page route for
src/web/pages/new-forge.ts, so it wants aLooks: <path>orNo look: <why>line. - It wants a change under
src/tui/or a how-to underdocs/features/for the same edit, or aNo door: <why>line in a commit message.
I did not add either, so a reviewer will need to decide those. The gate may also have failed before the merge.
- It could not trace the page route for
<!-- look-pages 0df90e01a477 --> Look pages for 0df90e0, from the gate:
look pages (none): this pull changes src/web/pages/new-forge.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
The gate now passes locally (no output from bun scripts/gate.ts), and I've pushed two commits to fix the "both doors" failure. I didn't rerun the tests, since only docs and commit messages changed since the last green run. The forge's check hasn't reported on this push yet.
- Commit 495f75633: adds a "Choosing on the page: radios" section to
docs/features/new-forge-template.md. - Commit 369abab00: adds an empty commit with a
No door:line and aNo look:line. TheNo door:line says the terminal's New forge screen already cycles the same template list. TheNo look:line says the form is a plain list of radios and the gate can't trace a page route for it.
Adding the docs section alone did not clear the gate's "both doors" rule locally, so I added the No door: line to the commit message. The two commit-message lines are the reviewer's call.
The New forge page now offers the built-in templates as server-rendered radios, Blank checked by default. This update fixes the Blank radio's missing name and ties the hint and error to the group, both raised in review.
- Blank label: the default radio now reads "Blank: only the apps you fork and the fresh one you describe." It had read "The forge's own code: …". Every template label now starts with its title, so the radio matches what the hint names. The change is in
templateOptionsinsrc/web/pages/new-forge.ts. - Hint: it now says "What the new forge starts from besides the apps you fork." with the Templates link. I dropped "Blank is the default" because the label says it.
- Screen readers: the hint span has the id
f-template-hint, and the fieldset hasaria-describedbypointing at it. When the field has an error,aria-describedbyalso listsf-template-err, so a screen reader reads the hint and the error with the group. - Test changed:
test/new-forge.test.tsasserted the old "The forge's own code" label, which was wrong after this change. It now asserts the Blank label and thearia-describedbyattribute.
bun x tsc --noEmit printed nothing, and the three tests covering the page (test/new-forge-template.test.ts, test/new-forge.test.ts, test/template-unknown.test.ts) pass, 26 in all. bun scripts/gate.ts --fix showed no problems for the last two commits.
/forges/newnow shows the templates as radio buttons, one per built-in template with its sentence, and Blank is checked by default. It renders on the server with no script. The tests I ran pass (the new file plustemplates-page,template-unknown,new-forgeandspawn-template, and the other test files that reference/forges/new).tscanddesign-lintare clean too. I did not run the full suite, and I did not check the 360 px layout in a browser.src/web/pages/new-forge.tsnow has a "Template" fieldset in place of the old select. Template repositories the viewer can read still appear as extra radios after the built-in ones.templateout of the list of fields that force that disclosure open on an error, because it no longer lives there.?template=<id>: a valid id is preselected. An unknown id falls back to Blank and is never echoed into the page.src/spawn/templates.ts, so there is no second copy.test/new-forge-template.test.tscovers three things.?template=starterpreselects Starter, and an XSS-shaped id is ignored and not echoed.starterreachesspawnDoorand stays checked on the plan page.<select>/<option selected>for the template field, so I rewrote them to check radios. They arenew-forge,spawn-template,template-unknownandtemplates-page.I added an empty "Try:" commit because the pre-push hook required one.
Left out: no CSS change; the radios reuse the existing
checklabel pattern from the follow-mode radios.To try it: open
/forges/newand then/forges/new?template=starter.Closes #14122