Skip to content

修复 thinking block 和 subagent block 在流式输出时会强行重置block内部滚动条位置#127

Open
SsparKluo wants to merge 3 commits into
lehhair:mainfrom
SsparKluo:feat/smart-scroll-blocks
Open

修复 thinking block 和 subagent block 在流式输出时会强行重置block内部滚动条位置#127
SsparKluo wants to merge 3 commits into
lehhair:mainfrom
SsparKluo:feat/smart-scroll-blocks

Conversation

@SsparKluo

Copy link
Copy Markdown

目前流式输出的时候,会强行把 thinking block 和 subagent block 的滚动条位置重置到底部,体验很差。现在匹配了 bash 的 block 的阈值,只有在 底部 60px 内才会被重置,否则保持位置

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.
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