Skip to content

feat(lists): let live rows grow and trade places without moving the rest of the window - #1085

Merged
kitlangton merged 2 commits into
devfrom
feat/live-tail-growth
Nov 16, 2026
Merged

kitlangton merged 2 commits into
devfrom
feat/live-tail-growth

Conversation

@kitlangton

@kitlangton kitlangton commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

A list can let live rows grow and trade places without animating the rest of its window. Apps opt in for a particular list on a particular update. A reader looking at earlier rows stays put.

🔍 Origin: incoming replies and pending messages jumped in a chat timeline.

❌ Before

  1. A reply wraps or a question arrives. Its row takes its final height at once and moves the text the reader was following.
  2. A pending message crosses the Working label in one frame, even though the message keeps its identity.

✅ After

  1. A visible row at the end grows under a linear feather; the reader sees the same text move with it.
  2. Rows that trade places slide. Their contents ride along, even when the space above the text changes. First paint, reduced motion and explicit instant changes still land.
- apply every row change in an incoming update at once
+ on request, use the named list's existing row springs at its visible end
+ leave other layout, including a simultaneous viewport resize, alone

📊 Matched 60 Hz replay, measuring screen position rather than subtracting the scroll motion:

Measure Before After
Answer row, first height (157 pt when settled) 157 pt 6.78 pt
Preceding reply, largest step during that arrival 157 pt 18.66 pt
Wrapped reply, largest step on a new line 22.40 pt 8.43 pt
Working label, largest step as a pending message crosses it 81 pt 10.25 pt

Same frames before and after an answered question arrives

Answer, quarter speed · The pending message crosses Working, quarter speed

Keeping either the mount-at-full-height rule or the immediate resize rule reproduced the answer jump. Keeping only the immediate resize rule also reproduced the wrap jump. The poll-driven motion gate covers a live delivery and a reader above the end.

👀 Read: runtime/commit/apply.rs, where the list distinguishes newly inserted rows from remounts and lets only previously visible rows cross. A queue tray that shrinks in the same update still moves the viewport in one step; this change deliberately does not animate the tray.

Observed in a synthetic chat replay. Frame geometry, not a desktop presentation benchmark.

Checks run
  • scripts/file-size.sh: passed, including folder shape.
  • git diff --check: passed.
  • cargo --config "$paths" build --offline -j 2 -p opencode-desktop --no-default-features --features knobs: built the consuming app against the patched framework.
  • Replayed fixture scenes streaming, session, and busy-deliver with --size 1024x720 --scale 1 --zoom 1 --scheme dark --theme dark --fps 60 --trace. Same event clocks for each pair. The earlier-history anchor held and preloaded rows appeared whole.
  • sh scripts/motion-audit/scenarios/live-tail.sh: 260 frames, zero findings, zero allowances. Also checked explicit instant child layout, width rewrap, a trailing sibling, and merged poll requests. No wall-time speedup claimed.

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