修复 thinking block 和 subagent block 在流式输出时会强行重置block内部滚动条位置#127
Open
SsparKluo wants to merge 3 commits into
Open
修复 thinking block 和 subagent block 在流式输出时会强行重置block内部滚动条位置#127SsparKluo wants to merge 3 commits into
SsparKluo wants to merge 3 commits into
Conversation
Only auto-scroll to bottom when user is at/near the bottom of the capsule scroll area. If user has scrolled up to read earlier content, new streaming content won't force-scroll them back down.
Follow the same pattern as the reasoning block fix — track whether user is at the bottom (32px threshold) and only auto-scroll when they are.
Align all auto-scroll thresholds (ReasoningPartView, SubSessionView) with the existing BashRenderer threshold of 60px for consistency.
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.
目前流式输出的时候,会强行把 thinking block 和 subagent block 的滚动条位置重置到底部,体验很差。现在匹配了 bash 的 block 的阈值,只有在 底部 60px 内才会被重置,否则保持位置