Repository navigation
Make screenshot comparisons easier to inspect - #3704
Merged
Merged
Conversation
leaf-agent
previously approved these changes
Oct 23, 2026
leaf-agent
reviewed
Oct 23, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The authoring guide still tells page authors that Pixels paints added pixels blue, while this change paints “After only” with the green --ok token and shows that color in the Image options key. Please update the guide to say green so descriptions of screenshot evidence match what readers see.
leaf-agent
approved these changes
Oct 23, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
A shot standing where the page gives it a definite height, as a visual review's capture does, holds that height and scrolls its drawing in `.lf-shotstage`. The shot declared `--lf-holds-height: 1`, but the property doesn't inherit and the stage is the box that scrolls, so the corpus's held-scroller reading named each visual-review-gallery stage as a widget box holding its height without saying so. The stage now declares it whenever its shot does. It appeared between the 2026-10-22 and 2026-10-23 nightlies, with the screenshot rework there (#3703, #3704). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
#3939) Adds a nightly macOS run of every test tier, and fixes every test that failed in its first run or in the Linux nightly beside it: 89 tests in [run 40156291557](https://github.com/max-sixty/leaf/actions/runs/40156291557), 60 of them only on macOS. ## The macOS nightly `ci.yaml` gains a `test-macos` job: every tier on `macos-15`, `-n 2` on its three cores, in the daily schedule and a dispatch. It belongs to `ci`, so a failure turns that run red and reaches tend through the existing `workflow_run` trigger, with no tend configuration change. GitHub doesn't bill hosted runners for public repositories; the job holds one of the account's macOS slots for about three hours. The test step names `shell: bash`, without which a step runs without `pipefail` and piping pytest through `tee` reported the first run's failures as a green job. The setup action's Ubuntu mirror step now runs only on Linux. `tests/AGENTS.md` counts `test-macos` among what tend repairs and leaves only failures no CI run shows to local sessions. It drops the instruction to confirm a macOS-only failure at normal priority because `taskpolicy -b` slows headless Chrome: a test that fails on a slower host depends on timing, and the fix is to the test. `running-tend` tells the session fixing a red run, which has only a Linux runner, to verify a macOS-only fix by dispatching `ci` on its branch. ## The fixes, by cause Product fixes: - A drafted margin card rose against the window's foot and never came back as the draft shrank (#3524). It now holds the top it opened at and drops back. - A tapped pin reseated 11px lower as it unfolded, because the hold-to-read toggle was pressed before the browser focused it (#3341). - A page's first thread card could cover its passage, because the placement that makes room was dropped while Floating UI loaded (since #1526). - A heading's "Copy link to section" stayed at the heading's far end after the window narrowed and widened, since every engine keeps its last `position-try` fallback (#3836). It now picks its place from the current width. - Putting the response bar away moved focus off the button the press had just focused, so the next `e` found nothing (#3756). - A trace's image-tools status shared a class with the image's loading notice, whose rules hid it (#3707). - WebKit scrolled the outer page 1,386px when a sample editor took focus (#3634). - In draw mode a press left the previous press's release timer pending, so a fast second click reached the page. - Hint refreshes read the geometry of every target inside a closed disclosure, forcing layout of skipped content. - A sidebar page's sticky track clipped focus rings (#3918). A stuck track body now keeps the ring's room inside its edges, so its blocks stand 5px in from each side. - Tab revealed a block's Copy flush with its scroller, cutting its ring (#3916). - The hidden "my change" word inside a choose group took a cell's padding and read as clipped content (exposed by #3837's check). - Visual review case buttons kept their wide padding after the first breakpoint crossing, a Chromium restyle bug avoided by making the case list a plain container. - A held shot's scrolling stage didn't declare that it holds its height (#3703/#3704). - When the log refused a reply, the floating panel's head moved down 69px and the restored draft pushed its controls up 21px (#3400). Through a refusal the panel now holds its head and the field its height, on the holds a press already takes; the refused turn's room goes at the user's next turn. - A reply box's ↑ (edit your last message) appeared only after an unrelated repaint once its last message became editable (#3855). Every message draw, by any thread reader, now recomputes that row's keys. - A trace's images took the page's scroll anchor, so a lane change in the timeline scrolled the page 62px under an arrow key; they no longer anchor scroll. The trace overview wrote its window's new start before reading its size, so for one layout the window ran past its strip and Chromium scrolled the page up to 838px; it now reads before it writes. The image tools' status keeps its line when its text clears. - Web Awesome's radio group moves focus on an arrow with a bare `focus()`, which Leaf's ring scroll margin turned into a page scroll. The vendored bundle is patched (`build/vendor.mjs`) so both calls pass `preventScroll`. - A Leaf page inside an iframe took focus from the page around it when it finished arriving. Its arrival recovery now runs only at top level or in a frame that holds focus. - The margin rail's one Tab stop stayed on whichever row last held it, so a resize could leave it below a row the user sees first. It is now the highest row in view; a focused row keeps it. - A resize that moved a sidebar page's track into the page, with neither place made by the reader, took the track's place over the page's: live-progress jumped 1861px (#3918). On a tie the page's own place wins. - The whole-page rule read a shut disclosure whose children are all generated as showing what it holds (#3908); it now skips only `.lf-ui` apparatus. - The gallery revealed its stamped frame at the centre, carrying the pressed button 45px; it now scrolls only as far as needed. Test fixes: - The Codex fixture copies the running interpreter as `codex`; on a framework Python, as on the runner, the copy fails its code signature and macOS kills it at launch. That broke 39 tests. The copy is now re-signed ad hoc, and the fixture no longer leaks `PYTHONHOME` into the command it runs. - The plain-HTTP copy test missed Chromium's lower-cased host; the event-door refusal test read its answer after the server's reset; the stale-keys sweep raced the browser entering fullscreen; the words watch didn't credit a blur from a press elsewhere. - Several tests read state before it settled (a shown gesture's arm, a side list's smooth scroll, a sample's focus returning, a held reply's menu), and now wait for it. Assertions predating #3830, #3916, #3670, #3673 and #3217 now read the current behavior. - Three waits fixed their own deadline instead of the suite's, among them the async-probe test's 500ms. - The command hub's record now sticks in view, so the Atlas journey opens its news before reading each row; the region-capture journey drags over the unreadable image it means to fail on (#3861 draws only the element that alone paints the crop). - The touch-capture removal test, which fails intermittently on main, now reads the shelf right after the tap and names the elements the tap reached, so its next failure says whether the tap missed or the image came back. - The feature-gallery scroll pass allows a third of its steps to write the contents' `aria-current`, as gestures already do, since the count depends on where sections fall under the platform's fonts. The branch also merges the four open `grind/f-main-tests-*` pull requests, whose fixes cover five more of the run's tests: #3871, #3882, #3887 and #3906. This pull request lands them. Each fix was reproduced failing and then passing by node id, on this Mac or, for a Linux- or runner-only failure, against a run's log, except where its commit says otherwise. Dispatched full runs on this branch ([40156291557](https://github.com/max-sixty/leaf/actions/runs/40156291557), [40186545420](https://github.com/max-sixty/leaf/actions/runs/40186545420), [40196342887](https://github.com/max-sixty/leaf/actions/runs/40196342887)) check both platforms; the second took the macOS job from 86 failures to 38, most of the rest fixed since. A few macOS-only failures pass on every local attempt (two reading-place tests, a scroll repaint, Back from a thread, opening a line under the last, the Android composer's Return, margin-entry order, a card paging on, a turn arriving out of view) and have no fix here; once this lands, the macOS nightly reports them to tend. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 27, 2026
After `m` lands on a question whose `lf-ask` holds an `lf-shot`, a click that flips the shot or drags its divider put focus on one of the shot's own controls, and `c` then opened a comment on the shot rather than on the question the user was walked to. A press on the shot's Pixels button left `c` on the question only because that button is offered chrome, which `OBLIGATION_CONTROL` happens to match. The page's markup was ordinary; the gesture became common when #3704 made Slider the shot's first view and its images click-focusable (on a 2026-10-21 checkout, a click on the shot left focus on the question). `currentTarget` (`browser/runtime/composing/current-target.js`) now reads a question's frame from the markup: focus inside an obligation's context but outside its answer widgets names the context, unless it rests on a datum, a visual part or an addressable element itself. That holds whether the question is answered and however many widgets share its frame. A focused link inside an option still names the option (`test_c_comments_on_what_the_user_is_located_in`). Behavior change: from a control or link in an `lf-ask`'s frame (its heading, prose or evidence such as an `lf-shot`), `c` and `e` target the question instead of the innermost addressable element there. Outside any question nothing changes. New test: `test_c_from_a_shot_in_a_questions_frame_comments_on_the_question`, which fails on the code before this change. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 27, 2026
…7366) `leaf-dev stills` now reads two kinds of geometry fault on both versions of each state it compares, and lists each fault the change adds. Faults both versions share stay out of the report. Max asked for this after a thread card's unread dot came back touching the card's edge: `browser/AGENTS.md` already forbids that, but until now nothing checked it, and each break was found by eye. - **Edges** (`dev/leaf_dev/geometry.js`), in any engine: a box Leaf draws that nearly touches its frame's edge, crosses it, or is cut by it, and a round mark closer to the edge than `--lf-clear` (4px). The floating panel and the margin card draw their outline and rounded corners on a separate layer behind them (`.lf-box-ground`), so the reading takes their edge from that layer. A box's corner is read against every clip around it, the frame and any box between, so a rounded clip nearer than the frame rounds it too. It reads three cases from what the page itself declares, with no rule written for any one widget, and leaves them out: - parts of a Web Awesome component, which keep the library's look; - thumbs: anything inside a `slider` or `scrollbar` role, or moved by a scroll timeline; - marks inside a drawing (`--lf-drawing`). - **Rings** (`dev/leaf_dev/rings.py`), in Chromium only: a focus ring that a clip cuts or another box covers. This is the reading the ring tests already use. It moves out of `tests/render_cases_layout.py` and `tests/page_scripts/` into `leaf_dev`, so the tests and stills call one implementation. In Firefox, its pixel check reported 4 rings on main as unpainted along one edge, and a Firefox screenshot of one of them shows that edge painted. So stills reads rings in Chromium only. **Caught at the commit before each fix, gone at the fix:** - **#7138, the unread dot.** At the commit before #7138, the edge reading flags the dot touching the card's border (`round left 0px`) and cut 1px by the transcript (`cut left -1px`), in Chromium and Firefox. Diffing the commits before and at #6773, which caused it, gives exactly those two findings. Putting #6773's dot placement back on this branch makes stills print exactly those two lines. - **#7256, the deck card's ring.** The ring reading finds it cut 8px on each side and covered at the top and bottom. - **#6395, the file tree search field's ring.** With the field focused, the ring's top edge is 4px outside the tree. No catalogue state focused the field at the time. The edge reading also flags the field itself standing 1px below the tree's top edge. **Not caught:** #6672 (an alignment pass), and a reading of Leaf's boxes overlapping each other, which I built, measured and left out: - On main it found 11 overlaps in Chromium (11 in Firefox), all deliberate and none a defect. Examples: a picture's remove button on its corner, Copy over its code block, a timeline's marks over its gridlines, a margin pin over a board card. - At the commits before the fixes: - #6336: it caught the count badge covering the folded leaf's error dot, but only on a page built the way #6336's test builds it. - #6830: in the catalogue's state, the fold mark crossed the picture by 1px, the same as a seam between two boxes, so it missed. - #6615: list markers have no box to measure, so it can't catch them. **Findings on main, all 334 states:** - **Edges:** 13 findings from 4 causes, the same in Chromium and Firefox. Chromium adds 2 more from a 5th cause, in a state that holds the runtime back, which Firefox can't open. All are real breaks of the rule; there were no false alarms. - **Rings:** 2 findings in Chromium, both false. In each, an overlay scrollbar covers the ring's edge; the stills browser keeps scrollbars visible on purpose. - Since stills reports only faults a change adds, none of these show in an ordinary run. - **Cost:** the reading adds a median of 0.1 s per side of each state (0.3 s at p90, 1.3 s at most), next to about 5 s to open that side. **The live edge breaches, and whether Max chose them** (from `git log -S`/`-L`; this PR fixes none of them): - **The folded leaf's count badge and news dot**, 1px and 3px from its edge: an accident. #3650 shrank the leaf and kept the badges' offsets. - **The unread dot on the corner of a margin pin and a margin entry**, touching the face's border: Max chose the top-left corner (#6627, and a test pins it) and the dot's size (#6340). The touch came from #3796, which listed the dot sitting on the corner as a point for reviewers to look at; nothing records Max choosing it. - **The 1px strip in the screenshot comparison**, between the frame's border and the picture: an accident of #3704's transparent frame border. - **The option list's rounded corners before the runtime loads:** an accident. #6812's `:last-child` rule can't see the `::after` placeholder that holds the Add/Done row's room until the runtime draws it. - **The comparison's divider, cut at the end of its track:** Web Awesome's own drawing, which the reading now leaves alone. **Guidance:** - `browser/AGENTS.md` now says a round mark stands clear by `--lf-clear` and never touches an edge. The old wording said a dot keeps its corners "wherever it stands". Scored with Opus, 3 runs per arm: the old wording called a dot touching the edge a break 0 of 3 times, the new wording 3 of 3. A thumb, and a field meeting its frame's edge, scored the same under both. - `/developing-leaf` now says stills lists the faults a change adds, and that a change hands over none it can fix. Both versions led the model to fix the dot before handing over, 3 of 3. Without the sentence it misread the fault lines as style changes. **Catalogue states:** a separate commit repairs 11 states that failed on main, most after a 2-minute timeout, which cost every stills run that time. `plan-panel-dictating` and `table-scrolled-sideways` now fail in Firefox within 5 s and say why, because Firefox has no surface for them. **Size:** - tooling: +922 / −7, about 280 of it moved from the tests - tests: +48 / −354 - catalogue states: +80 / −39 - docs: +8 / −4 - lint config: +11 / −5 **Tests:** these ring-helper tests pass, run by node id: - `test_panes::test_a_pane_bodys_ring_is_drawn_whole_against_the_workspace_edges` - `test_rings::test_the_focus_sweep_distinguishes_stops_inside_a_live_frame` - `test_threads::test_the_thread_walk_stops_at_each_unsent_comment` - `test_card_reply::test_next_on_me_rings_the_options_a_card_message_asks_with_whole` - `test_focus::test_the_keys_into_and_out_of_a_panel_thread_land_where_keys_act` All 5,721 browser and journey tests collect. ruff, ty, eslint, oxfmt, vulture, typos and knip pass. > _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.
Screenshot comparison now starts in Slider, with labels that mute only when their source is fully hidden. The divider handle stays faint while reading the image and becomes clear on direct hover, keyboard focus, or drag.
The … menu combines scale controls with the pixel color key; before/after pixels use red/green consistently with their source labels. Pair images open their originals directly. Shared image framing matches pasted attachments, and outline interiors remain transparent so they preserve the screenshot’s colors.
Validated with 17 focused browser checks (mouse, touch, keyboard, scrolling, crop and scale), all 533 runtime tests,
pnpm run check, and independent browser review. Authoring guidance and gallery examples describe the new interactions.