Repository navigation
Land a walked-to thread on its latest message - #1715
Merged
Merged
Conversation
A key arriving on a Threads-panel title — t/T, Tab, focus handed on by a resolve — landed a thread too tall for the list at its start, so walking back to a conversation showed its opening turn and left the newest one below the reply box. It now lands the way a direct arrival already did: the thread's end with as much earlier context as fits, starting on a clean block boundary. Where the latest turn (a message, or a summary checkpoint) is itself taller than the list, the landing starts at its head, for direct arrivals too, with the pinned reply row at the foot. The walk's press at either end, which moves no focus, uses the same landing instead of a nearest-edge scroll that moved a long thread nowhere. Tests: the walk test now asserts each thread's latest message lands in the band, including the long thread reached going back with Shift+T, where it used to assert the title. The resolve hand-on test checks the next thread's latest message rather than its title. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 4, 2026
leaf-agent
reviewed
Oct 4, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The test job fails at test_message_delivery_appearance_and_first_frame[panel-narrow]. I reproduced it locally and inspected the before/after captures: at the drafted checkpoint the thread has the same height but sits 20 px higher (y=198.67 versus the pinned 218.67), so the image and geometry snapshot fail. The new title landing produces this position. If this is the intended view, the reviewed panel-narrow snapshot needs to be accepted and its asset pin updated so CI can pass. The focused walk and resolve tests passed locally.
leaf-agent
dismissed
their stale review
October 4, 2026 15:31
The panel-narrow thread snapshot fails on the reviewed head; CI must be updated before merge.
The panel-narrow case opens a thread just taller than the 390×740 list. It now lands on its latest message, so the list sits 20px further down: the agent's last line shows whole above the reply box and the title row scrolls out. Captured by CI run 37210961127; only panel-narrow-drafted changed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 4, 2026
This was referenced Oct 4, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 4, 2026
Resolves the eight open `xfail(strict=False)` markers. Six of them were hiding four real product bugs, now fixed in the product; one test was wrong; one already passed. - **Ask ring on a top-level Ask** (three markers, 11f2d87). Since native package scopes (#1591), the rule standing the Ask's ring down while its options control has focus matched only Asks nested inside a widget, so a top-level Ask drew two rings. - **A board as a pane's body** (1d8d63e). Also from #1591: the board's own rule out-ranked the pane grammar, so in the feature gallery at 1024px the board stood 201px outside its pane. The pane grammar moves to the `lf-layouts` tier. - **Resolving a long thread** (072e3bd). Focus falling back to a thread taller than the window scrolled the page 689px to the thread's head. A box longer than the window now counts as shown when any of it is in view. - **Contents map at presentation** (a8c75f5). Since #1605, PRESENTATION ran a turn after the page was stamped presented, so readers there saw the contents map's authored spans (203px for a 611px section). - **Accepted proposal slot** (764cfa3). No longer reproduces (3/3 serial, 18/18 flake copies, and Linux CI XPASSed it); marker dropped. - **Long panel arrival** (ce52a13). The test's list of clean starting points left out a transcript turn's head, which #1715 made the start of a long arrival. Each case passed three runs on the final tree; `npm run test:runtime` passes. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 5, 2026
…1763) The margin thread card (the floating card `t`/`T` and a margin marker open while the Threads panel is closed) pinned its first message's author row beside Resolve and Close, outside the scrolling transcript. Scrolled to the newest turn, that row put "You" over an agent's words, so the card always opened at the top with the newest turn out of view. #1715 made the Threads panel land a walked-to thread on its latest message; this gives the card the same landing. In the card, each message's head is now `position: sticky` at the top of the transcript, and the controls (thread nav, news, Resolve, Close) stand over the transcript's top-right in `.lf-margin-thread-controls`. The top row therefore always names whoever wrote the words under it, and as one message scrolls out the next one's head pushes it off. A head's centring lead comes out of the gap before its message, so nothing grows: at rest on desktop the card's geometry matches main to 0.1px. Under a finger it is 25px shorter, since agent heads no longer reserve room for a reaction trigger the card never draws. A `sizeObserver` publishes the controls' width as `--lf-margin-controls-width`, which caps each head as a percentage so long metadata ellipsizes before the controls without widening the card. The words under a head take its height as `--lf-top` and `scroll-margin` (the partial-cover rule at `--lf-top` in theme.css), so focus and reveals land them clear of it and the runtime's reading counts covered words as hidden. The Threads panel and inline page threads keep the hoisted root row. The card opens on its latest turn with `showLatestTurn` in reply-landing.js. `latestTurn` is now the one home for "the turn a user comes back to", shared with the panel's `threadLandingStart`. The arrival cue's background now settles on the message's own ground instead of `transparent`, so the card's opaque heads don't go see-through mid-cue. The name size moved to `--lf-msg-name-size` in shadow.css, so the head's lead and the name share one value. Known edge: a card opened at the very bottom of its transcript can show a sliver of the previous message at the top (its head mid push-off, or a cut line), because the scroll is capped at the end. Fixing it means trimming the card to a message boundary; left for now. Tests: - New: `test_the_thread_card_opens_on_its_latest_message_under_its_own_name`. - Card tests that read `.lf-thread-root-meta` now read the controls row and the message heads. - `open_long_thread` scrolls back up from the latest message. - `test_a_sent_margin_reply_shows_its_words_while_delivery_is_pending` expects the card to open on its latest message instead of at `scrollTop` 0. - The thread snapshots are re-accepted for both profiles. In the margin cases only the newest message's name row redraws, in the same place. On Linux the composer drafts in the general, panel and margin cases also wrap one word earlier on this tree, while macOS matches main's pin there. Geometry readings are unchanged. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 9, 2026
…e page (#1784) Typing in a floating comment box scrolled the page whenever the box stood under or over its passage and grew past the room shown on that side. On every content change, `floating-response.js` asked `makeRoom` to scroll the reading region until the whole box fit clear of the passage. A stack-logged probe at 900x700 measured it. With the box over its passage at mid-window, the first keystroke scrolled the page 162px. With the box under a passage near the top, the page scrolled 55px once the box reached the window's foot. The user's rule is that the box moves and the page stays. The comment box's height may now reach the whole boundary on every side, as it already could beside its passage, and growth never spends scroll travel. It grows from the edge that holds it (#1890 holds a landed box by that edge). Once the window stops that edge, shift slides it over its passage, and once it fills the window it scrolls its own words. This is what a box beside its passage already did at the window's foot. Only a thread card opening under or over its target still scrolls to make room. The margin card's reply never scrolled the page while typing; the same probe confirmed that at both widths. Letting the box fill the window exposed a 2px mismatch at Send. The box reserved 2px less beneath its words than the card's reply row takes, so a card capped at the window's height shrank its transcript and shifted the sent words up 2px (`test_send_grows_thread_around_the_words` at 900x600). One token, `--lf-comment-reply-row`, now sizes both. Behavior changes the tests now protect: - `test_typing_moves_the_comment_box_and_leaves_the_page_still` (new) types line by line into a box under and over its passage and checks that the page never scrolls and the box stays in the window. Both cases fail on main. - `test_a_growing_text_comment_keeps_its_side_and_the_page_still` (was `..._keeps_its_passage_clear_without_changing_sides`) and `test_a_text_comment_chooses_above_when_the_page_has_more_room_there` asserted that typing scrolled the page and kept the passage clear. They now assert that the page stays put, and that a later scroll carries the grown box with its passage. - `test_a_wheel_return_attaches_the_comment_box_in_the_first_visible_frame` types a shorter draft. In its pane cases, typing used to scroll the pane to make room under the passage, and the test expected the box there. - `test_where_a_comment_stands_before_and_after_send`'s phone case required the box to overlap its block only when the two couldn't show together, which only held while typing scrolled the page. It now requires a box that overlaps to stand at the window's edge. The assets AGENTS.md "Stability" section now says a floating box grows inside the window and never scrolls the page for its growth. A field in flow, which cannot move apart from the page, still keeps its controls in view. ## Add-on F: one shared reading of where the user works The design review proposed one reading of the user's working point, shared by the card's held edge (`holding`, fed by `drafting` in `margin-projection.js`), the place keeper (`recentPlaceInput` in `user-place.js`) and typing growth. This change doesn't add it. I sorted the place- and landing-hold repairs since 2026-09-23 by the question each answered: - Which edge of the card stays still: #1429, #1536, #1552, #1574, #1587, #1771. #1552 and #1574 fixed how the hold was keyed across a second placement pass and across Send's admission, not which point the user works at. - Which item in a scroller stays still: #1045, #1464, #1480, #1549, #1694, #1715, #1735. - What waits behind a notice: #1473, #1493, #1725, #1738, #1742. - What a landing reveals on entering, sending or typing: #1303, #1364, #1571, #1602, #1624, #1626, #1645. - Whether the box or the page moves as the box grows: #1453 and this one. None of these commits names a case where `drafting` and `recentPlaceInput` disagreed, so a shared reading wouldn't have prevented them. The two readings also differ by design. `drafting` counts words left in the reply and a send still in flight, both of which outlast focus and the pointer. The place keeper deliberately follows whichever of pointer and focus came last. Their outputs differ in kind too: one is an edge of a floating surface, the other a node in a scroller's list. The typing scroll was a question of which thing moves, so it needed no working-point reading. One rule does repeat: a focused control counts as the user's place only while it is on screen. `holdBox` (`reply-landing.js`), the place keeper's "begins in the band" filter, and #1735's resize landing each state it. It is a candidate for a shared predicate, but not the primitive F described. ## Overlap with work in other worktrees `leaf.shift-a-thread-jitter` has uncommitted changes to `comment-placement.js`, `floating.js` and `floating-response.js`, based on #1705. Its `floating-response.js` hunk is small. Its `comment-placement.js` header rewrite overlaps the paragraph this change rewrites, so expect a textual conflict there. `leaf.thread-card-margin-avoidance` is mid-merge in `comment-placement.js` and `margin-projection.js`. Neither touches `makeRoom`'s call from `floating-response.js` or the frame tokens. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Walking to a thread in the Threads panel with
t/Shift+Tlanded a thread taller than the list at its title, so going back to a conversation showed its opening turn and cut its newest message off below the reply box. A key arriving on a thread's title (the walk, Tab, focus handed on by a resolve) now lands a long thread the way a direct arrival already did: its end, with as much earlier context as fits, starting on a clean block boundary.Where the latest turn (a message, or a summary checkpoint) is itself taller than the list, the landing starts at its head, for direct arrivals too, with the pinned reply row still at the foot. The walk's press at either end, which moves no focus, now uses the same landing; the nearest-edge scroll it used before moved a long thread nowhere.
Short threads still land whole. In a long thread the title scrolls out of view while it keeps focus; the shortcut bar's "Thread 2 of 2" still names the place.
The closed-panel walk, which opens the margin thread card, still starts the card at its first message. The card pins the root message's author line above its scrolling transcript, so a card scrolled to its end would put "You" over the tail of an agent's message; that needs settling before the card takes the same landing.
Tests: the walk test now asserts each thread's latest message lands in the list's band, including the long thread reached going back with
Shift+T(it fails on main). The resolve hand-on test checks the next thread's latest message rather than its title. The Linuxpanel-narrowdelivery snapshot is re-accepted at itsdraftedstage, where the list now scrolls that thread 20px further so the agent's last line shows whole above the reply box;leaf-assets.jsonand the README's asset URLs move to the new pin.