Repository navigation
Leave the margin card's transcript where the reader put it, and ring its pinned reply whole - #828
Merged
Merged
Conversation
…its pinned reply whole Two defects in the margin's inline conversation view, each reproduced before the fix. The transcript moved while the agent worked. Every state read places the card, and placing it wrote the list's scroll: keepThreadPreviewFocusVisible nudged the list 12px toward the focused reply, a check the pinned reply can never satisfy because it always sits on the list's foot. On main that pulls a reader who scrolled up back down 48px per agent status. The runtime the reported page ran (4d329c6) also wrote a provisional height cap before its final one, so the list briefly grew and clamped its scroll; after a real scroll gesture to the end, a status parked the reader about a third of the way up. #810 removed the provisional cap; this removes the scroll write. Placement now changes only the card's geometry, and only a landing, a send, or a step to another thread moves the transcript. The reply's ring was cut along its bottom. The reply row is sticky at the list's foot, and scroll-padding, where the list reserves ring room, does not reach a sticky offset, so the focused text box's outline fell outside the scrollport. The row now keeps --here-ring-room as bottom padding, and chrome.css's ring law covers sticky rows. Two new tests in test_render_margin.py fail on each defect on main and on 4d329c6: one reads both of the pinned row's rings with the layer's ring reading, the other writes working and waiting statuses with the reader partway and at the end, with scroll anchoring off so the reading is the placement's own. Co-Authored-By: Claude Opus 5 <[email protected]>
leaf-agent
approved these changes
Sep 19, 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.
Two defects in the margin's inline conversation card, both found while reading a live Leaf page an agent was working on, and both reproduced before being fixed.
The transcript moved while the agent worked. Every state read places the card, and placing it wrote the list's scroll:
keepThreadPreviewFocusVisiblenudged the list 12px toward the focused reply, a check the pinned reply can never satisfy because it always sits on the list's foot. On main that pulls a reader who has scrolled up back down, 48px per agent status. The runtime the reported page runs (4d329c62) also wrote a provisional height cap before its final one, so the list briefly grew and clamped its scroll; after a real scroll gesture to the end of the thread, a status parked the reader about a third of the way up. #810 removed the provisional cap, and this removes the scroll write. Placing the card now changes only its geometry; only a landing, a send, or a step to another thread moves the transcript, whichskills/leaf/assets/CLAUDE.mdnow records as its own row in the ownership table.The reply's focus ring was cut along its bottom. The reply row is sticky at the list's foot, and
scroll-padding, where the list reserves ring room, governs where scrolling puts a box rather than where a sticky offset pins one — so the focused text box's outline fell outside the scrollport and was clipped. The row now keeps--here-ring-roomas bottom padding, and the ring law inchrome.css's header covers sticky rows.Two tests in
tests/test_render_margin.py, each red on its own defect on main and on4d329c62: one reads both of the pinned row's rings through the layer's own ring reading, the other writes working and waiting statuses with the reader partway up the transcript and at its end. That second test switches scroll anchoring off on the transcript, because the browser's anchoring restores a place a placement disturbed within one task — the headless shell restored it in every run, while headed Chrome scrolled by a real gesture kept the disturbed place.Removing the focus-arrival scroll leaves a focused control inside a message able to drift out of view when the window shrinks; Tab arrivals still reveal natively and the runtime's own landings reveal explicitly.
🤖 Generated with Claude Code