Repository navigation
Fix three more macOS-only test failures: a chart refusal's ResizeObserver loop, page search's opening, a phone row read too early - #6015
Merged
Conversation
…ze delivery A chart that cannot draw replaces its drawing with its refusal: the words, with the source under them. A drawing fails inside the size delivery that measured its room, since the chart draws for the room as it is delivered, and the refusal's box is taller than the one the theme held for the drawing. Written there, it moved the boxes above the chart that the browser had just delivered: "ResizeObserver loop completed with undelivered notifications". The refusal is now written in Leaf's next rendering pass, where a drawing already settles, and the chart's pending task holds the page until it is in. test_a_body_the_module_cannot_draw_says_why_over_its_source failed on 4 of the 9 macOS scheduled runs from Nov 5 to Nov 13, both ways the notice shows: recurring on the suite's confirming load, it fails the test as a window error; seen once, the confirming load reports every refusal a second time, so `bad-syntax` reached the log twice. On this Mac's efficiency cores (`taskpolicy -b`), main fails 8 of 8 runs, each one way or the other, and this change passes 16 of 16. Part of #5711 and #5780. > _This was written by Claude Code on behalf of max-sixty_
A slash with the target picker shut opened the picker on its hints and then switched it to search, in one task. The panel paints each mode it is handed at once, so it drew the hints' field with a press at its end (`data-lf-presses`), then search without one: a write that changed nothing, which the suite's write watch fails. The picker now opens in the mode it is asked for, so a slash hands the panel search alone. test_the_panel_only_hides_targets_in_the_lane_it_paints failed this way on 3 of the 9 macOS scheduled runs from Nov 5 to Nov 13; a probe of the attribute's writes found the pair inside one `openPageSearch`. On this Mac's efficiency cores (`taskpolicy -b`), main fails 10 of 10 runs and this change passes 10 of 10. Part of #5711. > _This was written by Claude Code on behalf of max-sixty_
… panel rests test_a_finger_reaches_the_page_commands_its_keys_reach narrows a 390px phone to 320px and checks, twice, that the panel's row holds what it shows: with words selected in Design mode, and after they are let go. It narrowed the window with a bare `set_viewport_size` and selected the words at once, and a margin entry still stood past the new edge (313-362px), so the emulated phone widened its layout viewport to 362px and the row stood 342px wide. The first check then passed whatever the field held. Letting the words go put the page back at 320px, and the second check could read the row in the frames the panel's parts slide to their new places, past its end: on 6 of the 9 macOS scheduled runs from Nov 5 to Nov 13 one of the two checks failed. The test now waits for the resize (`resized`) and for the panel's motion to end (`panel_settled`) before each check, so both read a 320px row at rest. On this Mac's efficiency cores (`taskpolicy -b`) main's test fails 4 of 9 runs and this one passes 8 of 8. Part of #5711 and #5780. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 15, 2026
This was referenced Nov 15, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 15, 2026
…ses twice (#6022) When `navigate` sees a ResizeObserver notice during a page load, it loads the page a second time to tell a one-off notice under load from a loop that recurs (`confirming_resize_notices`). Both loads wrote every other browser problem into the page's record, so a problem raised on every load, such as a widget's refusal, was counted twice. On Nov 9 the chart-refusal test read each chart's refusal twice next to the recurring notice. The confirming load's record now starts empty. A problem only the first load raised is kept beside it, so a flaky one still fails. The new test, `test_a_navigation_made_again_to_confirm_a_notice_counts_its_problems_once`, raises one problem on both loads and one on the first load only. Main's helper counts the both-loads problem twice; this change counts each once. What the page writes to its server's log is not the helper's to undo. The log only grows (`served_state/tail.py`), so a test reading it after such a navigation still sees what both loads wrote; the helper's docstring now says so. That double count is what failed the chart test on Nov 11. Since #6015 the charts raise no notice at load, so it no longer reaches that test. `pnpm run check` and `pnpm run test:runtime` (978) pass, as do the existing navigation-notice tests. > _This was written by Claude Code on behalf of max-sixty_
max-sixty
added a commit
that referenced
this pull request
Nov 16, 2026
…easured its room (#6155) A chart drew its first frame inside its own ResizeObserver delivery whenever Plot had already loaded by the time the browser delivered the chart's room, an order a CPU-starved machine makes likely because rendering updates come late while the import finishes. The first frame replaces the chart's children and adds `lf-rendered`, which lets go of the box the theme held at the stated height, all inside the delivery that reported the chart's room. On a starved run Chrome then ended the round with "ResizeObserver loop completed with undelivered notifications", which failed `test_a_chart_keeps_its_stated_height_beside_a_taller_one` at teardown and would fail `page check --render` on a loaded machine. Users saw nothing. The room delivery now hands the first frame to Leaf's next rendering pass through `frameFor`, as `lf-diagram` and `lf-shot` do, and the legend watch settles `paint()` in that pass too. Every write `draw()` makes after an await then lands in a rendering pass or in Plot's load, so the hop #5743 added at the end of `draw()` goes. Redraws still run inside the delivery so labels fit the new width in the same paint: they write only inside the drawing, whose height is fixed. What to weigh: this is the third fix of this class in `draw()`, after #5743 and #6015, and the first to move the deferral to the two places that resolve inside a delivery, so a write added after an await needs no hop of its own. A chart whose room arrives after Plot has loaded draws one frame later, while the theme still holds its box. Max asked for this fix after a CPU-starved run exposed it. A subagent reviewed it and found only comment inaccuracies, now fixed. Tests: the test now holds the chart module until the page has loaded Plot, which gives every run the starved order: it fails 3 of 3 on main with the loop error and passes 3 of 3 here. Under `taskpolicy -b` with 18 busy loops the original test failed 4 of 4 runs on main and passed 5 of 5 on this branch. The chart tests covering legends, redraws, refusals, hidden charts and paper layout pass, as do `heat-loss`'s render gate, `pnpm run check` and `pnpm run test:runtime`. > _This was written by Claude Code on behalf of max-sixty_
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.
Three of the tests that fail only on the scheduled macOS run, each reproduced on this Mac's efficiency cores (
taskpolicy -b) and checked against main under the same conditions.lf-chartnow writes the refusal in Leaf's next rendering pass, where a drawing already settles.test_a_body_the_module_cannot_draw_says_why_over_its_sourcefailed on 4 of 9 scheduled runs: main fails 8 of 8 locally, this passes 16 of 16./opened it on its hints and then switched to search in one task, so the panel drew a press at its field's end and took it away: an unchanged write ofdata-lf-presses. The picker now opens in the mode asked for.test_the_panel_only_hides_targets_in_the_lane_it_paintsfailed on 3 of 9: main fails 10 of 10 locally, this passes 10 of 10.test_a_finger_reaches_the_page_commands_its_keys_reachnarrowed the window with a bareset_viewport_sizeand selected words at once. A margin entry still stood past the new edge, so the emulated phone widened its layout viewport to 362px and the first width check passed regardless. Letting the words go returned the page to 320px mid-check. The test now waits for the resize and for the panel's motion to end. It failed on 6 of 9: main's test fails 4 of 9 locally, this passes 8 of 8.The page-search and chart-refusal tests these changes reach pass (25), as do
pnpm run checkandpnpm run test:runtime(972).Part of #5711 and #5780.