Skip to content

Fix the bugs that the open expected-failure markers were hiding - #1764

Merged
max-sixty merged 7 commits into
mainfrom
fix-open-xfail-markers
Oct 4, 2026
Merged

max-sixty merged 7 commits into
mainfrom
fix-open-xfail-markers

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Resolves the eight open xfail(strict=False) markers. Six of them were hiding four real product bugs, now fixed in the product; one test was wrong; one already passed.

  • Ask ring on a top-level Ask (three markers, 11f2d87). Since native package scopes (Use native scopes for automatic package isolation #1591), the rule standing the Ask's ring down while its options control has focus matched only Asks nested inside a widget, so a top-level Ask drew two rings.
  • A board as a pane's body (1d8d63e). Also from Use native scopes for automatic package isolation #1591: the board's own rule out-ranked the pane grammar, so in the feature gallery at 1024px the board stood 201px outside its pane. The pane grammar moves to the lf-layouts tier.
  • Resolving a long thread (072e3bd). Focus falling back to a thread taller than the window scrolled the page 689px to the thread's head. A box longer than the window now counts as shown when any of it is in view.
  • Contents map at presentation (a8c75f5). Since Unify revision editor continuity and Thread destinations #1605, PRESENTATION ran a turn after the page was stamped presented, so readers there saw the contents map's authored spans (203px for a 611px section).
  • Accepted proposal slot (764cfa3). No longer reproduces (3/3 serial, 18/18 flake copies, and Linux CI XPASSed it); marker dropped.
  • Long panel arrival (ce52a13). The test's list of clean starting points left out a transcript turn's head, which Land a walked-to thread on its latest message #1715 made the start of a long arrival.

Each case passed three runs on the final tree; npm run test:runtime passes.

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

max-sixty and others added 7 commits October 4, 2026 13:43
…has focus

Since native package scopes (#1591), a bare selector in a widget package's
sheet matches only descendants of a declared tag. The rule that sets
`--lf-ask-ring: none` on the decision around a focused `lf-options[choose]`
named the decision as `[data-lf-ask]`, so an `lf-ask` standing at the page's
top level, which is a widget root rather than a descendant of one, kept its
outer ring around a control that is already a frame: two rings for one fact.
The rule now matches the decision as a scope root or a descendant of one.

Behavior moved: with the keyboard inside a joined options control, only the
exact row draws the band, as before #1591. The three tests that pin it lose
their expected-failure markers.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The pane role's grammar (which row each child stands in, a body held to
the pane's width with no margin of its own) is meant to hold over what a
widget declares for itself. It relied on specificity for that. Since
native package scopes (#1591), a widget root rule is written
`:scope:is(lf-board)`, which ties the kernel's
`[data-lf-reading-role="pane"] > :not(header, footer)` on specificity and
then wins on scope proximity. So the board's `min-inline-size` beat the
body's `min-width: 0`: in the feature gallery at 1024px the Follow-ups
board stood 201px outside its pane and 177px past the root scrollport.

The four grammar rules move from the kernel's theme.css (lf-base) into
layouts.css's lf-layouts tier, which ranks above every package whatever
the selector. The look stays a `:where()` default in theme.css.

Behavior moved: a widget that is a pane's body is held to the pane's width
and block margin again; a board there scrolls its columns inside the pane.
The render-gate test that pins it loses its expected-failure marker.

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

Pressing Resolve on a page thread re-renders it without the button, so focus
falls back to the thread itself through `landInThread`. That landing reveals a
box that is not wholly in view with `scrollIntoView({block: "nearest"})`
(#1571), and a thread taller than the window is never wholly in view: nearest
aligns its head with the window's top, so a twelve-message thread jumped the
page 689px away from where the user had pressed.

A box longer than the window along an axis now counts as shown there when any
of it is in view, since no scroll could show it whole. A box that fits is
still revealed whole, so entering a reply at the window's foot still brings
its writing area up.

Behavior moved: resolving a long page thread by its button leaves the page
where it was; the two parametrized cases lose their expected-failure marker.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The marker recorded an intermittent stale style on main ef89dfd: the
accepted `lf-old` kept painting with `data-lf-retired` set. It no longer
reproduces: 3 of 3 serial runs and 18 of 18 `leaf-dev flake` copies pass
on 777bdb1, and Linux CI XPASSed it on f64b3e0. #1719 lifted the same
stale-style family's other quarantines on the same evidence.

Behavior moved: none; the test asserts the hidden slot again.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`presentPage` stamps `data-lf-presented`, which opens interaction, and then
dispatches PRESENTATION, the one event in which box-derived apparatus
replaces its provisional startup reading. Since #1605 awaited the arrival
landing between the two, the stamp's turn ended before PRESENTATION ran, so
whatever ran there (a `presented` waiter, an observer of the stamp, or a
frame where the landing waits on an editor) read the contents map's authored
spans: 203px for a section replay had grown to 611px.

PRESENTATION now runs after the landing's synchronous part, as it did
before #1605, and the landing is still awaited before the version notice.

Behavior moved: when the page reads as presented, the contents map already
spans the replayed sections. The test that pins it loses its
expected-failure marker.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The long and very-long page-mark arrivals were marked for cutting a glyph
under the pinned heading (main ef89dfd). That stopped with #1715, which
starts a long arrival at the latest turn's head. The test's list of block
boundaries held thread children and paragraphs but not turns, so a landing
on the latest message's head read as a cut through a content block, though
no text line straddles the heading (the `crossedLines` reading is empty).

The boundary list now includes each transcript turn and checkpoint. A
landing mid-paragraph still fails both readings.

Behavior moved: none in the product; both cases lose their
expected-failure marker.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 42a57be into main Oct 4, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix-open-xfail-markers branch October 4, 2026 22:56
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