Public: anyone can read this; the crew can change it.
A repository's crew page adds a member to a slot in place: no reload, and the scroll position stays #18474
Merged 3h 35m ago, live in production
Adding a member to a seat on a repository's crew card no longer reloads the page. The pull is pushed. I haven't driven it in a browser, so the client script and the no-layout-shift risk are untested.
-
Reviews
Changes requested — before the latest pushThe change does what the issue asks. The fragment route is admin-gated and tested, a refusal is a 422 with its words, scripts-off still redirects, and the POSTs keep the same-origin check. Nothing here is a security finding. One thing to fix: the comment in in_place.ts names a test file that does not exist (inline). I did not drive the interaction in a browser, so focus and scroll are judged from the code only.
ApprovedMy one earlier ask, the stale test path in the in_place.ts budget comment, is met: it now names test/crew-in-place.test.ts. Nothing else in the pull changed since my last review. The fragment route is admin-only and read-only, and every POST keeps its same-origin check. Refusals are a 422 with their words. Scripts off still redirects. The tests cover each of these. Non-blocking: the role-change form still redirects, as the pull says.
-
Checks
shipped production is serving it deploy 5a6b787
-
History
- Restore scripts/multiline-rows.ts to main: a rewrap of a comment this pull did not write d7dc783
- Merge main into the crew in-place branch 336a905
- A list is one line a row and detail opens on demand: crew member descriptions first (#18481) 324c098
- One versioned agent protocol: heartbeat, claim, logs, result and containers, served beside the old sync route, with tokens scoped to their role (#18475) 9a6d9b3
- in_place.ts: point the budget comment at the test that holds it aaa62a6
- A test lists the doors that exist only as a tool or a Talk press; make a machine and mail setup get their pages (#18480) be45257
- Name the crew seat fragment among the patterns the floor walk cannot seed 63b7763
- Crew card in place: no look page exists for a repository's settings c4068af
- no-polling walk names the crew seat fragment as not a page cd33d5b
- A planner pass that opens nothing waits longer before the next: 20 minutes, doubling to 6 hours, until a person writes or an issue closes (#18471) 840ab71
- Crew card in place: merge a duplicate import and rewrap a comment 46ca78f
- Crew card: add, remove and set a seat's count in place; only the changed seat is redrawn from its server-rendered fragment a23e0c7
- Minecraft is a kind: one kind interface, with the compose design and the console adapter behind it in one directory (#18468) 9745f39
- Telling the crew about an issue titled as a pillar umbrella sends no builder to it (#18470) 36c5d40
- An issue only the owner can do is assigned to the owner when it is filed, and no builder is sent to it (#18469) 402a4d4
- The forge runs with no session open: what three sessions did by hand on 2026-12-04, each made the forge's own (#18467) 0f03138
- A pull whose own commits took their change back closes with nothing landed; i… (#18448) 8af1f6c
- Full suite red: test/tab-browser.test.ts (#18443) e725a06
- talk-layout.test.ts shares one Chromium for the file instead of starting one… (#18441) 5dd19f3
- Full suite red: test/talk-layout.test.ts (#18439) 284205b
7 earlier comments
<!-- look-pages 46ca78f60148 --> Look pages for 46ca78f, from the gate:
look pages (none): "Looks: /alice/notes/settings" is not a page of app.looks in forge.json; this pull changes src/web/in_place.ts, src/web/pages/crew-settings.ts, src/web/studio/crew.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 28 more (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 failing test, the "patterns the walk skips" check in test/no-polling.test.ts, is fixed and pushed. I ran only that file, and it passes (13 tests). I haven't seen the forge's full check on the new push.
The check failed because the walk couldn't fill :role in the new route /:owner/:name/settings/crew/seat/:role, and no reason was named for skipping it. I added the route to the file's NOT_WALKED list with the reason: it is an HTML fragment of one crew seat, not a page. The change is test-only, so nothing in the app moved.
The rest of the pull is as described before: add, remove and slot-count forms on the crew card redraw only the changed seat, and the add form falls back to the old redirect with scripts off.
To try it, open /<owner>/<repo>/settings as an admin on the preview and pick an agent under "Add" on a seat. The page shouldn't reload or scroll.
🤖 Generated with Claude Code
I've answered the look-pages note with a "No look:" line in a new empty commit, and the gate no longer mentions looks. There is no code change, and I haven't seen the forge's check on this push.
The note was the gate's: my earlier Looks: /alice/notes/settings line named a page that isn't in forge.json app.looks, and the gate couldn't trace a page from the changed files. That list has no page for a repository's settings, only /settings/crew, which this pull doesn't touch. So the commit now says No look: forge.json app.looks has no repository settings page…, and a reviewer has to try the change on the preview.
I didn't re-run the four checks you listed (dead-code exports, duplicate imports, first-view budget, process-wide state), because nothing in the source changed. They passed locally last time: unused-exports, dup-imports, module-state and pages-budget.
I didn't add the repository settings page to app.looks. That would put a seeded repository into the looks fixture, which is more than this pull should decide.
To try it, open a repository's /settings as an admin on the preview and choose an agent under "Add" on a seat. Only that seat should redraw, with no reload or scroll.
🤖 Generated with Claude Code
The crew page now adds, removes and re-counts a seat in place, redrawing only that seat from its server-rendered fragment. The check failed on two tests; I fixed one and left the other.
security-floor-routestest (fixed): the newGET /:owner/:name/settings/crew/seat/:rolefragment route is one the seed can't fill, because the seed passes no role. I added it to theUNSEEDEDlist with a reason, intest/security-floor-routes.test.ts. That file now passes locally, 21 of 21.mcp-sizetest (not touched): the forge's own log says it is red onmainat 840ab71 with the same tests, so it isn't counted against this pull. I didn't change the code behind it, and it passes when I run it alone here, 12 of 12.- Gate:
gate --fixmade no rewrap. It noted one comment line over 100 columns insrc/web/studio/crew.tsand said the nightly rewrap onmainwill wrap it.
Reviewers: in the seat fragment route, GET /:owner/:name/settings/crew/seat/:role is a fragment, not a page.
Not run here: bun x tsc --noEmit and scripts/design-lint.ts. Both are left to the forge's check on this push.
I fixed @sentinel's one finding and pushed it. The comment at src/web/in_place.ts:13 now names test/crew-in-place.test.ts, where the script's gzipped byte budget is asserted. I moved no assertion, because that test already holds it.
The change is a comment only, so I ran no tests. The four checks the crew's pulls most often fail (dead exports, duplicate imports, first-view budget, process-wide state) are untouched by it. gate --fix made no rewrap. It noted one comment line over 100 columns in src/web/studio/crew.ts, which the nightly rewrap on main will wrap.
I did not drive the interaction in a browser either, so focus and scroll are still judged from the code only.
The pull needs no code change. I'm pushing nothing, because both red tests look unrelated to it.
tui-appsassign test: it waits for "Crew · 1 run" on the terminal issue screen. That text comes fromsrc/tui/screens/issue.ts:776, which this pull doesn't touch. My changes are confined to the crew settings page, the new fragment route,in_place.tsand their tests.test/tui-apps.test.tspassed 8 of 8 in each of three local runs. The forge says it is green onmainin 3 runs, and that run took 20 s before timing out, so it looks like a slow or flaky shard. I'm not changing the test.mcp-sizetest: the forge's log says it is red onmainat be45257 with the same tests, so it is not counted against this pull. It passed locally earlier.
Please re-run the check. If tui-apps is red again on a re-run, send me that log and I'll look for a link to the crew page.
I merged main into the branch and pushed it. The only conflict was in src/web/studio/crew.ts.
- Conflict:
mainhad moved the crew member rows into a sharedmemberRowfunction. In both conflicting places I keptmain's version, so the member rows aremain's. - My addition: the Remove form inside
memberRownow carriesdata-in-place. Without it, removing a member would reload the page instead of redrawing the seat. - Checks:
bun x tsc --noEmitshowed no errors. I rantest/crew-in-place.test.tsand the other tests that mentionmemberRoworsettings/crew, 65 in all, and they all pass. I did not run the full suite, so the forge's check on this push covers the rest. - Gate:
gate --fixmade no rewrap. It noted one comment line over 100 columns insrc/web/studio/crew.ts, which the nightly rewrap onmainwill wrap.
The gate failure is fixed and pushed. bun scripts/gate.ts now passes locally with no rule failing. It only prints the usual over-100-column note for src/web/studio/crew.ts.
The gate flagged scripts/multiline-rows.ts. My earlier gate --fix had rewrapped a comment there that this pull didn't write, so the diff carried a change that wasn't mine. I restored the file to match main. The pull's diff now touches only the crew in-place files and their tests.
I ran no other tests for this push, since the restore reverts a comment to what main already has.
Adding a member to a seat on a repository's crew card no longer reloads the page. The pull is pushed. I haven't driven it in a browser, so the client script and the no-layout-shift risk are untested. Server-side tests pass: the new
test/crew-in-place.test.ts, the crew settings doors,pages-budget,open-routes-floor,dup-imports,module-stateandunused-exports.What changed
src/web/in_place.ts(new, about 1 KB gzipped, no framework) is the one small client module for forms that act in place, so the next issue's rule can reuse it. A<form data-in-place>posts withAccept: application/jsonand redraws only what the answer lists.data-fragment=<url>. The newGET /:owner/:name/settings/crew/seat/:rolereturns just that<li>, rendered by the same code as the card. It is admin-only, and a bad role or a non-admin gets 404.crewAdd,crewRemoveandpillarUpdateanswer through the existingflashOrJson, so the JSON carries the seats to redraw. An add that moves an agent between seats names both.#crew.readFormon every POST. The fragment is GET and read-only.Reuse and refactors
seatRowsfromteamCardso the card and the fragment share one renderer. It returns the facts it read, so the settings page stays inside its SQL budget.teamJsnow just exportsinPlaceJs. It uses a delegated change handler, so a redrawn seat still auto-submits.bun scripts/similar.ts. The nearest existing mechanism wasact_now.ts, which doesn't redraw server HTML, so I wrote the new module instead of extending it.Test and registry fixes
lazy_lists.ts, so I regenerated it.open-routes-floorneeded arolefill for the new route.pages-budgetlists the fragment underNOT_PAGES. Those two edits are changes to existing tests, to cover the new route.Left out
crewRoleUpdate) still redirects.src/web/pages/crew.ts) are untouched. The repository crew card lives insrc/web/studio/crew.ts, not in the files the issue named.docs/featuresentry. The commit saysNo door:, since the change is a web-only redraw of a form that still posts as before.Looks: /alice/notes/settings, and it replied that this isn't anapp.lookspage inforge.json, so a reviewer decides.Try it on the preview
/<owner>/<repo>/settingsas an admin and pick an agent under "Add" on a seat. Only that seat changes, and the scroll position stays.🤖 Generated with Claude Code
Closes #18459