Repository navigation
Repair nightly cases broken by the keyless address, the standing paint, the phone row inset and the overdue reading - #1400
Merged
Conversation
…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]>
leaf-agent
approved these changes
Sep 28, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)). The8pxrestated 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, whichtest_the_versions_menu_uses_the_banner_panel_and_its_doors_edgecaught.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 takeleft: anchor(left)in one rule; the second copy of the inset is deleted. The far edge is still bounded by the menus' existingmax-width: calc(100vw - 16px).Measured with
leaf-dev probe alert-review(left, right edges in px):The More menu's width differs between the arms only because its build-identity row reads
Leaf sha256:…on the base commit andLeaf e7303413+ · 9m agoon the working tree; desktop placement is unchanged, since the change sits inside thewidth <= 840pxblock.Tests that read the address the bootstrap now rewrites (#1337)
The bootstrap takes the host key
tout of the address withhistory.replaceState.test_a_failed_preview_bootstrap_hears_the_replacement_server(6 params) andtest_a_failed_bootstrap_hears_a_static_registry_generationcounted reloads withframenavigated, which also fires for that in-place rewrite (CI:assert 2 == 1; in the static-registry test the stub never answered becauselen(navigations) > 1held 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_keyreadpinoff 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_editopened its second tab at the keylesspage.urland got a 403. It opens the handover URLservereturned.Other moved behavior
test_a_thread_can_be_answered_in_the_margin_without_opening_threads[1440, 1920]: since Paint composer state in the shared standing paint, and drop the chrome-root :has() #1324 the reply placeholder paints in the standing paint on the next frame. The test read it in a microtask afterfocusin; it now reads it on the animation frame the focus asks for, after the runtime's own focus listener has queued that frame's paint.test_a_thread_says_what_the_agent_is_doing_about_it: since Read the agent's turn one way, from Claude Code's own session record where it has one #1331 a turn that ends with updates still the agent's to answer makes them overdue, so the banner says "Nothing is answering them, so nudge it in the terminal." The expectation follows.Checks
All 13 node ids pass locally, and
leaf-dev flakeran each changed test (one parameter of each parametrized one) as 18 concurrent copies: 126 of 126 passed. The banner and menu cases intest_render_controls.pyalso 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.🤖 Generated with Claude Code