Skip to content

Fix the eight worst findings from a UI and UX sweep - #379

Merged
max-sixty merged 18 commits into
mainfrom
ui-touch-ups
Sep 7, 2026
Merged

max-sixty merged 18 commits into
mainfrom
ui-touch-ups

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

A UI and UX sweep of the shipped examples turned up 36 measured findings. This is the top eight, plus what a review of those fixes and a CI run on a different font turned up.

Each finding was reproduced in a browser before anything was edited, and two of the eight did not survive that: one is a deliberate design decision and was left alone, and one had the wrong cause named, so the fix landed somewhere else entirely.

What each finding turned into

The contents spine no longer dies on a Threads toggle. One open-and-close took it from 240×810 with 27 rows to a 240×15 stub with none, permanently, in 7 of 8 runs at 1200px. The margin form hangs off an unnamed @container style() query, which resolves against the element's parent — aside.sidebar — and the feature gallery's own CSS hides that wrapper below 1151px. Opening Threads takes 420px off the shell, the wrapper leaves the box tree, and on its return the posture value is margin again but the query never re-matches. Three probes separated the value from the invalidation: forcing the wrapper to stay displayed makes the property change invalidate correctly, and poking an unrelated property on the container restores it instantly while poking the lf-toc does not. The posture moves to main, which never leaves the tree, and the wrapper answers only which slot it is — a fact that never changes, so a stale answer is still the right one. 0/10 → 10/10 at 1200 in both schemes.

A selection drag stays inside the page. Overshooting the thread panel's edge by 5px selected 14,472 characters instead of 46, and the composer offered all of it as the quote. .lf-chrome itself computed user-select: auto; a sweep of every element under it found the panel, trays, shelf menu, find row, asks rows, version menu, threads and messages all selectable. The rule now sits on the layer's @scope root with one exception for what a reader may legitimately copy. That takes the accidental overshoot to 67 characters. It cannot go further in CSS — the property that would express the rest is user-select: contain, which no engine implements, and with nothing selectable at all a drag onto the composer's own textarea still takes 13,965 because form controls are platform islands. So the gesture answers for the rest: a drag whose far end left the page restores the range the press remembered inside it. Overshoots of 5, 40 and 200px all come back to the same 77-character passage.

A put-away draft is reachable again. Typing a comment and clicking any top-bar control hid the composer with no dialog and no notice; the words survived in localStorage but the only route back was returning to the same version and reselecting that exact passage. The dismissal itself is deliberate and pinned with a stated reason, so it stays — the defect is the missing route, and the runtime already promised one it did not keep: the composer's Escape row says "Close the composer, keeping the draft", and pendingComposer was wired only to page load. A kept draft is now a g D destination that travels to its passage and reopens it, and a composer that goes down holding words writes one notice naming that address. Where a new version rewrote the passage away, the notice says the draft returns when its passage does rather than offering a dead address.

Print carries every queued card. Printing a decision dropped two of three, leaving 292px of blank paper while the label still read "Queue · 3". The cause is specificity — 0-2-2 outranking a @media print reset at 0-1-2 — but the fix is not a weight bump: the stacking is now something only a swipeable deck enters, so print, the copy and the frozen quote reach the flat rendering by not entering it, and 97 lines become 75. A survey of every other package's print resets found no second instance.

A box that shows less than it holds says so. A twelve-node flowchart in a tab panel showed seven, cut 356 of 1026px, identically at 1200, 1440 and 1920. The sweep blamed --lf-room: 0px; that is wrong. With reach 0 the box is already its holder's full width, and the frame it may not leave is 718px against a 1026px graph — there is no room to give it, and scrolling is the layer's own stated answer. The real defect is that the scroll is silent, which the theme already names as a hazard, and macOS overlay scrollbars paint nothing at rest (scrollbar-color, scrollbar-width and ::-webkit-scrollbar were all tried first). reach.js already asks whether a box has something out of sight, once per layout, for every declared scroller, and spent the answer on the keyboard alone; it now also marks the box, and the theme paints one inset shade at the cut edge. Paint only, so nothing moves.

The status sentence gets a measured floor. The banner truncated exactly where it says the reader's work is saved — at 1024 a real page lost "saved. It picks them up next turn." The 34ch floor was stated on the status group, so the leaf mark and the preview chip ate it before the sentence saw any. The floor is now the sentence's own room, and it is measured rather than stated: --lf-status-floor is no longer written in CSS at all. The banner asks its own writer — the wording moved out of the status branch chain into one place, an enumeration walks the kinds that writer can produce, and the floor is the narrowest box in which all of them fit the clamp, bisected in the face the page is actually set in, with the clamp read off the stylesheet rather than restated. Review then found the enumeration itself incomplete — it varied the kind but pinned the saved-count wording, and the zero-count sentence a fresh page writes is the wider one — which is being fixed as the class of defect it is rather than by adding the one missing string. Status text at 1200: 114px → 452px; at 1024 on a real reader's page, 276px → 400px.

