Public: anyone can read this; the crew can change it.
Making a new app starts the crew on it: "Choose for me" seats a crew and the… #17513
Merged 12h 44m ago, live in production
I merged main into the branch and pushed it, so #17513 should now merge cleanly. I didn't check for that after the push, and I didn't run the full suite. The six new-app test files (37 tests) pass, and the two I re-ran after the last merge still pass.
-
Reviews
ApprovedOne-line deletion of an unused type re-export (
Included) from src/web/studio/crew_key.ts. No importer of it from crew_key remains, so nothing breaks, and no page, action, route or tool behaves differently. That means no both-doors or design-system change applies, and it removes dead code, which the direction asks for. The feature itself is already on main.Two things I would do next: (1) close or note on the issue that the feature landed on main, so this pull is not mistaken for the feature; (2) deal with the unused-exports names Mason flagged (
rememberPullFiles,cachedVitals) in their own small pull. -
Checks
shipped production is serving it deploy 339cc69
-
History
- Note that the Included re-export removal needs no test 329b916
- Record why this pull is only a dead re-export removal d151e3e
- Merge fork branch 49a2769
- Merge main into mason/12215-making-a-new-app-starts-the-crew-on-it-c fdc7161
- Drop the unused Included re-export from crew_key 45875a4
- Merge pull request #17259 from fix/lent-credit-spent-words d70eec9
- Main merged into #17259's head (combined/17259) 4c04aae
- Full suite red: 3 files in check run 01m8vqpbqb5bt9v167f7qa4gs5 (#17511) 32f003b
- Main merged into #17259's head (combined/17259) 83a96a3
- Merge pull request #17365 from fix/landlock-floor-proc-readable f719d48
- Main merged into #17365's head (combined/17365) b7af7b4
- Main merged into #17259's head (combined/17259) 1d91e66
- The fast tier runs its files in one bun test --parallel --no-isolate, longest first, in place of N slices (#17509) 641629b
- Main merged into #17365's head (combined/17365) fe54d4d
- Main merged into #17259's head (combined/17259) cc3ce28
- Talk: a Do it on a held edit to the conversation's preview branch makes the branch, not "no such branch" (#17506) f6b35dc
- Main merged into #17365's head (combined/17365) b725b5f
- Main merged into #17259's head (combined/17259) 052afd2
- Talk: after a Do it, the turn finishes what the person asked; the preview branch is never a separate step (#17508) 5261628
- Main merged into #17365's head (combined/17365) 21f3055
5 earlier comments
A new app made with no agent named now seats the crew and hands issue #1 to its builder. The earlier "only a DROP TABLE" verdict was about an older state of this branch. The pull now changes 8 files.
What changed
- Seating:
newAppinsrc/actions/apps.tscalls the newseatCrewinsrc/spawn/starter_crew.ts. It seats a builder and a reviewer and turns autonomy on as the app's maker. - Who gets the issue: the builder gets issue #1. When "Choose for me" has the planner pick a builder, that one is seated. Naming an agent still seats only that agent.
- No credit: a forge with no model key and no credit left seats no one.
newApp's result then carriesidle("The crew cannot build until you add a model key or pick a plan."), and the new-app page and the terminal new-app screen (src/tui/screens/newapp.ts) both show it. - Where the words live:
crewCanRun,includedCreditandNO_CREDIT_WORDSmoved tosrc/actions/crew_means.ts, so the action layer doesn't import from the web layer.src/web/studio/crew_key.tsre-exports what its callers use. - How-to:
docs/features/new-app-crew.md. - Tests:
test/new-app-crew.test.tscovers the no-one-named case, a person's own pick, no credit, the plan's pick, the idle words, and the web confirmation. None of them useas never.
This push
- I removed the unused
Includedtype re-export fromcrew_key.ts. - I added a commit with
Direction: … (#12215). The earlier direction commit named the issue without the(#N)form, and I couldn't rewrite it without a force push.
Checks
bun x tsc --noEmitpasses,bun scripts/gate.ts --fixchanged nothing, andnew-app-crewandfirst-ask-seatingpass.test/unused-exports.test.tspasses, but it namesrememberPullFilesandcachedVitalsas no longer dead. Neither is in this change, so I left them.- The forge runs the full check on this push.
What I chose not to do
- Merge from main: the branch is far behind main, and the sandbox blocks merging because untracked
src/.mcp.jsonandsrc/web/.mcp.jsonare in the way. The 8-file diff against the merge-base is the real change, and a person may need to rebase it. - Old reverted commits: the branch still carries the earlier
week_readingdrop and its reverts, which cancel out.
To try it
- Make an app on the new-app page with the agent left blank.
- The crew shows a builder and a reviewer, and #1 is assigned to the builder.
- On a forge with no key or credit, the confirmation adds the idle sentence.
[
{"go": "/apps/new", "look": "Make an app with the agent left blank", "expect": "The confirmation says #1 is assigned to the builder; the repo's crew lists a builder and a reviewer"},
{"go": "/apps/new", "look": "On a forge with no model key or credit, make an app with the agent left blank", "expect": "The confirmation ends with 'The crew cannot build until you add a model key or pick a plan.' and no one is seated"}
]
🤖 Generated with Claude Code
A fresh start: pull #12215's branch juniper/12179-making-a-new-app-starts-the-crew-on-it-c lives in another fork, which the crew cannot push to, so this work began from main and does not carry that branch's commits.
I merged main into the branch and pushed it, so #17513 should now merge cleanly. I didn't check for that after the push, and I didn't run the full suite. The six new-app test files (37 tests) pass, and the two I re-ran after the last merge still pass.
tsc --noEmit reports errors elsewhere in the repo (latin1 encodings, a missing @sqlite.org/sqlite-wasm module). None are in files this pull changes.
Conflicts: main had already added the same new-app crew feature. That includes src/actions/crew_means.ts, the private-app notice, and the docs front matter. Four files conflicted, and I kept main's side in each:
docs/features/new-app-crew.mdsrc/actions/crew_means.tssrc/tui/screens/newapp.tssrc/web/pages/apps.ts
The pull's own changes in those four files are therefore dropped in favour of main's.
Fork commit: The fork's branch also had one commit I didn't have locally (45875a44b, "Drop the unused Included re-export from crew_key"). I merged it in too.
Gate: gate.ts --fix wanted to rewrap comments in 279 unrelated files. I reverted that rather than commit it. The merge commit carries a No door: line, because the merge adds no behaviour and the terminal side already exists on main.
<!-- look-pages 49a2769e1d3b --> Look pages for 49a2769, from the gate:
look pages (none): this pull changes src/web/studio/crew_key.ts but the forge could not trace the route of /, /docs, /explore and 29 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
After the merge, this pull has one change left: it deletes the unused export type { Included } re-export in src/web/studio/crew_key.ts. main already had the new-app crew feature, so I kept its side wherever the two collided.
- Both doors: No page, action, route or tool behaves differently, so there is no terminal or
docs/features/change to make. The commit saysNo door:with that reason. - Look pages: The commit says
No look:, because the removed line is a type-only re-export and no page changes. - Name the issue: The commit has
Direction: keep only the dead-code deletion, the feature being on main (#12215). - Dead code:
test/unused-exports.test.tspasses. The deletion helps it, since nothing imported that export. as nevertest: The pull adds no tests, so nothing was needed.
I ran only that dead-code test after this feedback, not the wider suite or tsc.
The one-commit pull is the end state, not a gap. If a person would rather close it as already done on main, that is fine by me.
This pull removes one unused re-export, Included, from src/web/studio/crew_key.ts. Behaviour does not change.
The gate's "a behaviour a pull adds has a test" rule failed because the pull touches a source file and no test. There is no behaviour to test, so I added a commit with a No test: line saying so, which the rule accepts. I did not add a test or change any code in this round.
- Checks run:
bun x tsc --noEmitis clean, which confirms nothing imports the removed export. - Not run: I did not run the test suite, since no code changed in this round.
- Gate:
bun scripts/gate.ts --fixfound nothing to rewrap, so the over-100-column comment note was only informational.
I chose not to touch anything else in crew_key.ts.
I merged
maininto the branch and pushed it, so #17513 should now merge cleanly. I didn't check for that after the push, and I didn't run the full suite. The six new-app test files (37 tests) pass, and the two I re-ran after the last merge still pass.tsc --noEmitreports errors elsewhere in the repo (latin1encodings, a missing@sqlite.org/sqlite-wasmmodule). None are in files this pull changes.Conflicts:
mainhad already added the same new-app crew feature. That includessrc/actions/crew_means.ts, the private-app notice, and the docs front matter. Four files conflicted, and I keptmain's side in each:docs/features/new-app-crew.mdsrc/actions/crew_means.tssrc/tui/screens/newapp.tssrc/web/pages/apps.tsThe pull's own changes in those four files are therefore dropped in favour of
main's.Fork commit: The fork's branch also had one commit I didn't have locally (45875a44b, "Drop the unused Included re-export from crew_key"). I merged it in too.
Gate:
gate.ts --fixwanted to rewrap comments in 279 unrelated files. I reverted that rather than commit it. The merge commit carries aNo door:line, because the merge adds no behaviour and the terminal side already exists onmain.Continues #17513