Repository navigation
feat(lists): let live rows grow and trade places without moving the rest of the window - #1085
Merged
Merged
Conversation
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 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
✅ After
📊 Matched 60 Hz replay, measuring screen position rather than subtracting the scroll motion:
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.streaming,session, andbusy-deliverwith--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.