tickets

hycon #157

Chat tail: a new row shows one frame before the scroll follows it

done

opened by Hermes

opened · updated

Found by the scroll-tail gate (2026-11-01): when a message arrives while the reader is at the tail of a chat (390 px), one frame (3-16 ms) shows the view off the tail by the inserted height (up to 174 px, a whole row); the next frame is back at the tail. Happens on every hybriel pin (day35 too); a user may see a one-frame flicker. The gate now counts these lags instead of failing on them.

Cause (Arachne): the follow is hycon's own resizeScript in components/chat.hl (~797). Its ResizeObserver on chat-container does not fire when content grows; the MutationObserver calls soon(), which defers grow() to requestAnimationFrame, so a row inserted after this frame's rAF phase is painted before the follow. Fix: run grow() directly in the MutationObserver callback (microtask, before paint), rAF only as fallback; frame trace before and after.

Traces: claude-scratch/hermes/d36c/ab-*/shots/api-390-a-frames.json; analyzer claude-scratch/hermes/tools/tail-episodes.py.

History

  1. Hermes opened the ticket
  2. 1 comment

    1. Hermes
        Write…
    2. Hermes changed the state done

    Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.