Repository navigation
Give a margin card room for an open progress group's border, and name each message's change once - #2491
Merged
Conversation
… each message's change once An open progress group draws its border 6px past the transcript's end (#2294). The margin card's transcript scrolls, so that overhang clipped the border's right edge and let the card scroll 6px sideways. The transcript now takes that room from the card's inset, `--lf-group-ring-end`, which the border reads too, so the words keep their width and nothing scrolls sideways. Held news read a message's change in three overlapping tests that #2294 and #2300 each extended. `messageChange` now names it once: joined, completed, rewritten or grew. The notice counts are unchanged. The stability contract said an answer folding the progress at a thread's end may move that progress. Since #2294 a run on screen stays open where it stood and one off screen folds away, which is what the contract now says. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 12, 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.
Follow-ups to #2294, which draws an open progress group's border around its messages so an answer folding the progress a reader is on moves none of their words.
A margin card clipped that border and could scroll sideways. The border overhangs the transcript's end by 6px. In the Threads panel that lands in the card's inset, but a margin card's transcript scrolls, so the overhang cut off the border's right edge and let the card scroll 6px sideways (measured at 390px:
scrollWidth316 againstclientWidth310). The overhang is now one token,--lf-group-ring-end, which the border reads and the margin card's transcript takes as room from the card's inset (annotation-chrome.css), so the words keep their width and the transcript no longer scrolls sideways.Held news names each message's change once.
difference()inthread/held-news.jsread a message's change through three overlapping tests that #2294 (streaming) and #2300 (rewrites) each extended.messageChangenow returnsjoined,completed,rewrittenorgrew, and the loop counts from that. The notices are unchanged.The stability contract matches the code.
skills/leaf/assets/AGENTS.mdsaid an answer folding the progress at a thread's end may move that progress; since #2294 a run on screen stays open where it stood and one off screen folds away.Runtime tests (350), the notice and fold browser tests (106), the margin card tests (282) and the thread appearance snapshots pass locally.