Skip to content

Read the geometry that moves with the window as one reading, by width - #3300

Merged
max-sixty merged 2 commits into
mainfrom
agent-ac536497067097d81
Oct 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
agent-ac536497067097d81

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The render gate read sideways overflow, misplaced boxes, scrollbar clearance, clipped controls and covered words at every render (1200x900 and 540x720 in both schemes, and each margin width) and reported each there, and the width sweep read all but covered words again at every width from 360 to 1920px. To report each fault once, a rule dropped a swept run wherever a render inside its span read the same fault on the same element (#3285). That rule is gone. The geometry is now one reading, swept_faults: every render adds samples to it, and each fault is one finding per unbroken run of widths where any sample at those widths reads it, with no scheme.

  • Every render reads the geometry once at the size it loaded at, before it opens a thread, as it did before. A page's own rules can lay it out differently in the dark scheme, and a widget can lay itself out by the window it first met, which resizing a loaded page never shows.
  • The light desktop render then sweeps every width from 1920 to 360px at 900px tall, as before.
  • The light phone render then sweeps from 540 down to 360px at its 720px height. The sweep read every width at 900px, so the 540x720 render was the only reader at 720px. Leaf's widgets size by the window's height (a file editor clips its body at 60vh, a trace stage fills the window), so a short window can clip what a tall one shows, and Report a control clipped anywhere in the width sweep #3285's review raised the reverse, a control clipped only at 540x900. Both heights are now read at every phone width.

Covered words on the resized page first reported the stacked workspace pages' sticky header standing over their words: a resize that reflows a page scrolls it, by 169px on alert-review at 360px and over 1000px on rust-sort at 680px, where a fresh load stands at its top. settle_at now returns the page to its top, instantly, once the resize settles.

page check --render on every examples/*.html, before and after, finds the same faults. The one difference is on the four workspace pages (alert-review, data-explorer, rust-sort, wt-merge), which fail on main because their header stands 12px past the column on a phone: the 540x720 render reported it in each scheme, and the dedup rule dropped the sweep's run, so it now reads as one finding at 360-680px.

Cost, in-process over alternating runs on this host: triage-board's render_version took 4.35-4.59s before and 4.48-4.51s after; the corpus's took 148.4-149.4s before and 147.6-148.0s after, of which 120s in both arms is a wait for a thread that never opens. The added samples cost about what the renders' own geometry readings did. These runs predate the desktop render's as-loaded sample, one reading more.

Tests: a page that scrolls sideways only on a phone is one finding at 360-600px rather than two at 540x720, one per scheme; a control clipped on every load is one finding at 360-1920px rather than one per scheme; page check reports a page 150vw wide as one finding at 360-1920px. The fixture of mid-width faults gains a card clipped only in a 720px-tall window, at 360-540px, and one clipped only in the dark scheme, at 1200px and at 540px.

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

max-sixty and others added 2 commits October 20, 2026 02:28
The render gate read sideways overflow, misplaced boxes, scrollbar clearance,
clipped controls and covered words at every render (1200x900 and 540x720 in
both schemes, and each margin width) and reported each there, and the width
sweep read all but covered words again at every width from 360 to 1920px. To
report each fault once, a rule dropped a swept run wherever a render inside its
span read the same fault on the same element. That rule is gone. The geometry
is now one reading, `swept_faults`: every render adds samples to it, and each
fault is one finding per unbroken run of widths where any sample at those
widths reads it, with no scheme.

- Every render reads the geometry once at the size it loaded at, before it
  opens a thread, as it did before. A page's own rules can lay it out
  differently in the dark scheme, and a widget can lay itself out by the window
  it first met, which resizing a loaded page never shows.
- The light desktop render then sweeps every width from 1920 to 360px at 900px
  tall, as before.
- The light phone render then sweeps from 540 down to 360px at its 720px height. The
  sweep read every width at 900px, so the 540x720 render was the only reader at
  720px. Leaf's widgets size by the window's height (a file editor clips its
  body at 60vh, a trace stage fills the window), so a short window can clip what
  a tall one shows, and #3285's review raised the reverse, a control clipped
  only at 540x900. Both heights are now read at every phone width.

Covered words on the resized page first reported the stacked workspace pages'
sticky header standing over their words: a resize that reflows a page scrolls
it, by 169px on alert-review at 360px and over 1000px on rust-sort at 680px,
where a fresh load stands at its top. `settle_at` now returns the page to its
top, instantly, once the resize settles.

`page check --render` on every `examples/*.html`, before and after, finds the
same faults. The one difference is on the four workspace pages (alert-review,
data-explorer, rust-sort, wt-merge), which fail on main because their header
stands 12px past the column on a phone: the 540x720 render reported it in each
scheme, and the dedup rule dropped the sweep's run, so it now reads as one
finding at 360-680px.

Cost, in-process over alternating runs on this host: triage-board's
render_version took 4.35-4.59s before and 4.48-4.51s after; the corpus's took
148.4-149.4s before and 147.6-148.0s after, of which 120s in both arms is a
wait for a thread that never opens. The added samples cost about what the
renders' own geometry readings did. These runs predate the desktop render's
as-loaded sample, one reading more.

Tests: a page that scrolls sideways only on a phone is one finding at 360-600px
rather than two at 540x720, one per scheme; a control clipped on every load is
one finding at 360-1920px rather than one per scheme; `page check` reports a
page 150vw wide as one finding at 360-1920px. The fixture of mid-width faults
gains a card clipped only in a 720px-tall window, at 360-540px, and one clipped
only in the dark scheme, at 1200px and at 540px.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 3bd9a73 into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-ac536497067097d81 branch October 20, 2026 09:40
max-sixty added a commit that referenced this pull request Oct 20, 2026
… failures (#3305)

`test_page_fixture_renders` failed on main for ten corpus pages with
three kinds of finding. Each is fixed at its owner; all ten cases pass
here, run one at a time.

- **Workspace header past the column** (alert-review, data-explorer,
rust-sort, wt-merge, at 360-680px). Under 720px wide or 480px tall the
workspace header sticks at the window's top and covers the 12px gutters
beside it (#3271). It covered them by widening its box with
`margin-inline: -12px` and padding its content back in, so its box stood
12px past the column. #3300's width sweep reported it. The header now
paints its ground over the gutters as two shadows offset by the gutter's
width, which the workspace names once as `--lf-workspace-gutter` for
both its padding and the shadows. Screenshots of the stuck header at
360, 390, 540 and 680px in both schemes, at 800x400, and in Firefox at
390px are pixel-identical to main. A tap in a gutter beside the stuck
header now lands on the workspace's own padding rather than the header,
and neither does anything.
- **A thread opening that never answered** (feature-gallery, and the
corpus page that embeds it: 120 s, then a failure). The render gate
opens each thread whose messages carry markup with `travel: false`. The
gallery's workshop thread has its passage in the Threads tab, which the
page doesn't open on. The floating panel declines a thread about a
passage, so the margin card took it, and the card's placement waited for
a margin row the closed tab hid. `travel: false` promises to keep the
page where it is while revealing the destination; the card path was the
one path that skipped the reveal (`thread/destination.js`). It now
reveals a hidden passage first, unless the caller passes `scroll:
false`, since switching tabs scrolls the strip to the new tab's name.
Where the passage stays hidden, by a closed tab under `scroll: false` or
by the page itself (`hidden`, `visibility: hidden`), as the card reads
it (`visibleTargetParts`), the card has nothing to stand beside, so the
opening leaves the thread to the floating panel, as it does for any
thread nothing on the page shows. Such an opening had waited forever. A
passage already in view is not revealed, so an open tab's strip stays
where the user scrolled it.
- **Held scrollers** (code-comparison, root-parts, the feature gallery's
page-of-parts sample). A page of parts' list sticks under the title at
the window's height and scrolls its own names (#3198), as a sticking
block does, but didn't declare `--lf-holds-height: 1`. It now does.
Nothing it draws changes.

Tests: the phone workspace test now asserts nothing stands past the
column with the header stuck.
`test_opening_a_thread_reveals_its_closed_tab` covers both opening
routes, `test_a_thread_whose_passage_stays_hidden_opens_in_the_panel`
the closed tab under `scroll: false` and a passage the page hides, and
`test_a_thread_in_view_opens_beside_it_and_leaves_the_tab_strip` the
strip. Each fails with its part of the fix removed. `pnpm run
test:runtime` passes.

The card's placement itself still waits for a passage that is never
drawn when it is opened outside `openPageThread`, as when a revision
moves an open card's passage into a closed tab (`margin-projection.js`
calls `showPreview` directly there). Letting the card answer "can't
stand here" would end that wait at its owner, but a travelling opening
opens the card before its trip reveals the passage, so "not drawn now"
means "can't stand" only once the trip reveals first, which moves where
it captures its return place. That reordering isn't part of this change.

review-queue's and rust-sort's resize journeys each failed once under
load with a keyboard stop 1px off after a resize, and passed on every
other run (review-queue 4 of 5).

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

---------

Co-authored-by: Claude Opus 5.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