Repository navigation
fix(mobile): open a chat already at the latest message - #2514
Merged
Merged
Conversation
The list was revealed after one frame without a size change, but FlatList renders rows in batches about three frames apart, so it often showed mid-layout and visibly chased the end. It now waits for several stable frames, and older history loads only after the Human drags. Refs #1845 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01U22S26HTx4etvoWKCpeMnQ
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 21, 2026
Closed
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.
Reported by Vain on iOS: opening a chat seemed to start partway up, maybe at the unread position, then visibly scroll all the way to the bottom, possibly loading more history on the way.
Why the change
A chat should open already showing its latest message. Instead it visibly scrolls down to the bottom after opening, and can trigger load-more along the way.
Issue / Discussion: Refs #1845
Special things to note
focus) opens at a specific message. The list stays hidden (opacity: 0) untiluseFollowLatesthas pinned the end and the content has settled.confirmrevealed the list after a single frame without a size change, which often falls between two batches. The list became visible mid-layout and then visibly chased the end as the remaining batches arrived.onStartReachedwas enabled as soon as the list was revealed. If it was revealed while few rows had rendered, the list was near its start and loaded older history on its own.STABLE_FRAMES(6) consecutive frames with no size change. The safety capSETTLE_FRAMESis raised from 12 to 45 frames, so a busy chat still shows within about 0.75 s.onStartReachedonly loads older history after the Human has dragged the list (browsed). Search focus still loads older pages through its own path.vitest apps/mobile: 1038 passed, 9 skipped, including new cases for batch-rendered rows and drag-gated load-more. The test frame flush allows more rounds now.apps/mobiletscandpnpm lintpass.Change outline
confirm(version)used to reveal after 1 stable frame. It now reveals after 6 stable frames, or after 45 frames at most.onStartReachedused to be enabled whenready. It is now enabled whenready && browsed.Generated by Claude Code