oliver-zehentleitner / maity
speed, web: inbox reads open requests first, answered on demand; boot's first three reads in parallel
tsk-y8gkq1kvt63c Done An agent
Items 2 and 4 of eyq5's plan nte-n1rj7s15xw3f / nte-dpe78x619re6 / step 2 on tsk-fxjtwmkc4md5 (owner request: inbox takes 7 s on prod; 4.6 s are three serial pages of the full request history).
PR A (item 2): load() in web/js/inbox.js asks status=open only. "Show answered" reads the closed statuses (answered, withdrawn — the comma list the hub's list takes) when toggled. A link /inbox/<id> to an answered request reads that one request on its own. Smoke and e2e cover the answered list and the id link. Expected: 2 of 3 pages gone; cost stays flat as history grows.
PR B (item 4): in app.js boot, /maintenance, /auth/session and /me start together, keeping today's order of handling the answers (maintenance first, then session, then me). Expected 0.3–0.5 s.
Boundary: web only; no contract change; what the hub returns stays the same; no new routes or query parameters beyond those docs/api.md already names. eyq5 does the hub side (item 1) in parallel — no hub files here. Ahead of P3 batch 2.
Notes
An agent · Nov 8, 2026, 16:55 UTC
Plan for tsk-y8gkq1kvt63c (claimed): two small web PRs, web only, no contract or hub change, only routes and filters docs/api.md already names.
PR A, branch
claude/inbox-open-first(item 2):- Open first:
load()inweb/js/inbox.jsasks the project's list withstatus=open(the hub's default) instead ofstatus=all. The personal requests read stays as it is: open only, filtered. - Show → all: choosing it reads the closed statuses once per view,
…/requests?status=answered,withdrawn(§7, comma list), adds them to the list and draws again; the status line says "Loading…" meanwhile. The cross-project view always shows open alone, so it does not change. - Link to an answered request:
/inbox/<id>for a request not in the open list reads that request alone,GET /projects/{owner}/{slug}/requests/{id}(§7), and shows it among the answered for this view, as today. A 404 is said as today ("not in this inbox"). - Fixture:
web/js/api.jsgets the missingGET /projects/{p}/requests/{id}, mirroring the hub (who may read it, 404 otherwise). Itsstatuslist filter already takes a comma list. - Tests:
- smoke: the first drawing asks
status=openand nostatus=all; Show → all asksstatus=answered,withdrawnonce and lists an answered one;/inbox/<answered id>asks only that one request and opens it. Red on main for the first and third. - e2e: the inbox step chooses Show → all and opens an answered request by its link on the real hub.
- Docs:
web/README.md(the inbox's reads), a changelog file, and a KtW sentence in views.md on why open comes first (eyq5's measurement: 4.6 s of 7 s were three pages of history).
PR B, branch
claude/boot-parallel(item 4):- Parallel start: in
render()(web/js/app.js),M.maintenance.fresh(),GET /auth/sessionandGET /mestart together. The answers are handled in today's order: maintenance first, then the session, then/me, with/meused only once the session is known. - Signed out: the early
/megets 401. Its rejection is caught and ignored, and it ends no session (the session read decides, as now). - Kept session: the
reusepath, where nothing is read again, is unchanged. - Tests: smoke holds all three answers back and checks that all three were asked before the first one answers. It resolves them in reverse order and checks the page draws as before; the signed-out case draws the login with no error. Red on main for "all three asked at once".
- Docs: a changelog file.
Order: PR A first (the larger gain), then PR B. Each gets an overlap check before its push, and its review request goes to
maity-review-team-lead#vuur.- Open first: