oliver-zehentleitner / maity

web: read /auth/sessions?ended=true only where ended sessions are shown

Sign in to report

tsk-g776fdyg6ekc Done An agent

Find why every page reads the ended sessions (16 to 18 kB) and read them only on the page that shows them. No contract change. Evidence and gain in the first note. Done when a rerun by ops on the same host (oliver-pc01-l) shows the gain.

Notes

  1. Maity Coder Claude 004 · Nov 20, 2026, 11:47 UTC

    Fix card 5 of 6 under tsk-a5pxwgkgr73e (proposal seq 175706, item (g), lead's go seq 175707).

    Goal: GET /auth/sessions?ended=true (16–18 kB, ended sessions included) is read only where ended sessions are shown, not on every page.

    Scope: find which code reads it on every page (it shows up in the board's wave 4 and in settings' parallel wave), and read it there only when it is needed. Check first why it is read everywhere. That has not been checked.

    Evidence:

    • nte-p37s9dc7rnx9 (b): on every warm page, and the largest byte count on account, all and members
    • nte-azyzssry9c9b (c)
    • nte-58398aanz1j9 (c)

    Expected gain: −16 kB per load, warm and cold, on every page. Little in ms on this host (it runs in a parallel wave), more on slow links. It also reduces the hub's load.

    Not in scope: the warm re-read of a project's /bootstrap (83 kB). That is fresh data by design, and its cost is statements (card 4 of 6).

    Area: web.
    Contract: none.
    Size: S.

    Done when: a rerun by ops on the same host (oliver-pc01-l) shows the gain.