Repository navigation
Slide a thread's messages for news only when the thread changed - #6691
Merged
Merged
Conversation
box-motion carried every scroller's content from where it was drawn whenever no key or press claimed a change, as a turn joining the stream. A change that only resized the box around a scroller, such as the band the panel opens under a thread's view for a pasted picture, rode the same way: the thread's messages stood where they were drawn, under the view's new foot, and hid the message being answered for about 100 ms until the ride ended. #6686 held a keyboard paste's rendering through its upload so that case reads as the user's, but a paste from the context or Edit menu comes with no key and still rode. News now rides a scroller's content only where that content changed since the last reading (its scroll height), as a turn arriving changes it; news that changes only the box shows the content where its scroll puts it, which a thread's view keeps at its foot. A send still rides as before. The paste band test now runs for a key and for a menu paste; the menu case fails on the old rule. Max asked for this before closing the session that built the band.
Review found that a reading taken while content rides records the ride's drawing: the browser counts content drawn below its layout in the scroller's scroll height. After a sent reply rode into a thread, the next change that only resized the view read as changed content and rode again, hiding the message being answered. The rule now reads the height scrolling.js already takes from the children's layout (`laidOutHeight`, now exported), which ignores the ride and, unlike the scroll height, doesn't follow the box where the content is shorter than it. The band test gains a case pasting from a menu just after a reply rode in; it fails on the scroll-height reading. The margin card's transcript gets no reading when news lands in it at its cap, so there the rule can still compare against a stale height and ride as before.
leaf-agent
approved these changes
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On news, box-motion carried every scroller's content from where it was drawn, as a turn joining the thread. A change that only resized the box around a scroller rode the same way. So when a picture pasted from the context or Edit menu (no key, so the change reads as news) opened #6686's band under a thread's view, the thread's messages stood where they were drawn, under the view's new foot, and hid the message being answered for about 100 ms. #6686 covered only a keyboard paste, by holding the rendering through the upload.
News now carries a scroller's content only where that content changed since the last reading, read as its laid-out height (
laidOutHeightin scrolling.js, now exported). A change that only resizes the box shows the content where its scroll puts it, and a thread's view keeps that at its foot. Sends ride as before. The scroll height would not do as the measure: it counts a ride's own drawing, so after a sent reply rode in, the next box-only change rode again. A fresh review found that, and the test now covers it.Worth weighing: the margin card's transcript gets no reading when news lands in it at its cap, so there the rule can compare against a stale height and ride as it did before. The fuller fix would be for the thread reader to declare a turn joining, as a send declares itself (
stream()), so box-motion infers nothing. That needs a path from the reader to the box's motion, and isn't attempted here.Max asked for this before closing the session that built the band. The band test now runs for a key paste, a menu paste, and a menu paste just after a sent reply. The menu cases fail on main's rule, and the last one also fails on the scroll-height reading. 145 stream, news, send and paste tests across the panel, margin card and threads pass, as do
test:runtimeandcheck:browser.