You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Side-comment rail rechoice and diagram-scroller follow tests fail since #7363 keyed the fresh choice on the target's width #7380
Two browser tests about a comment box beside words that move sideways have failed on every run since #7363:
tests/browser/test_render_aim.py::test_a_side_comment_rechooses_its_rail_after_horizontal_target_motion[inline] and [ancestor]: after translateX(600px) on the paragraph (or on its parent), the box keeps data-lf-placement="right-start", and the test expects left-start.
tests/browser/test_render_reactions.py::test_a_visual_action_follows_its_own_scroller_even_when_the_target_is_gone: after the diagram scrolls 24 px sideways in its own box, the diagram part moves 17 px and the box moves 11 px. The test allows a difference of 2 px, and this one is 6 (abs((123 - 134) - (17 - 34))).
Bisect: run together with uv run pytest -n0 -q, all three cases pass on 5ce72be74^ and fail on 5ce72be74 (#7363) and on current main (b008b0d73).
Diagnosis so far:#7363 changed commentPlacement's choose (browser/runtime/annotations/annotation-overlay/comment-placement.js). The input that makes it choose a side afresh used to be keyed on the target's left and right edges, and is now keyed on its width (key = {unanchored, boundary, width}). That stops a sideways scroll of a box around the log from choosing afresh, which is what #7363 intended. It also stops the choice when a transform carries the paragraph 600 px toward the right rail, so the box stays on a side that no longer has room. That case is the one the aim test protects ("Reference geometry, not content size, invalidates the chosen margin rail"). #7363 also removed the separate inline offset, so every landing keeps its held edge's offset from the column. The reactions test's 6 px lag, in a box beside a part of a scrolled diagram, follows that change, though I haven't traced the exact path. A repair that keeps #7363's intent would keep the side through motion the words and their box share, and choose afresh when the held side's room no longer fits the box. Whether that is the rule is the question the fix settles.
#7383 fixes both failures. The rule is the one the diagnosis proposed: keep the side through shared motion, and choose afresh when the held side's room no longer fits the box.
Diagram lag: the 6 px came from the carried offset being measured from clear.left, the part's clipped edge. Once the diagram's box clipped the part, that edge stopped moving. Without the old edge key nothing placed the box afresh to hide it. The offset is now measured from extent.left, the part's whole box.
All three cases fail on main and pass on the branch. The runtime suite and the focused placement browser tests pass too. The PR's CI and landing are with the tend-land workflow.
Activity
leaf-agent commentedon Nov 27, 2026
#7383 fixes both failures. The rule is the one the diagnosis proposed: keep the side through shared motion, and choose afresh when the held side's room no longer fits the box.
choosealso chooses afresh when the room beside the subject on the side it holds no longer fits the least card width.commentSideuses the same test. A sideways scroll that leaves room still keeps the side, as Move a comment box with words scrolled sideways, start it at a right-to-left quote's first word, and keep a slim card's news count whole #7363 intended.clear.left, the part's clipped edge. Once the diagram's box clipped the part, that edge stopped moving. Without the old edge key nothing placed the box afresh to hide it. The offset is now measured fromextent.left, the part's whole box.All three cases fail on
mainand pass on the branch. The runtime suite and the focused placement browser tests pass too. The PR's CI and landing are with the tend-land workflow.