Repository navigation
Keep comment controls reachable and refresh comparison measurements - #2016
Merged
Merged
Conversation
Allocate the Threads list and its page composer from the room left by the intrinsic controls. The bounded field scrolls its words, and the inner panel body gives minimum controls a native route in short windows while preserving the outer resize grip. Page-comment cards share this column allocation and constrain their anchored position with their actual width. Register each physical scrollport and let separately scrolling apparatus name its reading owner. Reading keys measure the visible part of the current scrollport and follow its visible ancestor when that body is offscreen. Code-comparison labels now read after the reader paints and resize, with observers and queued measurements disposed across reconnection. Browser regressions cover short-window keyboard and touch paths, drafts and attachments, Send, caret retention, and comparison arrival/resize/reconnect. The runtime fixture classifies diagnostic delivery separately from state reads.
leaf-agent
previously approved these changes
Oct 8, 2026
…repairs # Conflicts: # tests/runtime/state-feed.test.mjs
leaf-agent
previously approved these changes
Oct 8, 2026
leaf-agent
reviewed
Oct 8, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The new inner panel scroller leaves the pinned reply row short of the thread list’s bottom edge. The existing long-thread test fails in all three wide/narrow variants: the title still owns the top hit area, but the reply no longer owns the roughly 10px strip below it (atTop=true, atBottom=false). That breaks the list’s painted boundary while reading a long conversation. The new .lf-thread-panel-body overflow and footer allocation need to preserve the reply row’s ground through the list’s bottom edge. Failing test job.
leaf-agent
dismissed
their stale review
October 8, 2026 02:50
CI failed: pinned reply boundary and browser fixture teardown
…repairs # Conflicts: # skills/leaf/assets/runtime/navigation.js
Isolate panel body layers below the resize grip and let the reading frame own its shared edge with the positioned composer. Preserve fixture-owned context teardown so browser health is checked before cleanup.
leaf-agent
previously approved these changes
Oct 8, 2026
…repairs # Conflicts: # skills/leaf/assets/runtime/chrome.css
leaf-agent
approved these changes
Oct 8, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 9, 2026
) Threads no longer has a comment box at its foot. The page comment card under the banner's Comment on the page control (#1930) becomes the one place a page thread starts, with Threads open or shut: the control, `c` with nothing to comment on, and Resume writing all open it, and Threads is where a thread lives once started. ## Behavior that changed - With Threads open, `c` and the control open the card, which hangs over the panel's top. A send leaves the user on the open card (main's #2116), flashes Threads, and scrolls the new thread into view in the open list, as an anchored comment's send does. - After a send, the card's field keeps its height until the user writes again, and the room its attachments took stays empty above the field until the user puts the card away. Send stays under the press, a refusal that hands back the words and images returns them to the room they left, and typing again leaves the field's top where it was. The field's height is a basis, not a floor, so a window that later shrinks still shrinks the editor before the card scrolls. - An executable revision arriving while the user writes in the card opens it again with the caret where it was: editing continuity shows a hidden root editor through its owner's Resume writing route (`drafts.js`). It used to restore only a visible box, so the card came back shut and the caret was lost. - The card stays inside the window and both side safe areas at every width, combining main's #2016 clamp with the safe-area insets. - Threads' empty text points at the banner instead of "the box below". ## Code - `thread/page-comment.js` owns the only general box. The panel's second editor, the draft mirroring between the two, and every branch on whether Threads is open are gone; `panel-elements.js`, `thread-panel.js` and `leaf.js` stop building and wiring it. The panel foot stays as page annotations' response-bar home. - The card's composer takes `lf-general` with main's column composer rules; the separate `.lf-page-composer` copy is gone. - `reading-regions.js` drops `apparatusFor`, whose one caller was the foot composer's reading region. ## Tests - Every test that wrote into Threads' box now opens the card (`page_comment` in `render_harness.py`). Tests of the panel box's own layout, focus-after-send and Escape-to-list are rewritten for the card, or reduced to what the panel still owns (main's short-panel test keeps its grip and body-scroll checks; the card's short-window fit is the card test's). - Fixtures that needed Threads' list to overflow grow, since the list now runs to the panel's foot. - `clear_of_the_bar` counts the shortcut bar as covering only the columns it spans: it yields a beside-panel its width, so a reply pinned at the list's foot stands beside it. - The words watch credits the closes the browser makes of open popovers (light dismissal, an invoker's toggle, Escape) to the gesture that caused them; a timer's close still fails. - The focus-ring cover walk carries past a z-index to the stacking context that holds it and ranks that context by its own place, hoisting only static boxes above a static stacking context. It read the comments panel's touch grip ring as under a thread's sticky title, whose z-index lifts it inside the list and no further, while every pixel of the ring was the ring's. New cases check a band lifted inside a static stacking context on both sides of the control against the page's pixels. - Thread appearance snapshots are accepted again from the tree merged with main. > _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.
With View open and a 20-line draft at 390×600, Threads placed Send below the window. Page-comment cards could also extend past the left edge or exhaust a short window, while code-comparison labels retained dimensions from an earlier render.
The thread list and composer now share the space left by their intrinsic controls. The editor scrolls inside its allocation, and an inner panel body supplies a native route when minimum controls exceed the window, preserving the outer resize grip. Their local paint order keeps pinned thread edges above the composer and below that grip. Page-comment cards share that column allocation and constrain their anchored position using their actual width independently of vertical fit.
Separately scrolling apparatus can declare its reading owner through
apparatusFor; physical scroll placement still uses the apparatus's own box. Apparatus stays within its semantic reading region, and scroll chaining respects CSS overscroll boundaries. Reading-page steps use the visible band and reach a visible enclosing scrollport when the preferred body is offscreen. Code-comparison labels are remeasured after reader painting and resize, with observer and queued-work cleanup on disconnection.Validation covers keyboard and touch paths, real attachments and Send, retained drafts and caret, resize-grip hit boxes, pinned thread boundaries, footer/list scroll ownership, and comparison arrival, resize, and reconnection. Independent source and rendered reviews accepted the changes. The served comparison profile adds no request at presentation; encoded code bodies increase by 3,525 bytes to provide first-gesture scroll registration and current reader measurements.