A stated ch count cannot do this job, and that is measured rather than argued: across eight faces the ratio of what a wrapped line needs to the advance of 0 runs from 33.1 to 45.2, so no constant satisfies both this machine and CI's Linux face. It was also a page fact, not only a test-tolerance problem — at 900px on DejaVu the status box gets 351px for a line needing 356, so it renders three lines into a two-line clamp and "Install Leaf" disappears from the website example entirely. Measuring the real lines found one the hand-written list had missed, the away/quiet/dropped sentence, which means the old 34ch was under the sentence on both platforms rather than only on CI.

A board's columns floor at what a card can be read at. Widening past 1208px takes the board from 1080×443 to 642×823, and a card's prose to a 90px measure that breaks documented mid-word. The width step is design and is left alone — the arithmetic is stated in a comment, a test already pins the 520px reservation, and the thread card is a 520px popover placed at the marker's right edge, so the strip is what keeps an arriving card off the passage. No fix makes the exhibit's width monotone while keeping that. What was a defect is the floor: it was the column's own box (10rem), of which 70px is border, insets and the grip's column, leaving 90px of measure — and documented is 92px of the page's serif, so it could not be set at all. The floor is now the measure a card must be read at plus the insets the board spends. 90px → 136px at 1210, nothing moves at 1200, 1440 or 1600.

The key line still covers the contents map's last entry, deliberately. It sits over 21 of 36 pixels on every page with a spine, and ending the map above it is one term. That is not done here. The line is either something that hovers over the page or something attached to its foot, and it is currently both — it takes room from the document's flow, the trays and the thread list, and hovers over everything else. Giving it the map as well settles that by accretion rather than by deciding it. lf-toc's rule carries the reasoning and a TODO, and the two tests that would have pinned the clearance now pin the cutoff, so it cannot close a region at a time without the decision being made.

What review and CI changed

A reviewer read the first five commits and CI ran them on Linux; between them they turned up six things, most of them in what the checks asked rather than in what the code does.

The preview chip's reservation was measured inside a shut popover, where every word is zero, so on any preview page whose row folds at the first state read the floor was 0px and stayed there — 0px after a 900px first read against 282px after a 1200px one. The chip would grow by a glyph, on the row, the first time the checkout went dirty. Its check passed against that bug twice: once because the fixture's row does not fold at the first read, and once because the replacement compared the reservation against the chip's own width while the chip was behind the shut door, reading 0 against 0 and calling that agreement — the same zero-measurement fault reproduced inside the check for it. It now measures the label in a copy of the chip seated on the row.

An image-only draft that was just sent reported itself kept. The immediate cause is that leaveComposer cleared the textarea and not pastedMedia; the reason it could happen is that sync() decided whether to re-read the box by comparing visible text against a cached string, a heuristic standing in for the caller's intent and blind to any change confined to the media half. Five callers expressed "replace this draft" by writing .value and hoping it noticed, and two of them had the same hole — including image-only replies, which nobody had reported. That seam is now stated (load / value / repaint), and "does this box hold anything a reader would miss" was spelled in three places and is now one reading, so the g D destination, the notice and Escape's row cannot disagree.

A focus-ring reading reported a cover that was not there. test_coarse_pointer_resize_reach_stays_reachable_without_trapping_scroll fails on Linux — on main as well as here, confirmed with a matched container pair rather than by comparing Linux against macOS. Reading the pixels shows the ring painting straight across, with the receipt visible only behind the grip's own box. The reading's depth test is a proxy for paint order that steps 4px inward to excuse a control painting over its own ring, and the receipt reaches only the last 2. It now hit-tests where the two boxes meet and compares paint order; purely additive, and the reading's existing planted-fault tests still hold.

silentCuts asked whether the cut mark is written, not whether it draws — the shade is one attribute selector, so a single class setting box-shadow removes the cue with the gate still green. And reach.js claimed its candidate set was every declared sideways scroller, where it is every box whose computed overflow-x is auto — visible computes to auto whenever overflow-y is not, so every vertical-only scroller is in it. That is the set on purpose: a sweep with the panel and both trays open at 1200 light, 840 dark and 700 found zero unintended marks. The comment now says what the code takes.

Two bare sleeps in the overshoot test waited out a timer in front of presence reads, which fails on a loaded machine as a missing composer rather than as anything about the drag. They are now the selection's own reading and the composer's box and painted passage.

The ask walk reached a folded address. At 900px on a wide face the row wants 540px of addresses and has 494, so it folds one — its stated answer to running out of room — and the fold takes Asks. The walk is about measuring from where the reader stands, not about which address the row keeps, so it goes through banner_address, the helper the file already imports and three of its neighbours already use.

The new g D destination and [data-lf-cut] paint also needed focused specimens in the developer gallery, which examples/CLAUDE.md requires for a core feature. Adding the cut specimen turned up that none of the gallery's 33 sideways scrollers overflowed at any width from 1100 to 2560, so the delivery board grew to six columns, which floors below what a wide exhibit is given and is therefore cut at every width.

Verification

