Skip to content

fix(lists): let a delivered row take space from the panel below it - #1100

Merged
kitlangton merged 5 commits into
devfrom
live-tail-handoff
Nov 17, 2026
Merged

kitlangton merged 5 commits into
devfrom
live-tail-handoff

Conversation

@kitlangton

@kitlangton kitlangton commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

A queued message can take its place in the list without making Working jump. An app can now name the panel giving up space to the new row. This doesn't turn on motion for the window, scroll a reader back to the end or change reduced motion.

Before: When a panel shrank below a pinned list, the list gained all the space in one frame. Growing just the incoming row didn't help: it pushed the surrounding messages back the other way.

After: If the panel gives up exactly the space gained by the viewport, the shared edge follows the incoming row's presented height. The composer stays put. An unrelated resize still lands normally.

- changed viewport height → land the live rows and viewport immediately
+ named panel gave its height to the viewport → share the incoming row's growth
+ present the new edge before scroll follow and paint use it

Largest actual screen step of Working, same headless Desktop replay at 60 Hz:

Queued messages Before With this opt-in
Two → one 33 pt 3.92 pt
One → empty 45 pt 5.35 pt

Both paths are monotonic and end at the same positions as before. A reader scrolled up had 0 pt drift. Two deliveries three frames apart also settle exactly; at 1× scale the new bubble's last 0.02 pt rounding reversal changed no pixels in its 265 × 42 px crop.

Read: runtime/virtual/handoff.rs checks that the panel and viewport actually share an edge. Updating the frame track isn't enough: the viewport needs the new presented rectangle during the same frame, even when no scroll callback requests another presentation.

Checks run
  • cargo test -j 2 --locked -p rune --lib live_tail_motion_gate: the 40 pt panel drew at zero on the delivery frame before the presentation fix. The unchanged no-snap assertion and the added first-frame proportion check now pass: 3 tests passed, 390 motion-gate frames, zero findings or allowances.
  • Built the Desktop consumer and ran its 510-frame busy-deliver fixture, plus scrolled-away, reduced-motion, history, restored-place and interrupted-delivery controls. cargo check -p session-view --examples passed with the patched dependency. No Desktop dependency change in this PR.
queue-handoff.mp4

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.

1 participant