fix(web): settle the measured end when a thread first opens #26028
Closeddiddletime(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/26028/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
juliusmarminge added labelsbugfix
juliusmarminge added labelspr:gate-failed
tanstack-source added labelsbug
juliusmarminge closed this
Sign in to join this conversation.


No actionable comments were generated in the recent review.
6f528698-3ce5-4bf4-afd4-47d8760a8dd0Reviewing files that changed from the base of the PR and between dc84b0962efa4f4e05ef392c08986a9cd7c994d1 and 0f0947856ff0ecd9c20683fed8f1c4c71f16ee29.
apps/web/src/components/chat/MessagesTimeline.tsxapps/web/src/components/chat/useTimelinePositionRestore.test.tsapps/web/src/components/chat/useTimelinePositionRestore.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Walkthrough
The timeline now initializes without a positioned thread key. When the remembered position is not before the end, restoration settles at the measured end, including when no initial scroll was requested. A test verifies the measured offset after 100 ms.
Changes: Timeline restoration
apps/web/src/components/chat/MessagesTimeline.tsx,apps/web/src/components/chat/useTimelinePositionRestore.ts,apps/web/src/components/chat/useTimelinePositionRestore.test.tspositionedThreadKeynow starts asnull. End settlement no longer requires an initial scroll operation. The test checks that the list scrolls to the measured end offset after 100 ms.Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
Suggested reviewers:
t3dotggMerge Risk:
Minimal · up to
0f094The initial-open change has no identified merge-blocking risk; normal checks remain appropriate.
Pre-merge checks:
4
Full details: Description check
Explanation
The description explains the problem, change, affected opening path, verification results, regression evidence, screenshots, recording, issue reference, and agent attribution. It does not use the template headings or provide explicit maintainer approval, but the content is otherwise mostly complete and focused.
Finishing Touches
🧪 Generate unit tests (beta)
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment `@coderabbitai help` to get the list of available commands.