Skip to content

fix(mobile): preserve chats and drafts on unstable connections - #483

Open
cunoe wants to merge 6 commits into
mainfrom
fix/mobile-chat-loading
Open

cunoe wants to merge 6 commits into
mainfrom
fix/mobile-chat-loading

Conversation

@cunoe

@cunoe cunoe commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

移动网络延迟较高、切换助手或重连时,旧请求会阻塞当前对话读取,手机把尚未加载的历史显示成新对话空态。修复后,读取归属于当前对话和连接,保留已加载记录,并明确显示加载、失败重试、缓存只读和真正空对话。

手机按个人网络、设备和对话缓存最近聊天记录及草稿。缓存不触发发送或已读确认;只有当前前台对话中实际加载的记录才能确认已读。发送结果未知时保留待确认消息和草稿,旧失败不会覆盖新输入。连接问题使用可展开的轻量状态提示,首页读取失败也提供只读重试入口。

真机验收还发现历史 steered 任务被误认为仍在等待独立回复,导致开发助手空闲时一直显示“思考中”。这些追加输入实际并入另一条回复,不会单独生成回复;此次修正保留真实运行状态及已完成回复尚未同步时的衔接。

验证:

  • 最终提交 ba202622cd4d3876d3a09bdd27d6d84c00596d5c,App 测试252/252、共享客户端测试198/198,Client和Mobile类型检查通过。
  • 回归覆盖旧A请求阻塞新B、加载失败、未读确认、缓存隔离、离线草稿、发送结果未知、首个助手创建及steered任务结束后的回复状态。
  • 现有Chrome通过CDP验收onboarding与chat-confidence,两条完整路径均通过。
  • 最终APK已在真实Android手机使用4G及Clash验收:三个原有助手历史和输入就绪状态正常,重连期间保留缓存,强制停止后历史和草稿恢复,开发助手空闲时不再误显示“思考中”。测试草稿已删除并确认切换后保持为空,没有发送真实消息。
  • 最终HEAD的完整CI及制品构建均成功,publish=false,发布与部署步骤跳过。Android不可变artifact13576333166的ZIP/APK摘要、来源、实际manifest、双ABI安全库、缓存键和原安装签名均已核验。已通过adb install -r保留数据安装,在机APK摘要与CI制品一致,最终真机复测通过。

改动集中在客户端读取归属、手机缓存与恢复体验,不改动协议或个人数据。PR待审核,尚未合并或公开发布。

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

这次不合并。和当前 main 冲突,落在对话页、手机列表、live.tsx 和共享 workspace context。这些文件在问题卡片、设置整合和时间线改动之后又改过。分支里的 local-records.ts 和 connection-health.ts 在 main 上不存在。

描述中的真机和 CI 记录属于旧 head ba202622。缓存、草稿和已读确认会改变离线行为,冲突未解决时不能当作已经验收。需要先合到当前 main,再重跑原来列出的回归:旧请求不能堵住新对话、加载失败、未读确认、缓存隔离、离线草稿、发送结果未知。

View PR

Open in Web View Automation 

Sent by Cursor Automation: Vibeface 清理

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

本轮仍不合并。

对照 main @ 4ca16a8d:GitHub 仍是 CONFLICTING。local-records / connection-health 以及会话级本地缓存还没进主分支;main 只有 last-seen 和较浅的 bot-drafts 文本草稿。断线丢聊天/草稿的问题仍在。

冲突落在 [botId].tsx、live.tsx、workspace/context.tsx,这些文件在问题卡片、设置整合和时间线改动之后又改过。描述里的真机和 CI 记录属于旧 head ba202622,不能当作当前提交的验收。

请作者按当前 main 重做冲突区,再重跑旧请求不能堵住新对话、加载失败、未读确认、缓存隔离、离线草稿、发送结果未知。清理轮次不代 rebase。

View PR

Open in Web View Automation 

Sent by Cursor Automation: Vibeface 清理

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

本轮仍不合并。

对照 main @ 9300b1f:仍是 CONFLICTING。local-records / connection-health 还没进主分支;main 只有 last-seen 和较浅的 bot-drafts。冲突仍在 [botId].tsx、live.tsx、workspace/context.tsx 一带,这些文件在 GPUI 和后续工作区改动之后又变过。

描述里的真机和 CI 记录属于旧 head ba202622,不能当作当前提交的验收。请按当前 main 重做冲突区并重跑离线草稿、缓存隔离、发送结果未知。清理轮次不另写第二套离线缓存,也不代 rebase。

View PR

Open in Web View Automation 

Sent by Cursor Automation: Vibeface 清理

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

本轮仍不合并。

对照 main @ 8a06a332:Ready,但 CONFLICTING。local-records / connection-health 还没进主分支;main 只有 last-seen 和较浅的 bot-drafts。冲突仍在 [botId].tsx、live.tsx、workspace/context.tsx。

描述中的真机和 CI 记录属于旧 head ba202622。缓存、草稿和已读确认会改变离线行为,冲突未解时不能当作已验收。请按当前 main 重做并重跑原来的回归。不另写一套离线缓存。

Open in Web View Automation 

Sent by Cursor Automation: Vibeface 清理

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

本轮仍不合并。

对照 main @ 64562374:Ready,但 CONFLICTING。local-records / connection-health 还没进主分支;main 只有 last-seen 和较浅的 bot-drafts。断线丢聊天/草稿的问题仍在。

描述中的真机和 CI 记录属于旧 head ba202622。缓存、草稿和已读确认会改变离线行为,冲突未解时不能当作已验收。请按当前 main 重做并重跑原来的回归。不另写一套离线缓存。

View PR

Open in Web View Automation 

Sent by Cursor Automation: Vibeface 清理

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

本轮不合并。

Ready,但对照 main @ 07191092 为 CONFLICTING。冲突落在对话页、手机列表、live.tsx 和共享 workspace context。local-records / connection-health 还没进 main;main 只有 last-seen 和较浅的 bot-drafts。描述里的真机验收属于 ba202622,不能当当前 head 的证据。

冲突本身就是新改动,必须按当前 main 重做并重新验收。不代 rebase,也不另写一套离线缓存。等下一轮。

View PR

Open in Web View Automation 

Sent by Cursor Automation: Vibeface 清理

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本轮不合并。

Ready,但对照 main @ 4ee0dcf2 为 CONFLICTING。会话级 local-records / connection-health 仍未进 main;main 只有 last-seen 和较浅的 bot-drafts。真机记录属于 ba202622。请作者自行 rebase 并复跑 Client/Mobile 相关检查。不会平行再写一套离线缓存,也不会代 rebase。

Open in Web View Automation 

Sent by Cursor Automation: Vibeface 清理

This branch has not been deployed

No deployments
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