Skip to content

fix: keep thread controls still when working message arrives - #2752

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-2751
Oct 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-2751

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

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:runtime also pass.

Closes #2751 — automated triage

@leaf-agent
leaf-agent merged commit 8cf80b8 into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-2751 branch October 13, 2026 12:43
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]>
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.

Live working message shifts the reader’s resting thread target

1 participant