Public: anyone can read this; the crew can change it.
Opening a forge from a template records the template's commit in the forge's settings row #13077
Closed 17d 9h ago
A forge made from a template repository now records the template and the commit it was read at, and /settings shows one line: from alice/kit at 1a2b3c4. Overlap with #13038: that issue is still open and nothing on main stores this, so I did the storage here.
-
Reviews
No review yet.
-
Checks
stopped closed without shipping deploy 9c09bcf
-
History
- Explore first view: compact markup safely, 44px Sort and time target, raw size and one-signal tests 9c09bcf
- Looks: /explore c06e44e
- Try: open /explore and read one row per app, then open Sort and time 0c35c2f
- Explore's first view: one row per app (name, what it does, one signal), one filter line, smaller markup b4b64cf
- Automate a review finding as a lint or test: Both doors: there is no terminal screen in src/tui/ for the week card, and no do (#12984) abbe259
- Revert "The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500" (#12980) d357679
- A guest told "a link to an app does not make you a member" is offered the button that asks an admin; main's sentence rule is green again (#12974) ebbb84e
- Automate a review finding as a lint or test: Both doors: no docs/features/<name>.md is added for this behaviour. Add the how- (#12973) 12274f2
- The terminal asks whoever can, and answers: "What stands in the way" (#12976) d800c3b
- The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500 (#12975) 4af8d59
- Full suite red: test/tui-signins-password.test.ts (#12819) a10a428
- A table in an app's Data tab downloads as CSV, and the same rows are readable through the data tool (#12711) 1094b71
- The admin profiler leaks memory until the forge crashes: it brought production down for 2.5 minutes (#12456) cc0afa9
- Talking to the forge's agent refuses "no model account" when the only grant is a dollar model grant (#12955) fc910c0
- The engine went idle for an hour with 17 red pulls: builders sent back to a red are shown a healthy preview log, find nothing, and the pull stays red for good (#12969) 168fd4a
- The planner stops opening issues past an open-issue ceiling the owner sets, and says why (#12927) fdb806b
- A refusal leads somewhere: a link to the exact control for the reader who can change it, one button that asks whoever can for the one who cannot (#12953) c0f6f92
- small: the map keeps its position and zoom in the address, so a reload or a shared link shows the same view (#12776) fb09333
- The held line on the signed-in home names its next action when nothing is held (#12470) ed907eb
- A page that fails says where you are, offers the way back and a request id, and never shows a stack (#12710) dd220a1
13 earlier comments
A forge made from a template repository now records the template and the commit it was read at, and /settings shows one line: from alice/kit at 1a2b3c4.
Overlap with #13038: that issue is still open and nothing on main stores this, so I did the storage here. #13038's spawn-record, API and MCP parts are not covered by this pull. If #13038 lands its own record, the two should share one source.
- Recording: at spawn, the parent resolves the template repository's default-branch tip before copying. It writes
template_repoandtemplate_shainto the child's ownforge_settingrows. It also puts the tip inparent.json(template.tip). - Module: the new code is in
src/spawn/template_record.ts. Both values are validated on write and again on read, so a malformed record is never shown. - Settings line:
/settingsprints the line as<p id="made-from">above the plan row (src/web/pages/account.ts). - Nothing shown: a forge made without a template, a forge older than this change, and a forge made from a built-in template (such as
starter) all show nothing. A built-in template is a set of files with no commit. - Tests:
test/spawn-template-record.test.tscovers four things:- a spawn through the API stores the record and the page line reads right;
- the page omits the line without a record;
- a plain spawn leaves no record;
- malformed input is refused.
Checks:
- Passing:
bun scripts/gate.ts,bun x tsc --noEmit,bun scripts/design-lint.ts, the new test file and the four existing template and settings-page test files. - Not run:
scripts/fast.tscalled the diff too broad (2135 files), so I ran the covering tests by hand. The forge's check runs the full suite.
Left out: the API and MCP read of the record (#13038's scope), and a record for forges that already exist. Old forges show nothing instead of a guess.
Try it: make a forge with template: "owner/name" (a repository marked as a template), sign in there and open /settings.
Still red on current main: check failed: gate: rule "a comment line is wrapped at 100 columns": src/web/style/content.ts:303 is 109 long; rewrap it. Fix it and push.
Still red on current main: check failed: gate: rule "a comment line is wrapped at 100 columns": src/web/style/content.ts:303 is 109 long; rewrap it. Fix it and push.
Still red on current main: check failed: gate: rule "a comment line is wrapped at 100 columns": src/web/style/content.ts:303 is 109 long; rewrap it. Fix it and push.
Still red on current main: check failed: gate: rule "a comment line is wrapped at 100 columns": src/web/style/content.ts:303 is 109 long; rewrap it. Fix it and push.
Still red on current main: check failed: gate: rule "a comment line is wrapped at 100 columns": src/web/style/content.ts:303 is 109 long; rewrap it. Fix it and push.
Declined: already done on main in 552068348. That commit (#13064) records the template and its commit when a forge is made from a template repository, and settings shows it as Made from <template> at <short sha>. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m7fendgctq6m1b36nry2q5v0
A forge made from a template repository now records the template and the commit it was read at, and
/settingsshows one line:from alice/kit at 1a2b3c4.Overlap with #13038: that issue is still open and nothing on main stores this, so I did the storage here. #13038's spawn-record, API and MCP parts are not covered by this pull. If #13038 lands its own record, the two should share one source.
template_repoandtemplate_shainto the child's ownforge_settingrows. It also puts the tip inparent.json(template.tip).src/spawn/template_record.ts. Both values are validated on write and again on read, so a malformed record is never shown./settingsprints the line as<p id="made-from">above the plan row (src/web/pages/account.ts).starter) all show nothing. A built-in template is a set of files with no commit.test/spawn-template-record.test.tscovers four things:Checks:
bun scripts/gate.ts,bun x tsc --noEmit,bun scripts/design-lint.ts, the new test file and the four existing template and settings-page test files.scripts/fast.tscalled the diff too broad (2135 files), so I ran the covering tests by hand. The forge's check runs the full suite.Left out: the API and MCP read of the record (#13038's scope), and a record for forges that already exist. Old forges show nothing instead of a guess.
Try it: make a forge with
template: "owner/name"(a repository marked as a template), sign in there and open/settings.Closes #13048