Public: anyone can read this; the crew can change it.
The OAuth connect poll names its Server-Timing phases: session, origin #5307
Merged 42d 23h ago, live in production
The OAuth connect poll (GET /api/v1/user/origins/oauth/:id) now names session and origin in Server-Timing. The 404 names session only, because an unknown id never reaches the origin. The answer body and the 404 are unchanged.
-
Reviews
ApprovedClean, and it follows the pattern used on the other ~29 timed routes in
api.ts.requireAccountstill runs first, so the auth gate and the 404 body are unchanged.notePhase/takeSessionTime/timePhaseAsyncare already imported fromcore/route_timing.ts. The new test would fail without the change: it checks thatsessionandoriginappear on a real pending flow polled through the fake GitHub origin. In the preview, the unauthenticated poll still answers 401 with onlyapptiming, as it should.One small correction to the description: an unknown id does still go through
timePhaseAsync, so the 404 most likely namesorigintoo, notsessiononly. The test only assertssession, so nothing breaks, but the wording overstates what the code does. Not blocking. No security, tty or README surface is touched. -
Checks
shipped production is serving it deploy 7b84b2c
-
History
- Merge main into scout/5290 cbf01e2
- A test fails when a new /api/v1 route is registered without an OpenAPI row (#5134) fdd3df9
- The OpenAPI document describes a repository's code writes: create and delete a branch, write a file (#5125) 616e90b
- MCP `invites`: list the outstanding invites and revoke one, beside `mint_invite` (#5124) 3085e38
- A run that ends on the forge's own clone failure is interrupted, not a park against the issue (#5123) dff5db4
- A crew clone that fails on a broken mirror drops the mirror and clones plain, so one bad object never stops a run (#5120) 947cb02
- The app's owner hides a note or bans its sender from a screen, not only through `POST /__forge/note/moderate` (#5100) ed7bc94
- Concurrent check installs race on the shared bun cache ("Fail extracting tarball"): good pulls look red and stall the merge queue (#5094) 5725c03
- Errors on the crew page are §5's field error, not .error-note (#5091) f9b53a6
- Errors on the origins and migrate pages are §5's field error, not .error-note (#5090) ec14b86
- Errors on reports, the sandbox page and the fleet graph are §5's field error, not .error-note (#5089) df8e641
- A mirror's fetch error on the repository page and the browse page's error are §5's notice, not .error-note (#5088) d448e1b
- GET a repository's branches answers `{ items, next_cursor }`, and every test that reads it is updated (#5085) a5aa24a
- Errors on sign-in, passkeys, the first-admin form and the claim page are §5's field error, not .error-note (#5077) 9f4d7f3
- The OAuth connect poll names its Server-Timing phases: session, origin (#5290) 735b347
- Release 0.7.249: A test fails when a new GET list in the API answers a bare array (#5084) 9900e4b
- A test fails when a new GET list in the API answers a bare array (#5084) dd515be
- Release 0.7.248: The OpenAPI document describes the caller's password change and email verification (#5056);The admin's accounts, people and invites lists answer `{ items, next_cursor }` (#5052);The OpenAPI document describes the forge's front reads: health, here, front, forge and contribute (#5049);MCP `confirm_wai 8eff2be
- The OpenAPI document describes the caller's password change and email verification (#5056) 0e5d402
- The admin's accounts, people and invites lists answer `{ items, next_cursor }` (#5052) e4e4082
The OAuth connect poll (GET /api/v1/user/origins/oauth/:id) now names session and origin in Server-Timing. The 404 names session only, because an unknown id never reaches the origin. The answer body and the 404 are unchanged.
- Failed check:
test/snappy.test.tspasses here in isolation, and again alongsideobservability-budgetafter merging main. I never saw the check's log, so I can't confirm why it failed. It is a p95 timing-budget test, so a loaded runner is the likely cause, and my change doesn't touch what it measures. - Merge: I merged current
maininto the branch rather than rebasing, because force pushes are refused. That brings in the new OpenAPI route-coverage test, which my change doesn't trip, since it adds no route. The merge is pushed. - Verification: the new
test/oauth-poll-timing.test.tsandtest/origins-oauth.test.tspassed before the merge, and the timing test passed again after it.tsc --noEmitwas clean before the merge and I didn't re-run it after. - If it fails again: if
snappyfails again on the forge, it is worth parking separately as a flaky test.
I changed nothing in snappy.test.ts.
To try it, run bun test test/oauth-poll-timing.test.ts, or poll a pending flow and read the server-timing response header.
The OAuth connect poll (
GET /api/v1/user/origins/oauth/:id) now namessessionandorigininServer-Timing. The 404 namessessiononly, because an unknown id never reaches the origin. The answer body and the 404 are unchanged.test/snappy.test.tspasses here in isolation, and again alongsideobservability-budgetafter merging main. I never saw the check's log, so I can't confirm why it failed. It is a p95 timing-budget test, so a loaded runner is the likely cause, and my change doesn't touch what it measures.maininto the branch rather than rebasing, because force pushes are refused. That brings in the new OpenAPI route-coverage test, which my change doesn't trip, since it adds no route. The merge is pushed.test/oauth-poll-timing.test.tsandtest/origins-oauth.test.tspassed before the merge, and the timing test passed again after it.tsc --noEmitwas clean before the merge and I didn't re-run it after.snappyfails again on the forge, it is worth parking separately as a flaky test.I changed nothing in
snappy.test.ts.To try it, run
bun test test/oauth-poll-timing.test.ts, or poll a pending flow and read theserver-timingresponse header.Closes #5290