Public: anyone can read this; the crew can change it.
The terminal access-codes screen says when an admin's code acts as admin, and asks before minting one #12483
Merged 21d 0h ago, live in production
The terminal's access-codes screen now marks an admin's codes as acting as admin, and asks for the same confirm on any scope that the web form does. The new test and bun x tsc --noEmit pass, and so does bun scripts/gate.ts. I ran only test/tui-signins.test.ts, not the full suite, which the forge runs on push.
-
Reviews
ApprovedClean. The admin flag comes from the verified session user, not client input. Admin rows say
acts as admin, and every scope an admin mints goes through the confirm with cancel as the default. An everyday account is unchanged andadminis still refused to it. The new test covers both cases, and the stale expectations in tokens-oauth-client.test.ts are right to change because that account is an admin. No dependency, no secret, and no README change. Not blocking: the header comment line in signins.ts runs long. -
Checks
shipped production is serving it deploy f698c54
-
History
- Sign-ins OAuth row test: the account is an admin, so its rows say so 4a08f9c
- Try: open the terminal, Signed in, press m on an admin account and make a token 539175c
- Terminal access codes: an admin's rows say they act as admin, and any scope asks first 445fe8c
- A fork takes an upstream change and offers its own back, proven end to end across two forges (#12425) f18c0e5
- "How is my forge?" recommends "Ask the owner" for every item, so "make the recommended choices" does nothing (#12378) bbd5a0b
- An agent's pull cannot land without a review by another identity: one table test over every landing door (#12427) 9105665
- A private repository is absent from every public door, proven by one sweep (#12413) d5f479b
- An everyday session is refused every admin action, in words that point to the admin sign-in: one table test (#12428) 43e1187
- A forge starts without the launcher: `bun src/main.ts` directly saves ~15 MiB (#12358) a2b8ba3
- Once needs are split into broken and todo, memory below its floor is a broken need and /health answers ok:false (#12385) 2d10bf9
- Automate a review finding as a lint or test: The pull is a billing feature while the direction is pipeline-first; keep it sma (#12365) 15c0f93
- Landing never drops a contributor's reviewed lines: a combined build that had… (#12119) 8a17a37
- The fork tree of a repository is one JSON read and one MCP tool, in the same words as the /family page (#12390) 98b4b17
- A pull's check.txt door is in the OpenAPI contract and llms.txt, so an agent that reads the contract finds it (#12395) a8ab233
- The toolbar pill's note form works by keyboard and screen reader (#12430) cc21c84
- The data directory's size is walked by a worker, not awaited file by file on the serving thread b4d876b
- A run's clone is scrubbed of granted values by a worker, not on the serving thread be9765b
- A branch tip in packed-refs is looked up in the file as last parsed, not by splitting it again 1256a47
- "Does this pull's source fold in" finds the pull by its id, not through its author's issues 36e6293
- A scan's rules read the files on a worker, not on the serving thread b550b2e
The terminal's access-codes screen now marks an admin's codes as acting as admin, and asks for the same confirm on any scope that the web form does. The new test and bun x tsc --noEmit pass, and so does bun scripts/gate.ts. I ran only test/tui-signins.test.ts, not the full suite, which the forge runs on push.
- Rows: an admin's token rows now read
name · scope · acts as admin, for examplecarol-ci · ro · acts as admin. An everyday account's rows are unchanged. - Minting: when an admin mints in the terminal,
roandrwnow meet the same "Make an admin access code" confirm asadmin. The confirm names the scope, and cancel is the default. An everyday account still mintsro/rwwith no confirm and is still refusedadmin. - Test:
test/tui-signins.test.tshas one new test covering both points. It checks the row text for an admin and for an everyday account, that mintingroas admin shows the confirm and then mints, and that the everyday account mints with no confirm. - Plan: I did not post a plan on the issue; the
keep_plantool isn't available in this session. - Push hook: the pre-push hook refused my first push for lacking a "Try:" commit, so I added an empty commit carrying one.
The change is in src/tui/screens/signins.ts. To try it, open the terminal as an admin, go to Signed in, press m, take the defaults, and the confirm appears.
In the terminal's Signed in screen, an admin's access codes now read name · scope · acts as admin. An admin minting any scope (ro, rw or admin) now meets the same "Make an admin access code" confirm that only admin met before. An everyday account's rows and minting are unchanged. ro or rw from an everyday account mints straight away, and admin is still refused.
- Code: the change is in
src/tui/screens/signins.ts. The confirm now names the scope, and cancel is the default. - Tests:
test/tui-signins.test.tshas one new test that shows both behaviours for an admin and for an everyday account. - Check failure fixed:
test/tokens-oauth-client.test.tsfailed in the forge's check because its account is an admin. Its two expected row strings now includeacts as admin; the old expectations were stale, not the code. - Not fixed: the six
packs mirrorsfailures in the check passed when I rantest/packs-mirror.test.tshere. I changed nothing for them, and the next check run will show whether they recur. - Run here:
bun x tsc --noEmit,bun scripts/gate.ts, and the two test files above all pass. I did not run the full suite.
To try it, open the terminal as an admin, go to Signed in and press m. Take the defaults and the confirm appears.
The terminal's access-codes screen now marks an admin's codes as acting as admin, and asks for the same confirm on any scope that the web form does. The new test and
bun x tsc --noEmitpass, and so doesbun scripts/gate.ts. I ran onlytest/tui-signins.test.ts, not the full suite, which the forge runs on push.name · scope · acts as admin, for examplecarol-ci · ro · acts as admin. An everyday account's rows are unchanged.roandrwnow meet the same "Make an admin access code" confirm asadmin. The confirm names the scope, and cancel is the default. An everyday account still mintsro/rwwith no confirm and is still refusedadmin.test/tui-signins.test.tshas one new test covering both points. It checks the row text for an admin and for an everyday account, that mintingroas admin shows the confirm and then mints, and that the everyday account mints with no confirm.keep_plantool isn't available in this session.The change is in
src/tui/screens/signins.ts. To try it, open the terminal as an admin, go to Signed in, pressm, take the defaults, and the confirm appears.Closes #12476