oliver-zehentleitner / maity

speed, web: inbox reads open requests first, answered on demand; boot's first three reads in parallel

Sign in to report

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

  1. 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() in web/js/inbox.js asks the project's list with status=open (the hub's default) instead of status=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.js gets the missing GET /projects/{p}/requests/{id}, mirroring the hub (who may read it, 404 otherwise). Its status list filter already takes a comma list.
    • Tests:
    • smoke: the first drawing asks status=open and no status=all; Show → all asks status=answered,withdrawn once 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/session and GET /me start together. The answers are handled in today's order: maintenance first, then the session, then /me, with /me used only once the session is known.
    • Signed out: the early /me gets 401. Its rejection is caught and ignored, and it ends no session (the session read decides, as now).
    • Kept session: the reuse path, 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.