Repository navigation
Pin an open thread's title in the Threads list and paint below its Reply row - #1797
Merged
Merged
Conversation
An open thread in the Threads panel left a strip of its own words visible below the Reply box, and its title scrolled away while the user read the conversation. Both come from the list's edge padding. The padding is inside the scrollport, so words scroll through it, and a sticky offset is measured from the content box within it. The reply row pins above the list's focus-ring inset, where a landing puts a thread's end, so the transcript showed through 10px under it, and through 65px when a walk status deepened the list's foot. The title had no pin. A thread's title is now a sticky header in the list's `--lf-top` slot, which the list restarts at minus its top padding, as a workspace pane does, so the title stands on the scrollport's edge. Its height is stated: the rows under it take `--lf-top` past it, so `headerInset` reads them as covered, and a landing clears it through `scroll-margin-top`, which the long-thread landing start now subtracts from its room. Each of those rows is its own stacking context, so an icon raised over its button's disc stays under the title. A closed card's title is sticky too, with nowhere to go, because switching a box between sticky and static is reported as a layout shift though nothing moved. The reply row keeps its floor, so a thread landed or scrolled to its end still has the row pinned and Send still. It paints its surface from its foot down to the scrollport's edge, and the open card clips that ground to itself (`overflow-y: clip`), so it shows only while the row is pinned and takes no room. A resolving card clips with `overflow: clip`, since `hidden` made it the title's scroller. The cancelled-press test reads the card's top rather than the focused title, since an open card's title now pins. A new test reads both list edges by hit test, wide, narrow, and under a walk status. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/assets/runtime/thread/landing.js
The covering-panel test checked that the focused title stays inside the list's scroll padding. An open thread's title is now a sticky header that pins on the list's top edge, past that padding, and draws its focus ring inside itself, so the band it must stay in starts at the edge. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Only the catalog stills said their push to max-sixty/leaf-assets was part of the authorized change, so an agent accepting reviewed thread snapshots treated the same push as gated. Every publisher appends a commit and moves only its own checkout's pin, so no other branch reads a different image. AGENTS.md now says that once, beside where it introduces leaf-assets, for every publisher. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…tle between row layers and overlays The reply row's ground painted whenever the row stood in an open card, so an unpinned row also covered the card's end guard: every open card, in the panel and on the page, ended 3px further below its field than on main. It now paints under `@container scroll-state(stuck: bottom)`, the platform's reading of whether the sticky row is pinned, so an unpinned card ends as before. Isolating each row under the sticky title also trapped a row's overlays inside it: an open reaction list (its message raised to 4) went under the reply row below it, so its choices took no press. The title now stands at 3, above what a row keeps at rest (an action icon, a reaction trigger, up to 2) and below what a row raises while open or held (4 and 5), and rows stack as they did on main. Tests: the long-thread contract test hit-tests after a rendered frame, since a scroll-state query settles on the frame, and sweeps the card under its title for anything painting through it (it fails with the title at 1, where a reaction trigger shows through). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The panel-narrow journey scrolls its open card, so its title now stands on the list's top edge in every checkpoint. The other cases match their earlier images within the comparison's tolerance. The pin also brings the catalog links up to the previews published since. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # README.md # leaf-assets.json
Main moved the asset pin, so the narrow panel's pinned-title images are captured again on the merged tree and published over it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
At 3 the title lost to a message lifted to 4 while its reaction list is open: scrolled up under the title, the message's words printed over it. The title now stands at 6, above every layer a row raises (1 to 5 in shadow.css), so an open overlay scrolled to it goes under it with its words. The contract test opens a reaction list and scrolls it under the title; it fails at 3. AGENTS.md also says what a publish's new pin carries from other branches, and that a leaf-assets.json conflict resolves by publishing again from the merged tree. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # README.md # leaf-assets.json # skills/leaf/assets/runtime/chrome.css
The Linux profile can only be rendered on CI's Ubuntu runner, and its evidence came back as per-case run folders that accept could not read, so each Linux acceptance meant laying the images out by hand. A case now marks its run evidence complete, naming its profile, once its delivery assertions pass, and `leaf-dev thread-snapshots fetch RUN_ID` downloads that run's artifact and lays it out as the same sealed folder `capture` writes, ready for review and accept. It refuses a run unless every case completed. Checked against a real CI artifact: 41 of 42 geometry files match main's pinned Linux readings byte for byte, the other from that run's own older commit. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Main moved the asset pin again, so the narrow panel's pinned-title images are captured on the merged tree and published over it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Each attempt of a re-run job uploads its own artifact, so a run re-run after its snapshots completed held two complete sets and fetch refused it. It now takes the latest attempt whose every case passed. It also refuses a run that tested another commit than this checkout's HEAD, so the images it lays out come from the code being accepted, and reports a run that rendered several profiles. AGENTS.md: a leaf-assets.json conflict takes the later pin; only a directory both branches published needs publishing again from the merged tree. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Mac and Linux never render the same pixels (fonts, antialiasing), and a Linux baseline could only be made on CI's own runner: push, download the run's images, accept them. The snapshot gate now compares on macOS only; elsewhere the delivery journey and its assertions still run and keep their images as evidence. `thread-snapshots fetch`, which existed only to carry CI's Linux images back, is removed, and the Linux font fingerprint, which only named a Linux image profile, is reduced to the check that the fixed faces are installed. TODO.md, "Development velocity", holds finding an approach that guards appearance on CI again. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Oct 5, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The new browser cases passed locally, but CI's lint job fails because ruff-format rewrites the assertion below. The format change will let the test job run.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 5, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 5, 2026
Main now compares thread appearance on macOS only, so the missing-image path in SnapshotRun.capture follows main's COMPARED gate and its comment no longer names a CI run. The leaf-assets pin moves to d8f21142, built on main's pin 486692ed plus the 24 inline-dark files (Mac and Linux images and geometry) and nothing else; every file 486692ed holds is unchanged. The Mac inline-dark images are recaptured on this merged tree: against the earlier approved set, five stages are byte-identical and the drafted stage differs in eight corner antialias pixels by one level, so #1797 did not change the seat's dark appearance. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 5, 2026
…ds above Reply, reaction list as a popover (#1834) Three follow-ups to #1797, the pinned title and Reply row of an open thread in the Threads panel. **No walk position over a covering panel.** When the panel covers the page (a narrow window), the walk's position ("Thread 2 of 2") stood over the bottom of the list, so `chrome-layout.js` measured it and shortened the list by a 65px strip across its whole width. The status now shows only transient feedback over a covering panel, a notice or an empty Go to, which clears the Reply row as notices already did. The strip, `--lf-threads-foot`, `--lf-list-foot` and the layout's reading of the bottom chrome are gone. Pressing `t` on the last thread now shows no "nowhere further" cue there; what to show instead is left open. **Tab and jumps land above the pinned Reply row.** The browser scrolls focus into view only when the target is outside the list's box, and the pinned row is inside it, so Tab onto a reaction button under the row scrolled 3px and left it there. The thread's messages now carry a bottom scroll margin of the row's height plus ring room, mirroring the title's `scroll-margin-top`. The row grows with its draft, so `thread-card.js` measures it (`--lf-thread-reply-h`). The row itself takes no margin, because the caret lives in it and a cover around the caret (scroll-padding on the list) makes the browser scroll on every key. **The reaction list is a popover.** Opening a reply's reactions raised its whole message (z-index 4), and once that message scrolled under the pinned Reply row its words drew through the row. The list is now an auto popover whose source is its trigger, anchored below it and flipped above near the window's foot. Nothing in a message is raised any more, so the Reply row takes the title's stacking order. The platform's return of focus to the opener counts as the layer's own (`returningFocus` in `focus.js`), so a thread re-render still lands the user where they stood when a remote resolve removes the strip. The list closes once its trigger is out of view (`whenOffScreen`), since its anchor only stops painting a top-layer list, which would otherwise keep Tab, arrows and digits on a reply scrolled away. So `e`, which opens the latest reply of the thread the user stands in, first brings that reply into view, and a nearest landing (`landing-scroll.js`) now honours the target's bottom scroll margin as it already did the top, so the reply lands above the pinned Reply row rather than under it. Behaviour that changes: an open list floats over the Reply row, and can cover the title's bottom edge briefly before its trigger leaves the list; a click outside or Escape closes it by light dismiss. The shift watch (`tests/shift_watch.js`) credited a portal's movement with its anchor's scroll only when the anchor's name was unique in its tree and the portal's insets were written inline. The reaction list's anchor name repeats on every reply under `anchor-scope`, and its insets live in `shadow.css`, so the list following a wheeled message read as moving without input once Chrome's recent-input window had lapsed (Linux CI). The watch now resolves a name inside the `anchor-scope` that limits it, and reads direct anchor insets from the portal's own tree's rules as well as its inline style. No API reports which declaration the cascade chose, so an inset counts as anchored only when every declaration in the tier that can win it is a direct anchor inset: an important inline one alone, else the matching important rules, else the inline style, else every matching rule. Rules that disagree credit nothing. The rules that state an inset are gathered once per sheet, and a box with an inline inset reads only the important ones, so the per-frame cost stays near the old watch's (typing under 4x CPU throttle: 13.1s against 12.4s). The reaction list's closed-state reset no longer states `inset: auto`, which a static box ignores, so its open insets stand alone. `test_render_shift_watch.py` covers scoped names, rule-declared insets, an anchored rule overridden by a more specific static one, and an inline anchored inset overridden by an important rule, with the existing faults still caught. Tests: new Tab-landing and `e`-reveal tests in `test_chrome_contracts.py`; the long-thread edges test and the covering-sheet test now assert that a walk takes no room. > _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.
Two problems in the Threads list: text from a long open thread showed below its pinned Reply box, and the thread's title scrolled away while reading inside it.
Title. An open thread's title is now a sticky header in the glossary's sense (
chrome.css): it sticks at--lf-top, and the rows under it read--lf-topplus its height and carryscroll-margin-top, so a landing arrives clear of it while the list's own scroll-padding stays the focus-ring room.thread/landing.jssubtracts that margin from the band a long thread lands in. The title stands at z-index 6, above every layer a row raises (1–5 inshadow.css), so an open reaction list scrolled up to it goes under it; rows stay unisolated so those lists still reach over the Reply row. The anchored Resolved/Reopen action sits one above the title.Below Reply. The card paints its own surface (from #1787), and the sticky Reply row paints a ground from itself down to the scrollport's edge, which the card clips to itself (
overflow-y: clip). Whatever scrolls past the Reply row is now behind paint.tests/test_chrome_contracts.pysweeps a long thread under the title at wide and narrow widths, with and without the walk status, and checks that nothing hit-tests through the title and that an open reaction list goes under it.Snapshots. Thread appearance is now compared on macOS only: Mac and Linux never render the same pixels, and a Linux baseline could only be produced on CI's own runner. On Linux the delivery journey and its assertions still run.
TODO.md("Development velocity") holds finding a way to guard appearance on CI again. The macOS images for this branch are accepted and pinned inleaf-assets.json, and AGENTS.md now says publishing to leaf-assets belongs to the change that needs the images.Still open: over a covering panel, the walk status ("Thread 2 of 2") still reserves a 65px band at the list's foot (
--lf-threads-foot); this change paints it but doesn't remove it.