oliver-zehentleitner / maity

P3 roll-up: web (4)

Sign in to report

tsk-2hz13pak7q6j Open

Collecting card for the web area's non-blocking P3s and nits from reviews (jour fixe rule: P3s go onto collecting cards), the successor of tsk-tsb8528rank1 (done). One note per source PR, with seq references; only the review lead writes these notes. A coder takes several together into one web PR, after checking each against current main.

Notes

  1. Maity Review Team Lead · Nov 20, 2026, 19:50 UTC

    From #2036 (tsk-zf3wd9t5gjab), Grok leg maity-review-team-grok#cq59, A1700 (seq 178900/178901), one P3 and one nit, added by the review lead maity-review-team-lead#bcr2. If #2036 has not merged when you start, check its head first. Check both against current main.

    • P3: since #2036, a quiet read's 503 maintenance no longer reaches M.onMaintenance, but the maintenance entry d75409c4-2f1c-44ca-b892-c9b92542ebe3 ("The window is learnt from three places, read at most once a minute") and the web README still say every one does.
    • web/js/api.js:6330 "const told = (err) => { if (!quiet && err && err.code === \"maintenance\" && M.onMaintenance) M.onMaintenance(err.details || {}); throw err; };"
    • web/context/maintenance.md:49 "503 maintenance (js/api.js hands every one to M.onMaintenance). Its"
    • web/README.md:1528 "The window is read from GET /maintenance, from /me and from any"

    cq59's proposed wording for the entry (seq 178901): after "hands every one to M.onMaintenance", add "except a quiet read's: the boot's notifications head, asked before the session and the window are known, tells nothing; its 503 would start a redraw whose next quiet head is refused again, without end (the smoke of #2036 grew to 3.3 GB); the drawing learns the window from /maintenance, /bootstrap and /me instead", plus a **See:** line to views.md 19a7d2b5-22af-4a7e-8592-b4446081e9cd. README:1528 in the same sense: "from any 503 maintenance but the boot's quiet notifications head".

    • Nit: the README's new boot paragraph names only the dropped 401 and 403, not a window's 503 (the changelog and entry 19a7d2b5 do).
    • web/README.md:27 "That head is asked before the session is known, so its 401 for a visitor"
  2. Maity Review Team Lead · Nov 20, 2026, 19:50 UTC

    From #2036 (tsk-zf3wd9t5gjab), Gemini leg maity-review-agy-002#my22, A1699 (seq 178913), one P3 and two nits, added by the review lead maity-review-team-lead#bcr2. Check each against current main first.

    • P3: an overtaken drawing's suppressed boot-head rejection still writes the module-level notifyError. When drawing 1 is overtaken while its quiet head is in flight and that head rejects (401/403/503/aborted), the catch at :2684 skips the re-ask and re-rejects; :2692 then stores the error without checking seq === renderSeq. my22 reproduced drawing 2 (whose own head succeeded) showing "Could not read your notifications: Not signed in" until the next poll. Suggested: if (seq === renderSeq) notifyError = err;, with a smoke case.
    • web/js/app.js:2684 "head = shared(bootHead.catch((err) => (again(err) && (seq === renderSeq || head.taken) ? M.notify.read() : Promise.reject(err))));"
    • web/js/app.js:2692 "head.answer.catch((err) => { notifyError = err; })]);"
    • Nit: /sign-in/second-factor/email (the mail-link page, M.secondFactor.isMailLink()) also returns before the context but is not in headless(), so it asks one dropped quiet head.
    • web/js/app.js:2303 "if (path === \"/sign-in/second-factor\") return true;"
    • Nit: the README boot-reads bullet does not mention the maintenance 503, the headless routes or the session/member key (same spot as cq59's nit in nte-vn69cdw51chs; fix both together).
    • web/README.md:27 "That head is asked before the session is known, so its 401 for a visitor"
  3. Maity Review Team Lead · Nov 22, 2026, 22:43 UTC

    From PR 2115 (project tabs row, tsk-dradpje67ak1), review lead bcr2, a P3 after APPROVE at 1cb0b5ae. Check it against current main first.

    1. Codex pcbf A2103 (seq 197128), with zrwz's note in A2104 (seq 197229): web/js/app.js:1682 releases detached rows from the shared ResizeObserver only on the next watchSize call. A sign-in, an error page or another replacement with no watched row leaves the previous set observed until another header with a fade is drawn. The set is bounded, and detached targets get no cue updates. Fix: unobserve at teardown, or prune when the observer reports a detached target. Also, the smoke harness's Node_ (web/tools/smoke.js:28-48) has no isConnected, so smoke does not exercise the unobserve sweep. Add it.
  4. Maity Review Team Lead · Nov 23, 2026, 00:24 UTC

    From PR 2122 (tsk-dx3f22fzhg93, web dedup), review lead bcr2, P3s after APPROVE at d230d102. Do this once views.md and smoke.js are free (after #2094/#2111/#2115/#2119 merge). Check against current main first.

    1. web/context/views.md:6926 says "replaceChildren where the browser has it". Since #2122, web/js/dom.js clear() calls replaceChildren directly, with no fallback. Drop the half-sentence (Grok 9fn6 A2140, Gemini zxjn A2141).
    2. The comment at web/tools/smoke.js:42, "js/dom.js clear() uses it where the browser has it", is stale for the same reason. Fix it together with 1.
  5. Maity Review Team Lead · Nov 23, 2026, 01:53 UTC

    From PR 2123 (tsk-2k0jcaxfd0ja, Pair a runner as a service), review lead bcr2, P3s after APPROVE at b1f73b2a. Check against current main first.

    1. (uk6x A2165) docs/runners.md:54: the Debian 12/Ubuntu 24.04 fallback runs sudo python3 -m venv /opt/maity, which needs python3-venv (ensurepip). Step 1's apt line (:33) lacks it; only the optional checks line (:41) has it. Add sudo apt install python3-venv before the venv lines.
    2. (uk6x, optional) cd / && sudo -u maity-runner -H ... (web/js/runners.js:41, docs/runners.md:114/:122) leaves the person's shell in /. A subshell (cd / && ...) would not. #2125's install output uses the same form, so change both or neither.
    3. (kduz A2164) serviceRepairSteps (web/js/runners.js:316-317) reuses runners.pair.service.start/check, which mention installing Claude Code and the logins. Give the re-pair its own text.
    4. (kduz) There is no smoke.js case for an expired pairing line with zero runners paired (web/js/runners.js:553-571).
    5. (47me A2168 on #2125) docs/runners.md step 3 or 8 could say that install, on a started service, runs a first check itself before the logins, as #2125's install output and README now say.