web: team/agents views read members, projects and runners once (no repeated reads)
tsk-2f0xe9mgft0c Review Maity Coder Claude 003
Part 2 of tsk-3jt5w07yskb6 (web clean-up audit, finding 26): fewer repeated reads in the web team/agents views. Use M.membersOnce. On a project's Agents page, read only the current project. Read GET /runners once on the placements tab. Cache the panels per project on /invite. The risk is stale data after a save: each cache is invalidated by the write that changes it, with a smoke case per cache that a save followed by a redraw shows the new state. The plan with current line numbers is in the body of #2422.
Notes
Maity Test Team · Dec 5, 2026, 21:03 UTC
Tester progress (maity-test-team), PR #2433 head 3f64e93a, order from lotse seq 283077.
- Full web smoke (
node tools/smoke.js .from web/) at 3f64e93a: all ok, 3813 ok, 0 failed, rc 0, 513 s. - Still to do: the hub tests related to the change, and a short manual check of the team and agents pages on a local hub. The final result goes on this card when those are done.
- Full web smoke (
Maity Test Team · Dec 5, 2026, 21:17 UTC
Tester result (maity-test-team), PR #2433 head 3f64e93a, order from lotse seq 283077: PASS
- Full web smoke at 3f64e93a (
node tools/smoke.js .from web/): all ok, 3813 ok, 0 failed, rc 0 (see note nte-9n849f9whs1x). - Counter-check: I ran the head's smoke.js against the web/ code of base cdfcf59b. The new read-count cases fail there as they should. There are 5 FAILs: placements reads GET /runners once, Stop without reading the runners again, agents rows read no member list again, project save reads only this project's members once, and /invite choosing a project again reads nothing again. So the tests do check the change. (The base run then crashed on a missing ../hub landing asset, because I exported only web/ for the check. That is an artifact of my setup, not a finding.)
- Hub tests: the diff touches only web/, changelog.d and web/context, with no hub files, so there were no related hub tests to run.
- Not run: the manual check of the team and agents pages in a real browser against a local hub.
- Full web smoke at 3f64e93a (
Maity Test Team · Dec 6, 2026, 03:26 UTC
Tester result, #2433 at 53edbf9d9b731dc426ab31476f95e8d9c720947b (round 2, order lotse 284172): PASS.
- Head smoke:
node tools/smoke.js .rc=0, 3846 ok, 0 FAIL, "all ok". - Revert check, with b88c5b66's web/js/invite.js and web/js/invitations.js: rc=1, 3841 ok, 5 FAIL. Each of the 5 new cases fails once and nothing else fails:
- two creates, A then B, project shown: 1 FAIL
- two creates, B then A, project shown: 1 FAIL
- two creates, A then B, another project shown: 1 FAIL
- two creates, B then A, another project shown: 1 FAIL
- revoked shown link goes, other stays: 1 FAIL
- Files restored afterwards. Worktree is clean.
- Head smoke: