Skip to content

Repair nightly cases broken by the keyless address, the standing paint, the phone row inset and the overdue reading - #1400

Merged
max-sixty merged 1 commit into
mainfrom
fix/nightly-36421522559-address-inset
Sep 28, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/nightly-36421522559-address-inset

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

Repairs the nightly failures in run 36421522559 that #1391 and #1392 left: thirteen failing node ids, one of which needed a product fix to the phone banner's menus.

The phone banner's menus stand under their door

On a phone the banner's action row puts More (and Versions after it) at the row's left inset, and More's menu and the Versions menu open under that door. Both menus clamped their left edge with left: max(calc(8px + var(--lf-safe-left)), anchor(left)). The 8px restated the row's inset (10px then). #1338 cut that inset to 3px to fit three controls in 320px, so the clamp now binds and the menu stands 5px right of the control that opened it, which test_the_versions_menu_uses_the_banner_panel_and_its_doors_edge caught.

The row's padding owns the inset, and the door already stands inside it, so the clamp can never be tighter than anchor(left). Both menus now take left: anchor(left) in one rule; the second copy of the inset is deleted. The far edge is still bounded by the menus' existing max-width: calc(100vw - 16px).

Measured with leaf-dev probe alert-review (left, right edges in px):

viewport surface before (e730341) after
320×844 More door 3 – 27 3 – 27
320×844 Versions menu 8 – 147.4 3 – 142.4
320×844 More menu 8 – 206.1 3 – 183
390×844 More menu 8 – 206.1 3 – 183
1440×900 More door 1247.1 – 1283 1247.1 – 1283
1440×900 Versions menu 1143.6 – 1283 1143.6 – 1283
1440×900 More menu, right edge 1283 1283

The More menu's width differs between the arms only because its build-identity row reads Leaf sha256:… on the base commit and Leaf e7303413+ · 9m ago on the working tree; desktop placement is unchanged, since the change sits inside the width <= 840px block.

Tests that read the address the bootstrap now rewrites (#1337)

The bootstrap takes the host key t out of the address with history.replaceState.

  • test_a_failed_preview_bootstrap_hears_the_replacement_server (6 params) and test_a_failed_bootstrap_hears_a_static_registry_generation counted reloads with framenavigated, which also fires for that in-place rewrite (CI: assert 2 == 1; in the static-registry test the stub never answered because len(navigations) > 1 held from the start). They now count the main frame's document requests (requested_documents), so a reload is exactly one more document and the rewrite counts as none.
  • test_the_current_page_has_a_menu_local_key read pin off the end of the address, which the rewrite turns into ?pin=. It now asserts the address is the one it found before the press.
  • test_a_draft_explains_its_change_and_restores_history_as_an_edit opened its second tab at the keyless page.url and got a 403. It opens the handover URL serve returned.

Other moved behavior

Checks

All 13 node ids pass locally, and leaf-dev flake ran each changed test (one parameter of each parametrized one) as 18 concurrent copies: 126 of 126 passed. The banner and menu cases in test_render_controls.py also pass beside the CSS change, as do 54 phone, banner, menu and version cases across the anchors, aim, navigation, pages, widgets, threads and projection files.

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

🤖 Generated with Claude Code

…t, the phone row inset and the overdue reading

The bootstrap now takes the host key out of the address with
`history.replaceState` (#1337):

- The failed-bootstrap tests counted reloads by `framenavigated`, which also
  fires for that in-place rewrite. They count document requests from the main
  frame instead, so a reload is still exactly one more document.
- The versions-menu test read "pin" off the end of the address, which the key's
  removal rewrites to `?pin=`. It asserts the address the press left is the one
  it found.
- The draft test's second tab opened the keyless address and got a 403. It opens
  the handover URL `serve` returned.

The reply placeholder paints in the standing paint on the next frame (#1324),
so the margin test reads it on the animation frame its focus asks for rather
than in a microtask after `focusin`.

A turn that ends with updates still the agent's to answer makes them overdue
(#1331), so the banner asks the user to nudge the agent; the startup test
expects that sentence.

On the phone banner, More's menu and the Versions menu clamped their left edge
to 8px from the viewport while #1338 moved the row's inset, and so their door,
to 3px: the menu stood 5px right of the control that opened it. The clamp was a
second statement of the row's inset, and it can never be tighter than the door,
which already stands inside that inset. Both menus now take the door's left edge
alone.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 5c8a2ae into main Sep 28, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix/nightly-36421522559-address-inset branch September 28, 2026 16:46
max-sixty pushed a commit that referenced this pull request Sep 28, 2026
The margin acknowledgment browser case recorded pickup after aging an
Ask choice three minutes, but supplied no active claimant turn. Leaf
therefore correctly labeled the pickup “Update stale”, and the test
failed before it could check the intended Picked up presentation. The
test now records a live claim before pickup, matching the other pickup
cases; its earlier Waiting for pickup assertion still runs.

This is the remaining failure from the pickup test setup covered by
#1392 in the [failed main
run](https://github.com/max-sixty/leaf/actions/runs/36434621321). The
case passes locally and in 18 concurrent `leaf-dev flake` copies.
Representative cases from the other failure groups also pass on current
main after #1400. The complete nightly suite has not yet passed; its
remaining failures are tracked in #1283.

Refs #1283.

Co-authored-by: leaf-agent <[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