Skip to content

fix: preserve paused auto-scroll on completion#13

Merged
YishenTu merged 2 commits into
mainfrom
confirm-final-autoscroll
Feb 28, 2026
Merged

fix: preserve paused auto-scroll on completion#13
YishenTu merged 2 commits into
mainfrom
confirm-final-autoscroll

Conversation

@YishenTu
Copy link
Copy Markdown
Owner

@YishenTu YishenTu commented Feb 28, 2026

This fixes chatpanel auto-scroll so full reconciliation renders no longer override a user’s manual scroll-up state.
The completion path now respects the same auto-follow state used during stream updates, preventing the final snap to bottom when a response finishes.
A regression assertion was added in tests/unit/chatpanel/app/regen-flow.test.ts to verify scroll position remains unchanged after completion triggers history reload.
Validation: bun test tests/unit/chatpanel/app/regen-flow.test.ts and bun test tests/unit/chatpanel/features/messages/scroll-follow-state.test.ts.

@YishenTu YishenTu merged commit d36b5ac into main Feb 28, 2026
1 check passed
@YishenTu YishenTu deleted the confirm-final-autoscroll branch February 28, 2026 08:09
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