Skip to content

Leave the margin card's transcript where the reader put it, and ring its pinned reply whole - #828

Merged
max-sixty merged 2 commits into
mainfrom
thread-scroll-and-reply-border
Sep 19, 2026
Merged

max-sixty merged 2 commits into
mainfrom
thread-scroll-and-reply-border

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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: 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 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, which skills/leaf/assets/CLAUDE.md now 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-room as bottom padding, and the ring law in chrome.css's header covers sticky rows.

Two tests in tests/test_render_margin.py, each red on its own defect on main and on 4d329c62: 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

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 2 commits September 18, 2026 19:44
…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]>
@max-sixty
max-sixty merged commit 0cb373e into main Sep 19, 2026
5 checks passed
@max-sixty
max-sixty deleted the thread-scroll-and-reply-border branch September 19, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants