fix: 修复分页同线程多文件同步无法收敛的问题 - #108
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d491990681
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1223f96ccf
ℹ️ 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".
目的 / Why
同一线程有多个分页 rollout 时,Sync 会更新文件,但 SQLite 持续因关联冲突保持旧 Provider,重试也无法收敛。本次允许有明确分页标记、同 ID 和唯一 SQLite 路径锚点的文件组共享一行;已有半同步状态可只补齐 SQLite,随后 noop 不创建备份。
关联 Issue / Related issue
Closes #107
改动 / Changes
影响范围 / Impact
共享 Node Core 的 CLI/Web/Electron 使用同一修复。Windows 路径关联有变化;WSL 限制保持。Legacy .NET 仅统一版本元数据,业务行为保持原样。
数据写入 / Data writes
Sync 仍只更新 rollout 首行 Provider 和 SQLite Provider;整组成员均对齐或成功写入才更新对应行。正文、其他 metadata、历史 model、updated_at 与原始 rollout_path 保持。沿用 UndoBackup、原地写/流式写和 partial 重试合同。
验证 / Validation
Automated
c1c8588b6662d5ea4ca94098e50e2efc43e30ef8:84 项定向回归通过;npm run architecture:check通过,PIO 69 通过、15 项 POSIX 跳过;npm test635 通过、57 跳过、0 失败。跳过包括 15 项 POSIX、3 项 Windows 文件符号链接权限不足、39 项已被 ADR 取代的旧行为。以上自动化写入只使用 D 盘合成 Home。
Manual
2026-09-28,维护者反馈先前交付的本地 1.0.4 便携包(
d491990)实测成功修复 Issue #107。记录为维护者现场反馈,不能将其自动套用到后续产物,也未扩展为再次同步、Restore 或真实安装/升级/卸载的人工验收。Not run
最终 main SHA 的 CI 和正式包容器验收另行执行;真实安装/卸载由隔离容器完成。线上跨版本下载安装与真实 WSL 使用未独立验收。未签名;本轮不发布 npm、Legacy 或其他平台包。最后文件复核后与外部写者不承诺原子隔离,沿用部分完成与重试机制。
检查清单 / Checklist