Skip to content

Give back a widget's readable fallback when the runtime cannot start, reserve a label's room once its control is drawn, and settle main's nightly - #1497

Merged
max-sixty merged 2 commits into
mainfrom
fix-main-nightly-fallback-reserve
Oct 1, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix-main-nightly-fallback-reserve

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Four nightly failures on main, each fixed at its cause.

A diagram whose renderer never arrives took the room (#1485). A live
page gives an unrendered lf-diagram the drawing's available width from
first paint, and only html:not([data-lf-interactive]) gave the source the
column back. When the renderer failed to load, the page did not start, but
the mark stayed, so the source sat at the room's left edge, 1552px wide
against a 720px column. The tab and gloss rules each restated the fault as
:not([data-lf-startup-error]); the diagram's rule, the x-height clip and
the chart's hidden source did not. Now prepaint.js takes
data-lf-interactive off when a fault is incomplete (something the page
needs did not arrive), so every rule keyed on the mark gives back its
fallback at once, and the tab and gloss rules drop their copy of the fault.
An uncaught error in code that did load keeps the mark, since the page may
still present. data-lf-startup-error still names the reason.

Behavior moved: test_a_drawing_that_has_not_drawn_claims_no_room held
that the source reads in the column through every page's loading interval;
since #1485 a live page reserves the room then. It is now
test_a_drawing_that_will_never_draw_claims_no_room, with the same
assertions, about the page whose renderer cannot arrive.

The interaction gallery's Play press moved Loop and Viewport (#1484).
#1484 shows only a tab set's first panel before it upgrades, so the
gallery, in the Interactions panel, reserved its toggle's words while
undrawn: a 0px floor, which a face-change re-measure never replaced.
reserve now takes its floor inside measure, now where the control has a
box and otherwise the first time it has one, so no caller can reserve from
an undrawn place. The playground's own measure wrapper goes. Since a floor
is now often taken inside a resize delivery, the root that face changes are
watched on is observed once at module load rather than by each floor, which
inside a delivery Chrome reports as "ResizeObserver loop completed with
undelivered notifications".

The passage sweep counted chart sources a drawing then replaced. The
feature-gallery sweep unhid every panel and collected its blocks in the same
script; a chart in a shut panel draws once it has a box, and on a slow
machine its drawing replaced the source mid-sweep, leaving a detached range
(reproduced on main at 6x CPU throttling, about one run in three). Whether
the charts have drawn before the sweep depends on timing, so no single
commit flips it. The test now waits for the page to finish what the reveal
started before it sweeps.

The diff test asserted the native disclosure marker (#1472). #1472 made
a file's row a flex row that draws its own triangle. The test now holds that
each row shows ▶ when shut and ▼ when open.

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

🤖 Generated with Claude Code

… reserve a label's room once its control is drawn, and settle main's nightly

Four nightly failures on main, each fixed at its cause.

**A diagram whose renderer never arrives took the room (#1485).** A live
page gives an unrendered `lf-diagram` the drawing's `available` width from
first paint, and only `html:not([data-lf-interactive])` gave the source the
column back. When the renderer failed to load, the page did not start, but
the mark stayed, so the source sat at the room's left edge, 1552px wide
against a 720px column. The tab and gloss rules each restated the fault as
`:not([data-lf-startup-error])`; the diagram's rule, the `x-height` clip and
the chart's hidden source did not. Now `prepaint.js` takes
`data-lf-interactive` off when a fault is `incomplete` (something the page
needs did not arrive), so every rule keyed on the mark gives back its
fallback at once, and the tab and gloss rules drop their copy of the fault.
An uncaught error in code that did load keeps the mark, since the page may
still present. `data-lf-startup-error` still names the reason.

Behavior moved: `test_a_drawing_that_has_not_drawn_claims_no_room` held
that the source reads in the column through every page's loading interval;
since #1485 a live page reserves the room then. It is now
`test_a_drawing_that_will_never_draw_claims_no_room`, with the same
assertions, about the page whose renderer cannot arrive.

**The interaction gallery's Play press moved Loop and Viewport (#1484).**
#1484 shows only a tab set's first panel before it upgrades, so the
gallery, in the Interactions panel, reserved its toggle's words while
undrawn: a 0px floor, which a face-change re-measure never replaced.
`reserve` now takes its floor inside `measure`, now where the control has a
box and otherwise the first time it has one, so no caller can reserve from
an undrawn place. The playground's own `measure` wrapper goes.

**The passage sweep counted chart sources a drawing then replaced.** The
feature-gallery sweep unhid every panel and collected its blocks in the same
script; a chart in a shut panel draws once it has a box, and on a slow
machine its drawing replaced the source mid-sweep, leaving a detached range
(reproduced on main at 6x CPU throttling, about one run in three). Whether
the charts have drawn before the sweep depends on timing, so no single
commit flips it. The test now waits for the page to finish what the reveal
started before it sweeps.

**The diff test asserted the native disclosure marker (#1472).** #1472 made
a file's row a flex row that draws its own triangle. The test now holds that
each row shows ▶ when shut and ▼ when open.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 1, 2026

@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 changed passage sweep now leaves browser errors on the feature gallery. The CI test job fails at teardown with four ResizeObserver loop completed with undelivered notifications errors in test_real_page_passages_can_be_quoted[feature-gallery]. I reproduced that failure locally at this head; the same test passed at the PR's base commit. Its passage assertions pass, so the reveal and wait need to finish without the observer loop for this fix to be validated.

@leaf-agent
leaf-agent dismissed their stale review October 1, 2026 06:47

CI's test job fails on the PR's changed feature-gallery passage sweep with ResizeObserver loop errors.

…ivery reports nothing

`reserve` now takes its floor inside `measure`, which is often a
ResizeObserver delivery, and each floor observed the root again. A fresh
root observation inside a delivery asks for a shallower one than the
delivery in progress, which Chrome reports as "ResizeObserver loop
completed with undelivered notifications": four of them when the passage
sweep revealed every panel of the feature gallery. The root is now observed
once, when the module loads.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@leaf-agent

Copy link
Copy Markdown
Collaborator

The first test run reported a shortcut-bar layout shift in test_a_thread_the_agent_starts_in_a_page_seat_waits_in_the_row_it_would_follow[box-opened]. That test passed locally and in the CI rerun; the rerun's test and lint jobs passed. The feature-gallery passage test that blocked my previous review also passed locally and in CI, so the approval stands.

@max-sixty
max-sixty merged commit e8bf1b4 into main Oct 1, 2026
7 of 8 checks passed
@max-sixty
max-sixty deleted the fix-main-nightly-fallback-reserve branch October 1, 2026 07:47
This was referenced Oct 1, 2026
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