Skip to content

Slide a thread's messages for news only when the thread changed - #6691

Merged
max-sixty merged 3 commits into
mainfrom
pasted-image-visibility
Nov 22, 2026
Merged

max-sixty merged 3 commits into
mainfrom
pasted-image-visibility

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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 (laidOutHeight in 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:runtime and check:browser.

This was written by Claude Code on behalf of max-sixty

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.
@max-sixty
max-sixty merged commit 5ffad5c into main Nov 22, 2026
6 checks passed
@max-sixty
max-sixty deleted the pasted-image-visibility branch November 22, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants