Skip to content

fix(sync): 跳过问题会话并修复大首行处理,准备 v1.0.3 - #103

Merged
Dailin521 merged 4 commits into
mainfrom
codex/issue-102-resilient-sync-release
Sep 15, 2026
Merged

Dailin521 merged 4 commits into
mainfrom
codex/issue-102-resilient-sync-release

Conversation

@Dailin521

@Dailin521 Dailin521 commented Sep 15, 2026

Copy link
Copy Markdown
Owner

结果

Addresses #102。较大的 session_meta 或单个损坏会话会阻断整次同步。本次支持最高 128 MiB 的有界首行,并让 Sync、Switch、Watch 跳过确认未写入的问题文件,继续处理健康会话;全部历史跳过时,Switch 仍可备份并切换配置。

  • 严格校验 UTF-8 和 payload 对象;明确的 JSON 容量错误归类为逐文件跳过,保留正常深层 JSON、原地写和正文流式复制。
  • 冻结预览排除集合,保护问题文件关联索引;执行前及已有 SQLite 写事务中复核预览行,包括原先已对齐的行,变化/消失项保留并报告部分完成。
  • 备份恢复范围排除确认未写入的文件;保留数据库级故障、磁盘写满及未知写入结果的停止规则。
  • 补齐占用错误的结构化明细和写前跳过;提供有界日志、固定原因码及诊断导出脱敏。
  • 更新 Contracts、ADR、fixture、用户说明和 Windows v1.0.3 发布资料。

验证与交付

  • 本地 architecture:check、Node 24 完整测试通过;Node 16 干净生产依赖完整测试及新增相关回归通过。
  • Shared UI、Web E2E、.NET 各项目、跨运行时和历史标签恢复检查通过。
  • 重建生产 Electron,完成 6 项验收,包括混合问题数据同步与恢复、大首行回归。
  • 生产及完整依赖审计均为 0 漏洞。
  • CI 工作流和门禁配置未修改。最终 head 仍须完成全平台 CI,采用 merge commit;实际 main SHA 再次通过门禁后,仅发布新的 Windows x64 v1.0.3 包。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-15T08:28:54.228314Z 575de01 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

if (skipLockedReads && isRolloutFileBusyError(error)) {
lockedPaths.push(rolloutPath);
continue;

P2 Badge Preserve wrapped locked reads in the skip summary

When a status read fails with a busy error such as Windows EBUSY/EPERM, readFirstLineRecord converts it to an untyped Error; consequently fileReadSkipReason(error) returns null and this fallback adds the path only to lockedPaths, not skippedItems. The status is marked incomplete, but its new skipSummary omits the locked file, so the UI cannot list the affected path or provide the summary's retry guidance. Add the same rolloutSkip(..., "locked") entry in this fallback or preserve the original error code through the wrapper.

AGENTS.md reference: AGENTS.md:L72-L72

ℹ️ 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".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7812b5c609

ℹ️ 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".

Comment thread packages/core/src/application/provider-sync.js
@Dailin521
Dailin521 merged commit 5ab85c5 into main Sep 15, 2026
28 checks passed
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