Repository navigation
fix(flowchat): stabilize history scrolling and smooth navigation - #3636
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.
Summary
Type and Areas
Type: Bug fix / performance / regression fix / tests / docs
Areas: Web UI FlowChat viewport、virtualization、session restoration;Desktop E2E fixtures。
Motivation / Impact
长历史滚动时,新行的实际高度会先改变内容布局,延后的测量及锚点重复补偿可能造成视口反向移动。会话重新挂载后的高度缓存也可能让原绝对 scrollTop 指向另一轮对话。本改动保持阅读位置并减少滚动处理中的重复读取。
强制测量只补足普通滚动路径;显式定位保留虚拟器的测量策略。用户接管时先取消定位,首个滚动提交仍会立即测量新行。
Verification
pnpm run type-check:web— passed。pnpm --dir src/web-ui run lint— 0 errors;其他文件中有 16 条 warnings。pnpm run motion:audit— 已完成;这是意图清单,不是性能或视觉验收。git diff --cached --check— passed。node scripts/check-git-object-sizes.mjs --base origin/main --head HEAD— passed。Reviewer Notes
Checklist