Repository navigation
fix(mobile): 修复生产构建环境并减少列表手势和聊天重复更新 - #7083
Conversation
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] 本轮未发现阻止合并的新问题。
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 963b3f1e73
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
PR #7083 独立代码审查报告(heavy 档)
Findings
重点核验(均通读实现与调用方后排除问题):
Rule coverage
Verification实际运行(均在审查 worktree,退出码如实记录):
heavy 恶意代码/数据外发专项: 未执行项(如实声明):全仓 Intent alignment
结论:一致。核心目标(三条卡顿路径 + 生产构建环境)在最终 diff 中全部保留且有回归覆盖; Overallpass —— 没有 P0/P1。原意一致性复核通过,建议合并。 |
这次改了什么
摘要
修复手机版首页、任务和聊天卡顿的三条已确认路径:Release 构建夹带动画调试代码、列表更新/旋转时反复重建手势,以及无关任务更新引发正文和列表重复计算。
留存的较早 Release bundle 没有 Worklets 调试 Error,新测试包在
__DEV__=false下却有 711 处new global.Error()、682 处动画内嵌 source map。真实 Expo/Metro transform 回归重现了NODE_ENV/BABEL_ENV=development污染 Release 输出。现在按 Metro 请求的 dev 标志隔离同步 transform,并在正式打包入口明确 production;反向的开发构建仍保留调试信息。同时移除详情页无用的全任务订阅,让 Markdown 只观察引用任务的标题,稳定待发送操作回调;标题和时间更新只重算当前任务,避免触发全任务保留扫描和消息时间重锚定。真实 store 的 1,000 任务、30 次更新时间回放中,比较次数 30,060→90,重锚定 30,000→30。此为 Mac 合成回放,不代表 iPhone 提速倍数,也不能据此宣称全部卡顿已消除。
继续排查返回首页和连续旋转后,定位到项目拖动 worklet 捕获整个项目(含任务树),以及项目/任务行回调和 hitSlop 引用反复变化,导致 RNGH 重建和序列化手势图。项目拖动改为只捕获 key、sessionCount;行手势回调保持稳定,通过 layout effect 更新当前任务及宽度,保留最新归档、已读和新建行为。真实设备的有界堆栈采样中,32 个 setter 样本有 24 个来自 RNGH updateHandlers。用户安装最后一轮修复后确认连续旋转明显顺畅。
变更类型
fix缺陷修复refactor/perf性能优化docs/test文档与回归验证范围
UI 变化
怎么验证的
自动验证
测试价值(均为 unit tier,经过真实入口,边界设备组件按需替代):
手工验证
dash/mobile-render-fanout;worktreecindy-src-mobile-render-fanout。2e8a8a052d4d,在独立cindy-mobile-perf-validation中叠加本 PR 修改,保留登录和数据。__DEV__=false。故意让完整 export 继承 development 环境,修复产物仍为 0 处调试 Error、0 处内嵌动画 source map。未执行的验证
风险
风险分类
影响与回滚
提交前检查