mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1106] [CLOSED] web: follow streaming Thinking and preserve reading position #3029
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3029
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1106
Author: @medking82
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:codex/fix-thinking-scroll-new-main-20261006📝 Commits (1)
2aeb31cweb: follow streaming Thinking and preserve reading position📊 Changes
2 files changed (+168 additions, -7 deletions)
View changed files
📝
serve/web/app.js(+11 -7)➕
tools/test_chat_scroll.cjs(+157 -0)📄 Description
Streaming reasoning can fill the capped Thinking pane while its scrollbar stays at the old position. A large answer delta can also move a chat that was following the bottom outside the follow threshold before the old check runs.
Capture scroll intent before updating either pane, follow Thinking independently, and preserve manual scroll-up and disclosure choices. Apply the same behavior to the final unpainted chunk; explicit tool-disclosure repaints keep the user's reading position.
Replacement for #1075 after the upstream history rewrite, based on new main
82f46a8c8f475f001ad76d92f58f4a4f8ffb0253. Contains one fix commit and onlyserve/web/app.jsplus its regression tests.Validation:
node --test tools/test_chat_scroll.cjs: 10/10 pass. Five of the original nine checks fail on unchanged new main; the additional tool-disclosure check was also reproduced failing before its correction.node --check serve/web/app.jsandgit diff --check origin/main: pass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.