Every fix is pinned where the gate and the suite share it — a page fact in the render gate, a gesture fact in the owning test_render_*.py — and each pin was checked by putting the bug back and watching it fail. Two new gate readings: silentCuts and paperVoids.

The face-dependent work was verified on the face that fails. scripts/linux-suite.sh cannot run on this machine (qemu kills Chromium's GPU process before the first context opens, for about:blank too), so it was reproduced in a native arm64 Ubuntu image carrying DejaVu — font metrics belong to the font, not the CPU — which returns CI's own numbers: ch 8.906 against 8.91, need 320 against 320.

Locally: pre-commit green, everyday suite green. Several render tests are red on main itself right now, in the areas its recent commits touched; each failure here was checked against main before being attributed, twice with a matched-environment control after a macOS-versus-Linux comparison produced the wrong answer.

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

max-sixty and others added 10 commits September 6, 2026 20:39
… line

Two faults in the contents spine, both about a box the page cannot reach.

The map asked its own wrapper whether the page had granted the margin. An
author who hides a narrow sidebar — the feature gallery does — takes that
wrapper out of the box tree whenever Threads opens, and a box that has been
away can go on answering a style query with the reading it left with. One
open-and-close left a 240x15 heading stub with no rows, for the rest of the
session: 0 of 10 runs kept the spine at 1200x900. The posture now stands on
main with the other shell readings, where a resident asks for it by name, and
the wrapper answers only which slot it is — a fact that never changes, so a
stale answer is still the right one. 40 of 40 runs keep the spine, at 1200 and
1440, light and dark.

The map is also the fourth region standing in the key line's band, and the only
one out of flow, so neither the document's room nor a list's padding reached
it: its last entry sat under the line by 21 of its 36 pixels, on every page
with a spine, at every width, with nothing to scroll clear. syncLayout already
publishes that band on the root for the scroll regions; the map ends above it
with the same 20px of air. The map now re-lays when its own track changes,
which is what keeps the labels packed around the markers they name.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ML632xM74KSqfbNFJF1Gdp
… be read at

A wide exhibit squeezed past what it can show was silent twice over.

A board lays its columns into whatever width it is given and scrolls once they
are at their narrowest, but the floor was the column's own box (10rem) and 70 of
those 160 pixels are the column's inset and border, the card's inset and border,
and the column the drag grip hangs in. The card's prose got 90px, and
`documented` is 92px of the page's serif — so the shipped board broke ordinary
words across lines the moment the thread strip took its margin. The floor is now
the measure a card must be read at plus the insets the board itself spends, each
named where it is set. Nothing moves at 1200 or 1440; at 1210 a card reads at
136px instead of 90 and the board scrolls the rest.

A drawing that outgrows its box scrolls, which is the honest degrade, but on a
platform drawing overlay scrollbars nothing says so: a twelve-node flowchart in a
tab panel showed seven of them at 1200, 1440 and 1920, cut 356px of 1026, with
every render-gate reading calling the page well. `reachScrollers` already asks
whether a box has something out of sight, once per layout, and spent the answer
on the keyboard alone; it now also marks the box, and the theme paints a soft
inset shade at the cut edge. `silentCuts` reports a box showing less than it
holds across with no mark on it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ML632xM74KSqfbNFJF1Gdp
…s own floor

Two readings of the same mistake: a rule stated for a list of surfaces rather than
for the thing it is about.

The chrome is fixed and stands after the document in one selection order, so a drag
that reaches anything selectable in it runs the range through everything between.
Three surfaces said user-select: none and the panel, the trays, the shelf's menu,
the reference, the find row and the asks list did not — five pixels past the thread
panel's left edge took 14,472 characters instead of 67, and the composer quoted the
page from that passage down. The layer's root answers for it now, and what a reader
may copy out of here — a reply and the passage it is about — says so for itself.
Fields are not in that list: measured, a drag inside one selects its value in
Chromium, Gecko and WebKit whatever this says. What the property still cannot do is
contain a deliberate drag that lands on a reply's words, since no engine implements
user-select: contain; that range is a question for whatever reads a selection into a
quote.

The banner's row reserved 34ch for the status box as a whole, so the mark and a
developer preview's identity chip spent it before the sentence saw any. The floor is
the sentence's own room now (--lf-status-floor), and the cap adds the furniture back
itself. Measured on the feature gallery: at 1200 the line had 114px, twelve
characters, two of the four lines it needed; at 1024 it had 26. It has 452 and 400,
and every line the banner writes fits two lines at 841, 1024 and 1440. Thirty-seven
characters, because thirty-four never covered what it claimed: on a reader's page
with no chip at all, 1024 left 31 where the line saying a comment is saved and when
it will be read needs 33.

The chip stands with the addresses now, ahead of them, where the row's own rule
holds every control to its words and folds whole what it cannot hold. It clipped its
own name before, at scrollWidth 348 in a 238px box.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ML632xM74KSqfbNFJF1Gdp
… to the page

A press on the banner takes the composer off screen and keeps its words, and said
nothing about either: no notice, no dialog, and no route back but returning to that
version and reselecting that exact passage. `g D` is now that route — the destination
reads the same stored record startup reopens, travels to the draft's passage and opens
the box on it — and a box that goes down holding words says which press brings it back.
The address is offered only where this version still holds the passage, so it cannot
promise a landing it has not got.

In print the swipe pile laid its three cards out in flow and kept two of them
`visibility: hidden`: the reset carried one class less weight than the rule it was
undoing, so a printed decision came out as one card, 308px of void, and a label still
reading "Queue · 3". The stack is now stated as something only a swipeable deck enters,
which the copy, the frozen quote and paper all skip by construction rather than by
overriding, and each of those blocks says what it adds instead of what it takes back.
`paperVoids` is the render gate for the shape of the fault: room on paper that prints
nothing. The other packages' print resets repeat the selector they undo and were clean,
as is every example.

A pointer drag that runs past the right edge of the document lands in the layer, and
the browser extends its selection through everything between — a passage a few words
long came back as a 14,387-character quote, a mark over 22,140 of them, and a field
whose accessible name read the whole page out. The release now puts back what the drag
had inside the document, and offers nothing where it had nothing. Only the pointer path
asks this: select all lands its far end past the page by definition and still means the
page.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ML632xM74KSqfbNFJF1Gdp
Thirty-seven characters was the two lines the *longest* line the banner writes needs,
and that line is the website's. Reserving for it on every page cost a standing
address: at 900 the asks and suggestion fixtures folded Asks behind the ⋯ door, which
is how test_the_ask_walk_starts_from_where_the_reader_is went red. Measured on that
fixture: the row needs 523 with Asks standing, the cap at 37ch is 510, and the fold
bought the sentence 437px of room where the longest line it can say needs 293.

The floor is thirty-four now — two lines of the longest line about the page's own
state, "No session holds this page. 999 updates are saved. It picks up again when a
session does." at 33.2 — and every fixture folds exactly what it folded before the
floor moved at all, at 900, 1024, 1200 and 1440. The sentence still gets 313px there,
20 above what that line needs. The number matches the one this replaced by
coincidence: thirty-four used to mean the whole status box and now means the sentence
alone, which is the 30-to-34 the original fix was about.

The website's line is longer and the floor does not cover it. The two never meet: it
is written only where state.example is set, and those pages carry no Accept all and
no Asks, so their row is 459 wide and leaves the line 42.8 characters at 900 with
nothing folded. The test measures it there rather than on a crowded fixture that
never says it.

The floor is now pinned from above as well as below — the reserve may exceed what the
longest line needs by at most a character of rounding — so an over-stated floor fails
in the module that owns it instead of surfacing as a click timeout three modules away.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
One conflict, in `lf-toc.js`'s `#watch`. Both sides added to the same
observer set for different reasons: main's #372 renamed each section's
observed box from its heading to the semantic section it titles, and this
branch started observing the track the map lays rows into, because the map
is now sized against the key line's band and so can change height without
the document reflowing.

The two are independent, so the resolution keeps both: the track is observed,
and the per-section observation follows main's `destination`.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Four things a review found in the branch, three of them in what the checks
asked rather than in what the code does.

The preview chip's width reservation was taken after `arrangeBannerControls`,
which ends in a fold — and the chip is seated first, so it is the first thing
folded. Inside a shut popover every word measures zero, so on any preview page
whose row is over the cap at the first state read the floor was 0px and stayed
there: only a covering crossing re-measures. Measured on the feature gallery at
900, `min-width` was 0px where a 1200px first read gave 282px, so the chip
would grow by a glyph, on the row, the first time the checkout went dirty —
which is news moving a chrome control. `reserveBannerControls` already opens
with `unfoldShelf` for this reason; this call site now does too.

Its check passed against that bug twice over. It read only where the chip
stands and whether it clips, both of which hold at a zero floor; and the first
replacement compared the floor against the chip's own width while the chip was
behind the shut door, so it read 0 against 0 and called that agreement. It now
reads the floor against a copy of the chip seated on the row, after a first
read narrow enough to fold, and fails with `floor 0` against `widest 351`.

`silentCuts` asked whether the mark is written, not whether it draws. The shade
is one attribute selector, so a single class setting `box-shadow` on the same
element outranks it and takes the sign away with the gate still green — the
exact state the reading exists to catch. It now reports a box wearing the mark
that computes no shadow.

`reach.js` said its candidate set was every declared sideways scroller. It is
every box whose computed `overflow-x` is `auto` or `scroll`, and `visible`
computes to `auto` whenever `overflow-y` is not — so every vertical-only
scroller is in it. That is the set on purpose, since a box earns the mark only
by holding more across than it shows, but the comment now says what the code
takes.

Two bare sleeps in the overshoot test waited out a timer in front of presence
reads, which fails on a loaded machine as a missing composer rather than as
anything about the drag. They are the selection's own reading and the composer's
box and painted passage.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The bound catches an over-stated floor, which is a real defect: 37 characters
instead of 34 folds Asks behind the door at 900 and the reader loses a
destination. But it was written to the character on the machine that measured
it, and the quantity it bounds is `need / ch` — a line's average advance over
the digit advance — which is a property of the font face, not its size, so type
size cancelling does not make it portable. `--sans` is `system-ui`: SF here,
whatever the pinned image maps it to in CI. The test is nightly, so a face with
a different ratio fails main's nightly rather than the branch that wrote it.

Two characters of slack instead of one. The floor needs 33.2 here, so this
keeps 1.2 for the face rather than 0.2, and still refuses the 37 that cost the
address at 3.75 over. The floor is the number with evidence behind it; the slack
is the part that was picked.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The key line is either something that hovers over the page or something
attached to its foot. It is currently both: it takes room from the document's
flow, from the trays and from the thread panel's list, and hovers over
everything else. Ending the contents map above it too — which is what this
branch did — settles that question by accretion rather than by deciding it,
one region at a time, in the change that happened to notice the next region.

So the map goes back to the window's height and the line goes on covering its
last entry, 21 of 36 pixels. `lf-toc`'s own rule carries the reasoning and the
TODO: when the line's character is chosen, either every region ends above it,
this one included, or none does and the other three give their reservations
back. `syncLayout` still publishes the band, which is what the choice would be
made with, and its comment now says the map declines it rather than takes it.

The two tests that pinned the clearance now pin the cutoff, so it cannot be
closed here without the decision being made: the map is held to the window's
foot and the line is asserted to stand over it. The `#rows` observation goes
with the height rule that motivated it — the track cannot change without the
document reflowing again.

The spine's other fault is untouched: an open-and-close of Threads still keeps
the map, 40 of 40 runs.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two defects, both reproduced on ubuntu-24.04 — the OS ci runs on — and one of them is a page fact rather than a test bound. Details inline.

The rest holds up here: the five other tests this PR adds pass on this machine, and I traced the anchorBox/standsIn extraction, the sideways/gone split in reach.js, the --lf-sidebar-posture/--lf-sidebar-slot division, the swipe @media not print guard, and the board floor arithmetic (--lf-grip-room is set on lf-board itself, so grid-auto-columns does read it) without finding anything else.

One convention note rather than a defect: examples/CLAUDE.md says "A change that adds or materially changes a core feature adds or updates its focused specimen in the same change; coverage in a public example does not substitute for the developer surface." g D is a new named global destination and [data-lf-cut] is a new layer-wide paint, and neither reaches examples/developer/feature-gallery.html.

Comment thread tests/test_render_controls.py Resolved
Comment thread tests/test_render_controls.py Resolved
max-sixty and others added 5 commits September 7, 2026 00:17
`g D` and `[data-lf-cut]` arrived on this branch as a named destination and
layer-wide paint with no specimen. examples/CLAUDE.md asks for one in the same
change: a core feature has to be directly exercisable in the feature gallery, and
coverage in a public example does not stand in for the developer surface.

The kept draft becomes a subsection of Reader workflows, beside design mode and draw
mode. A destination that stands only while a draft does cannot be seeded by markup,
so the specimen names the gesture that makes one — select, `c`, type, Escape — the
way the neighbouring specimens name theirs. Driven through this fixture in the
browser, that sequence raises the "Draft kept — g D returns to it" notice, puts
`g D your draft` in the key line, and travels back to the passage with the sentence
in the box.

The mark goes on the delivery board rather than on a box narrowed to force it. Every
scroller the gallery already carried — the diagram, the code block, both boards, the
sidebar — held everything it had at 1100 through 2560, so nothing here wore the mark
at any width, while pr-walkthrough's flowchart and diff hunk wear it on a public
page. Six columns floor at 1276px, past the 1080px a wide exhibit is ever given, so
the board is cut at every width the page has: measured 519px at 1200 and 376px at
1920, `data-lf-cut` written and the shade painting. A wider drawing was the other
candidate and is the worse one, since `withheldRoom` excuses a cut drawing only
while the room could not have held it, which stops holding as the window grows.

So `render_version`'s `silentCuts` now reads a visible cut box on the gallery: it
asks the mark and asks that something paints for it, where before it passed on a
page that never put the question. corpus.html is regenerated from the source.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
A composer holding one image and no words is a draft the textarea cannot
see. `leaveComposer` emptied `.value`, and `sync()` decided whether to
re-read the box by comparing the visible words — which had not changed —
so the shelf kept its image through a successful send. The box then said
"Draft kept — it returns when its passage does" over a comment it had
just sent, and the picture rode into the next passage's draft.

wireInput now states the seam it always had: `sync.value()` reads the
complete draft, `sync.load()` replaces it, and `sync()` repaints what
stands. Every caller that put a stored draft into a box goes through
`load` — the composer, the mirrored panel and reply boxes, the option
addition — and `.value` is the reader's words alone. The three spellings
of "does this box hold anything a reader would miss" become one reading,
`composerHolds`, so the send guard, the kept-draft notice and Escape's
row cannot answer differently.

The second half is the rings reading. A box overlapping only the outward
ring band was reported as covering it whenever it reached less than the
band's own depth into the control — but an outline is painted by its
control, at its control's level, so a box the control paints over is
behind the ring too. Measured on the comment panel's touch grip with a
thread receipt at its last two pixels: every pixel of the reported run
is the accent's own. The reading now asks the order where the two boxes
meet. That failure is on main as well; the container control on this
branch and on main gives byte-identical geometry.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ML632xM74KSqfbNFJF1Gdp
The floor was `34ch`. A `ch` is the advance of a zero; what it stands in for is
the width two wrapped lines of the banner's own words take, and those are two
properties of a face rather than one of them scaled. Measured, two lines of the
longest line the banner writes take 35.3 characters where `system-ui` is SF —
this desk — and 38.4 where it is DejaVu, which is what the image CI runs on
resolves it to; one of the shorter lines ran from 33 to 45 characters across the
six faces this desk could try. So the sentence was cut on CI, and a number wide
enough for CI reserves room here that the row can only find by folding an
address.

So banner.js asks its own writer. The wording moved out of the reading into
`statusWords`, and `pageLines` walks every kind that writer knows with the
counters at 999 and an age at its longest word, so what the row reserves and
what the row says are one set of words. `measureStatusRoom` bisects the
narrowest box they all fit the clamp in — the clamp read off the stylesheet
rather than restated — and states it in pixels on `.lf-banner`, renewed when the
words change and at a breakpoint, where the same words set differently.

The enumeration found a line the hand-written list had missed: a claim whose
turn ended and then went quiet is dated by the ending, which is the longer
dating, and it still owes the reader the remedy at the end. It is 18 pixels
wider here than the line the floor had been set from, so thirty-four characters
was under the sentence on this desk as well — by 11 pixels here and by 39 on
CI's face.

The website's own line is reserved on the pages that write it now. Measured on
DejaVu at 900, that row left the sentence 351 pixels where its two lines need
356, and the reader lost the end of it — the whole of "Install Leaf", which is
the one thing that page asks them to do. The row folds a reserved-but-silent
chip for those five pixels instead.

The check bounds the floor from both sides in pixels — one either way, which is
two bisections of one width rounding across an integer — where the bound it
replaces was two of a face-dependent character. Put `34ch` back and it fails at
311 against 300 here and at 342 against 303 on the CI face; overstate the floor
by 30 and the upper bound fails at 341 against 311.

What this does not reach: at 900 on that face the asks fixture's row wants 540
pixels for its five addresses where the sentence, the mark and the gaps leave
494, so the fold takes Asks. That was true before this change as well (533
against 540), and `test_the_ask_walk_starts_from_where_the_reader_is` presses
that address without the row's own `banner_address` helper, so it fails there
either way.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ML632xM74KSqfbNFJF1Gdp
…hind

The ask walk pressed `.lf-asks` where it stands on a wide row. At this
fixture's 900px the row cannot hold all five addresses in a face wider than
this desk's — the sentence's two lines plus the mark and gaps leave 494px for
540px of addresses — so the row folds one, which is its stated answer to
running out of room, and the fold takes Asks. The click then waited thirty
seconds for a button behind a shut door.

Which address the fold takes is the banner's business, not this walk's; the
walk is about measuring from where the reader stands rather than from the
button. `banner_address` is the helper this file already imports for exactly
this, and three of its neighbours already use it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
One conflict, in the banner's status writer. Main's #380 renamed
`state.example` to `state.publication` and gave it a `kind`, so a published
page says either "This is an example on the Leaf website." or "This website is
a Leaf page."; this branch had moved that sentence out of the reading and into
`exampleWords`, so the measured status floor could ask the same writer for it.

Both, so: the words follow main's two subjects and its `lf-publication-install`
class, and they stay a writer of their own, now `publicationWords`, which the
floor's enumeration goes on reading. The harness renamed its `website_example`
argument to `website_publication` in the same commit, so this branch's floor
test follows it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The three findings from the last pass are all closed here, and I checked each against the new code rather than the commit messages: sync.load/sync.value/composerHolds does empty pastedMedia on leaveComposer and gives the send guard, the notice and Escape's row one reading; the floor is measured rather than stated, so the two bounds are now readings of one width and no longer disagree across faces; and the ask walk goes through banner_address. The base merge's resolution of state.example → state.publication reads correctly — publicationWords keeps both subjects and the enumeration goes on reading it.

One defect in the new enumeration, inline. It is the same shape the change was written to end — a line the reservation cannot see — and the check added beside it shares the blind spot, so it passes against the bug.

I did not re-derive the rest of the branch; the earlier commits were read on the last pass and the delta leaves them alone.

Comment thread skills/leaf/assets/runtime/banner.js Resolved
Comment thread tests/test_render_controls.py Resolved
max-sixty and others added 2 commits September 7, 2026 01:42
One conflict, in the swipe theme. Main's #387 added `margin-inline: 0` to the
reset that flattens a quoted or copied queue, so it does not keep the stack's
centring. This branch had deleted that whole reset: the stack now lives inside
`@media not print { html:not(.lf-copy) lf-swipe-deck:not(.lf-swipe-quoted) }`,
which a quoted deck and a copy never enter, so there is nothing to take back.

Resolved to this branch's side, with the reasoning recorded where the reset
used to be: the centring main was undoing is `margin-inline: auto` inside that
guard, so #387's fix is kept by the rule never applying rather than by a second
rule undoing it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
… door

Two things the floor's first landing left, both of them the same shape: a
reading that pinned one value where the thing it stood for varies.

`pageLines` pinned each fact at the value that looked widest, and `saved` was
pinned at its counted spelling. The spelling a page with no count gets — "Your
comments are saved." — is two characters and nineteen pixels wider, so the floor
came out 311 here and 342 on the image CI runs on where the widest line needs 330
and 360. A page nobody had commented on wrapped to three lines and lost "Nudge it
in the terminal." off the end of the clamp, which is the remedy that line exists
to give.

So the enumeration crosses the writer's facts instead of judging them: every one
of the seven is a list, `dated` carries both datings against each shape `ago`
writes, `obligations` and `saved` carry their singular, plural and no-count
spellings, and the lines are the whole cross. Two thousand readings collapse to a
couple of dozen distinct lines, and which fact makes a line widest stops being
something anybody has to be right about. `detail` keeps its single value and says
why. The reservation is keyed on what the page supplies to those words — its
agent's name and the line a published page writes — so a poll compares two
strings instead of building the cross to find out nothing changed.

The wider floor costs the row an address at 1200 on that face, and the edge test
read the order off `.lf-banner-actions` alone, so it reported the row without its
first entry rather than the row having folded one. It reads across the door now,
as BANNER_ORDER already does for the order's own test: the menu's children
followed by the row's are the one order, and an address the fold has taken is
still where the order says it is. The two ends follow their addresses the same
way — the left tray's is reached at the row's start, or through the door standing
in its place — and the reading after the narrowing is that the row returns to what
this width holds rather than to an empty menu.

The row folds rather than wrapping to a second line, and the stylesheet now says
why. `--lf-banner-h` is the document's top offset, so a banner that grew when its
contents stopped fitting would walk the page down — and the set that decides it
would have to be one that cannot change under a reader. The standing addresses
are not that set: the first ask arriving would push the document down with no
gesture behind it. The set that is stable is every address that could ever stand,
at its reserved width, and most of it is not there — on a pinned version that is
the latest chip's 251 reserved pixels for news that has not arrived, so the
banner would take two rows at 1200 showing four addresses. The row is an open
layer besides, so that set is not knowable for the page's life either.

Bug-backs: pin `saved` at one spelling and the floor check fails at 330 against
311 here and 360 against 342 on the CI face. Move All leaves to the row's end and
the order check fails on both, so reading through the door has not made it
blind to what it is for.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ML632xM74KSqfbNFJF1Gdp

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both findings from the last pass are closed, and the red test check is not this branch's.

The floor now covers the widest line the writer can reach. Measured on this runner, where system-ui resolves to DejaVu Sans — the same face the image CI runs on: {'floor': 360, 'need': 360, 'ch': 8.91, 'widest': "Claude left this when its turn ended 999d ago. Your comments are saved. Nudge it in the terminal."}, so need / ch is 40.40 and the comment's stated 40.4 is this face's reading. Floor and need are the same pixel, which is the tightest the two-sided bound can be, and it is the crossed enumeration rather than the test's list that put it there: replaying statusWords over pageLines's cross gives 1,920 readings and 71 distinct lines, and the widest of those 71 is exactly the line BANNER_LINES now names. I also checked the reservation key against what it stands in for — pageLines reads agentName(), publication, TONE, OFFLINE_LINE and BROKEN_LINE, of which only the first two can change under a reader, so reservedWords is the whole of what a later reading could say differently. test_a_preview_chip_costs_addresses_rather_than_the_status_sentence and test_the_banner_uses_the_page_mark_and_puts_each_edge_by_its_panel both pass here; the second is the one the previous two commits failed on.

The remaining test failure is two cases that reproduce on the merge base. I ran each of them against e6adf0b in a clean worktree on this runner and both fail there identically, so neither is yours: tests/test_render_controls.py::test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus (pageSettled never true within 30s) and tests/test_render_pages.py::test_a_shipped_log_opens_its_example_on_a_live_thread (the take-back button never appears in the margin for the react mark 80011234). That is the only reason there is no approval here — I have nothing against the diff.

Runs and readings
  • Failure history on this branch: a69d2fe6 and 09b69958 also failed test_the_banner_uses_the_page_mark_and_puts_each_edge_by_its_panel and test_coarse_pointer_chrome_gives_its_compact_controls_humane_aims; f89eec5c and c3168d36 are down to the two base failures plus, at f89eec5c, the banner edge test. Only the two base cases remain.
  • Base reproduction: git worktree add /tmp/leafbase e6adf0b, then each node id under -p no:randomly -n0. Both failed; test_a_shipped_log_opens_its_example_on_a_live_thread fails in 19s, so it is deterministic rather than a settling race.
  • Face here: .lf-status-text computes to system-ui, -apple-system, "Segoe UI", sans-serif at 14px/18.9px, and fc-match system-ui answers DejaVu Sans.
  • The full tests/test_render_controls.py run on the merged tree: 82 passed, 2 failed — the ring case above, and one test_a_workspace_lands_one_responsive_layout_and_carries_the_column_to_it[1600] that passes on its own under -n0 and so reads as load rather than as a state the page passes through.

Two conflicts, both import lists, and one thing worth recording.

`composing/selection.js`: main's #395 added `keeps`; this branch had extended
the module's docstring for the kept-draft address. Both.

`keyboard/page.js`: main's #388 added five response-option imports and kept
`pendingDrawing`; this branch had replaced `pendingDrawing` with `composerHolds`,
the single reading of whether the box holds anything a reader would miss. The
union, less `pendingDrawing`, which no longer has a use in the file.

Main's #399 ("Report a ring cover from a neighbour that left its holder's flow")
lands in the same ring reading this branch changed, and the two compose rather
than duplicate: theirs answers a neighbour out of its holder's flow, this one
answers a control painting in front of the box reported over its ring. Both
excuse only what they demonstrate.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 9bbe51e into main Sep 7, 2026
7 checks passed
@max-sixty
max-sixty deleted the ui-touch-ups branch September 7, 2026 17:43
max-sixty added a commit that referenced this pull request Sep 7, 2026
Closeout work from the UI and UX sweep that landed in #379, and the reds
it turned up on main along the way.

**The wide shelf's height was reading its chords.** #388 gave a banner
control that opens a stable destination a quiet second line carrying its
chord, and paid for that line with `padding-block: 3px 14px` on
`[data-lf-chord]` — the controls that happen to be carrying one. The
runtime writes that attribute only while a binding is live and
unshadowed, so it comes and goes as the reader moves: a letter typed
inside the go-to prefix filters the visible targets and takes every
chord off the row. Measured at 1200px, each control went 33px → 30.3px
and the row 41px → 38.3px on that gesture, which is a metric expressing
state. The wide shelf now reserves the line for every control it draws,
so the chord's text is the only thing left for state to paint, and
`test_the_shelf_keeps_its_height_when_its_chords_are_shadowed` pins it.

#407 landed the compact half of this while the branch was open, and its
answer stands: a forty-pixel aim has no second line to give, so the
compact block states the row's whole box and drops the hint there. It
does not reach the wide row, where the news chip carries no chord —
verified against `main`'s tip, where the shelf still loses 2.7px a
control. The sheet test goes back to reading each label centred in its
own box, which is what #407's fix restores.

**The margin thread's composer is read against the card's content box.**
`test_the_margin_groups_meanings_at_one_destination_without_moving_the_page`
asserted the composer's right edge meets the thread card's, which #391
made false by four pixels when it gave the card symmetric resting room
to draw its focus edge inside. That room is the design; the claim the
assertion was making — the composer spans its card — is about the
content box, and a composer genuinely inset from the card still fails
it.

#410 is open against the same two hunks of that test from the opposite
premise: that the card's inner gutter is a defect the margin seat should
spend rather than resting room to measure around. The two layouts are
compatible even though the accounts are not — under #410's geometry the
thread keeps its padding and `threadRight - threadPad` is still the
composer's right edge, so this assertion holds either way, and its CSS
stands or falls as a design change on its own. Whichever lands first,
the other's test hunks want a rebase.

**`scripts/linux-suite.sh` can now build for the host's architecture**
(`LEAF_SUITE_NATIVE=1`). Emulating amd64 is what makes the image CI's,
and on Apple silicon without Rosetta it is also what breaks: qemu kills
Chromium's GPU process before the first context opens, on `about:blank`
as readily as on a page, which surfaces as `TargetClosedError` and reads
like a product failure. The native build gives up Google Chrome, which
ships for amd64 only, and keeps CI's fonts — so it answers a question
about how wide something is with CI's own numbers, and is not the
control for a case that drives the installed launcher. CLAUDE.md's
landing-past-a-red rule now says which mode it means.

**A section is watched at its heading.** `lf-toc` observed each
section's destination, which for a generated destination is a 1×0 span
whose resize observation can never fire.

**One test no longer depends on where the run's temporary directory
is.**
`test_an_unidentified_old_service_is_not_mislabeled_as_the_calling_leaf`
read the whole startup note for the calling payload's path, which also
reads the page and stop lines — and the page directory legitimately sits
under the checkout whenever a run is given a `--basetemp` there.
Equality on the runtime line says what the absence was reaching for.

A full local `--run-nightly` run on this head is 2149 passed, 1 failed:
`test_render_widgets.py::test_suggestion_controls_stay_out_of_the_column[no-preference]`,
which reproduces deterministically with `main`'s own `chrome.css` in
place and belongs to a module this PR does not touch.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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