Skip to content

Read a pinned reply row through stuckBox, the one reader of stickiness - #2310

Merged
max-sixty merged 2 commits into
mainfrom
one-stuck-reading
Oct 10, 2026
Merged

max-sixty merged 2 commits into
mainfrom
one-stuck-reading

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

replyPinned (thread/reply-landing.js) measured on its own whether a panel card's sticky reply row stood at its scroller's floor, beside stuckBox (geometry.js, #2285), which answers 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.

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. stuckBox got 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.

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.

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 / footerInset stays 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.

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

max-sixty and others added 2 commits October 10, 2026 14:43
`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]>
@max-sixty
max-sixty merged commit 24e6fce into main Oct 10, 2026
6 checks passed
@max-sixty
max-sixty deleted the one-stuck-reading branch October 10, 2026 23:04
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