Repository navigation
Read a pinned reply row through stuckBox, the one reader of stickiness - #2310
Merged
Merged
Conversation
`replyPinned` measured on its own whether a panel card's sticky reply row stood at its scroller's floor, beside `stuckBox`, which #2285 added to answer whether any sticky box is stuck. `replyPinned` is now `stuckBox(reply) === reply`, so the reply row's landings, growth, follow and held-news readings and `focusedInView` read one answer. `stuckBox` now counts a box standing on its foot line in its own place as stuck: a reply row at its thread's very end. Growth before it pushes it past the line, where it sticks, so a follow or a hold reads it as a pinned row. The old reading got this from the holder's border box by accident of the card's padding; it is now stated. `stuckBox` also asks every sticky box around a node, each in its own scroller. It stopped at the first scroller, so a focused control in a reply row's attachment shelf (`overflow-x: auto`) read as unstuck while its row was stuck, and `focusedInView` took it as the user's place. Behavior changes: a long thread's reply row pushed below the list's foot by its card's start now reads pinned, so a landing into it lands the thread's end rather than the displaced row. `--lf-bottom`/`footerInset` stays a separate reading: the band a footer covers, from its stated height, stuck or not. New browser test: a reply row on its foot line at its thread's end follows an agent turn as a pinned one (fails without the foot-line clause). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 10, 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.
replyPinned(thread/reply-landing.js) measured on its own whether a panel card's sticky reply row stood at its scroller's floor, besidestuckBox(geometry.js, #2285), which answers whether any sticky box is stuck.replyPinnedis nowstuckBox(reply) === reply, so the reply row's landings, growth, follow and held-news readings andfocusedInViewread one answer.The two disagreed in one case: a reply row standing on the list's foot line at its own place, the thread's very end.
replyPinned's callers need it pinned there, since a turn arriving above pushes it past the line, where it sticks; read as unpinned, the turn waits behind a notice instead of being followed.stuckBoxgot that answer only because it read the card's border box and the card's padding covered the gap; it now states the foot-line case.stuckBoxalso asks every sticky box around a node, each in its own scroller. It stopped at the first scroller, so a focused control in a reply row's attachment shelf (overflow-x: auto) read as unstuck while its row was stuck.Behavior change: a long thread's reply row pushed below the list's foot by its card's start now reads pinned, so a landing into it lands the thread's end rather than the displaced row.
--lf-bottom/footerInsetstays a separate reading: the band a footer covers, from its stated height, stuck or not.New browser test:
test_a_reply_row_at_its_thread_end_follows_an_arrival_as_a_pinned_one, which fails without the foot-line clause.