Skip to content

feat(mobile): pull-to-refresh reloads chat history from durable journal - #835

Merged
huichen merged 2 commits into
mainfrom
fix/pull-refresh-history
Sep 25, 2026
Merged

huichen merged 2 commits into
mainfrom
fix/pull-refresh-history

Conversation

@huichen

@huichen huichen commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

聊天页时间线偶尔会和持久化 journal 脱节(老消息被吃掉、live 帧丢失后分页游标没接上),此前只能靠自动 reconcile 自愈,没有手动兜底入口。

本 PR 在会话页加下拉刷新:下拉会 restart 该会话的 sync lane(和打开/重连走同一条从 durable history 重建的路径),转圈状态绑定 lane 的 sync status,刷新收敛后自动停止。

  • useTimelineController: 新增 reloadTimeline(restart lane,走既有 open reconcile)
  • RemoteContext: 透传 reloadTimeline
  • ChatScreen: FlatList 挂 RefreshControl(inverted 列表下 spinner 渲染在视觉顶部),草稿态/离线时禁用

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.
@huichen
huichen enabled auto-merge (squash) September 25, 2026 12:45
@huichen
huichen merged commit 2e44afa into main Sep 25, 2026
12 checks passed
@huichen
huichen deleted the fix/pull-refresh-history branch September 25, 2026 12:48
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