Repository navigation
feat(mobile): pull-to-refresh reloads chat history from durable journal - #835
Merged
Merged
Conversation
The visible conversation can drift from the durable journal (dropped live frames, paging windows that never rejoined), and the only existing recovery is automatic reconcile — with no manual escape hatch when it leaves the timeline wrong. Pulling down on the transcript now restarts the session's sync lane from durable history (the same heal an open/reconnect runs), with the spinner bound to the lane's sync status so it clears when the refresh settles.
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.
聊天页时间线偶尔会和持久化 journal 脱节(老消息被吃掉、live 帧丢失后分页游标没接上),此前只能靠自动 reconcile 自愈,没有手动兜底入口。
本 PR 在会话页加下拉刷新:下拉会 restart 该会话的 sync lane(和打开/重连走同一条从 durable history 重建的路径),转圈状态绑定 lane 的 sync status,刷新收敛后自动停止。
useTimelineController: 新增reloadTimeline(restart lane,走既有 open reconcile)RemoteContext: 透传reloadTimelineChatScreen: FlatList 挂RefreshControl(inverted 列表下 spinner 渲染在视觉顶部),草稿态/离线时禁用