fix: stabilize latest tail anchoring for long sessions#1126
Merged
limityan merged 1 commit intoJun 9, 2026
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.
Summary
Root Cause
The static initial-history path could treat a tall latest model round as successful once any part of that turn was visible. In dense history, that left the final viewport about 1068 px above the physical bottom while still showing latest content, so the old E2E checks did not catch it.
Measurement
Release-fast build, same long-session fixtures, latest upstream baseline
7e69cc5. Candidate values are two runs; baseline is one latest-main run. Negative delta is faster or closer to the tail.Visual guard results for dense and mixed candidate runs: post-latest loading events 0, blank surface events 0, scroll-jump events 0.
Risk / Impact
Verification
pnpm run type-check:webpnpm run desktop:build:release-fastpnpm run check:repo-hygienepnpm --dir tests/e2e run test:perfwith dense fixtureperf-anchor-afbff844-dense-a-001pnpm --dir tests/e2e run test:perfwith mixed fixtureperf-anchor-afbff844-mixed-a-001