Repository navigation
Seat a pin beside its target only where no other block stands - #3889
Merged
Merged
Conversation
After a card moved between board columns, its "Sent" pin stood in the 8px gap between columns and 11px into the next column's card, so it read as that card's. A pin's first seat, just outside its target's top-right corner, had to clear only words, controls and media, not a neighbouring block's box. coverIn now answers beside(seat): whether a shown box that is not the target's, does not hold it and is not display: inline stands there. seatsBy offers its two outside seats (beside the corner, after a run's last word) only where none does, and leaves a null in their place so `corner` keeps indexing the inside seat. seatRows's leastCovering skips a null seat, and a folded pin reads its width from the corner seat. The rule holds for board columns, tiles, grid cells and panes alike. triage-board, 1440x900, keyboard move: the pin went from x 262-293 (over card-export) to x 223-254 on the moved card. Phone placement is unchanged (390 wide, destination move: x 281-330 on both). `leaf-dev pins` gains a `board` case and a `beside` fault, which the base shows and this tree doesn't; stills gain triage-moved and triage-moved-touch. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…rhang A seat beside a run of words is as tall as the pin (44px), while a line is about 27px, so the seat overhangs the block below. beside() refused the seat whenever that block started inside the overhang: on release-notes at 390x844 touch, the rn-sug-dry suggestion lost its seat after its last word and folded to one toggle over the next paragraph, so accepting or rejecting took an extra press. seatsBy now asks beside() only about the seat's span level with the part it stands by (the subject's box for the corner seat, the last line for the seat after the last word). A neighbour beside the target, as the next board column is, still refuses it; a block below no longer does. seatsBy moves to margin-placement.js beside seatRows. Given its rects and a `beside` predicate it answers from its arguments alone, so tests/runtime now covers the overhang, the neighbour, and the null seat that keeps `corner`'s index. rn-sug-dry is back at (282,632)-(379,676), as on main. Stills on release-draft-phone and 19 other pin-bearing states: only triage-moved changes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
stills keeps both this branch's triage-moved states and main's walkthrough-wide. The kernel is rebuilt from the merged runtime. Co-Authored-By: Claude Opus 5.5 <[email protected]>
max-sixty
marked this pull request as ready for review
October 27, 2026 05:30
stills keeps both this branch's triage-moved states and main's walkthrough state. The kernel is rebuilt from the merged runtime. Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
approved these changes
Oct 27, 2026
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.
After a card moves between board columns, its "Sent" pin now stands on the moved card, down its right edge below the grip. Before, it stood in the gap between columns, over the next column's card.
Cause. A pin's first seat is just outside its target's top-right corner. That seat only had to stay clear of words, controls and media (
coverIn's cover); a neighbouring block's own box wasn't checked. Ontriage-boardthe gap between columns is 8px, and a card's text starts about 35px past the moved card's edge. The 31px pin cleared the words but stood 11px into the next column's card (card-export), so it read as that card's. The same happened to a suggestion's pin inside a board card: on thetest_suggestionsboard at 820px,sug-in-card's pin stood 26px into the "Done" column.Change.
coverIn(browser/runtime/annotation-overlay/margin-layout.js) now also answersbeside(rect). It is true when a shown box stands there that isn't the target, doesn't hold it, isn't held by it, and isn'tdisplay: inline. Inline boxes are left out because they span the empty ends of their lines, and their words are already cover.seatsByoffers its two outside seats only wherebesideis false for the seat's span level with the part it stands by. That part is the subject's box for the corner seat and the last line for the seat after the last word.null, socornerstill indexes the inside seat.seatRowsalready letpinSpotskip a null seat.leastCoveringnow skips one too, and a folded pin reads its width from the corner seat instead ofseats[0].seatsBymoves tomargin-placement.jsbesideseatRows. Given its rects and abesidepredicate, it answers from its arguments alone, sotests/runtimecovers it.Evidence.
uv run leaf-dev probe triage-board --do drive:card-grabbed --do press:Enterat 1440×900, reading the pin and card rects.card-export(x 282–474).card-tz(x 66–258).release-notes'rn-sug-drysuggestion pin is at (282,632)–(379,676) on both base and head: two controls after its last word.notes/agent-usability-evals.md.leaf-dev pins --base:boardcase (a reallf-board) and abesidefault: a pin over another block level with its target.beside (board-now-0)at desktop; head shows no faults.tests/browser/margin/test_pins.pyasserts the gallery, so it now fails on the old rule.leaf-dev stillsran on 20 pin-bearing states:release-draft-phone, the newtriage-moved(keyboard move, desktop) andtriage-moved-touch(destination button, phone).triage-movedchanges as above.triage-moved-touchandrelease-draft-phoneare unchanged.margin-gallery-phonediffers only in the panel's status text ("Codex away" vs "14 agent messages"), which is timing.retained-quote-touchdiffers because its driver'sif full.count(): full.click()races. The "Full quote" disclosure was open in base and closed in head on one run, and the other way round on the next.tests/runtime/margin-placement.test.mjsadds two cases:seatsBywith a block 15px under the last line (seat kept) and a block level with the words (both outside seatsnull). Without the clip, the overhang assertion fails.seatRowspassing over null seats at either size. This fails on main'sseatRowswith aTypeError.Tests run.
pnpm run test:runtime: 551 pass.tests/browser/margin/test_pins.py,test_clusters.py,test_card_placement.py,tests/browser/test_render_send_placement.py,tests/browser/widgets/test_suggestions.py: 103 pass, 2 fail..lf-margin-clusterordata-lf-place: 702 pass, 3 fail. They are:test_suggestion_controls_stay_out_of_the_column(both motion settings) andtest_workspace_root_scrollbar_appears_only_when_page_overflows. All three also fail on the merge base's margin runtime, so this change doesn't cause them.sug-refill's pin as covering words at 820px on both base and head. Its word reading includes a text box at x 627–765 that the runtime's cover doesn't see.sug-in-card's pin covers no words on head.dist/kernel/from the merged runtime;pnpm run test:runtime(670 pass),test_pins.pyandtest_clusters.pypass on it.Not verified.
Calls Max may reverse.
besidecounts any non-inline box level with the target, including an unpainted wrapper.