Repository navigation
fix: keep thread controls still when working message arrives - #2752
Merged
Merged
Conversation
This was referenced Oct 13, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 13, 2026
The constrained margin scroll test prepends a 300 px scroller, then assumes its new target is visible. In [main CI run 38392091985](https://github.com/max-sixty/leaf/actions/runs/38392091985), browser scroll anchoring left the target and its correctly aligned margin row at `top: -106`; the visibility assertion failed before the test made its first inner scroll. This change brings the new target into view after rendering, then checks the same margin alignment and visibility through every scroll step. The `sticky-ancestor` case failed on current `main` before the change. After it, all three constrained-position cases passed locally (`uv run pytest -q -n0 'tests/browser/test_render_margin.py::test_observed_scroll_retains_the_seat_of_a_constrained_target'`). The run's other failures have separate repairs in #2748, #2749, #2752, and #2753. Co-authored-by: leaf-agent <[email protected]>
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.
A new working message grew the transcript above the reply editor, so reading continuity preserved the editor and passage by scrolling the page while moving the Resolve control away from a resting pointer. Held thread news now treats the working message’s arrival or departure as a size change: when that growth is visible, the thread keeps its drawn transcript and shows a fixed-row work notice. The page banner continues to show the current work line, and an idle open Threads panel can still show work as it arrives.
The existing browser regression reproduced a 69 px Resolve shift before this change and now passes with the editor, passage, and pointer target still in place. The focused working-message browser test and
pnpm run test:runtimealso pass.Closes #2751 — automated triage