Skip to content

fix(sync): (Codex) Sync digest consistency / eventual consistency#1393

Open
cyfung1031 wants to merge 1 commit intomainfrom
fix/sync/008
Open

fix(sync): (Codex) Sync digest consistency / eventual consistency#1393
cyfung1031 wants to merge 1 commit intomainfrom
fix/sync/008

Conversation

@cyfung1031
Copy link
Copy Markdown
Collaborator

同步流程不再完全依赖“上传后立刻重新 list() 云端文件”来刷新 file_digest。现在 pushScript() 会在脚本和 .meta.json 成功写入后,返回这两个文件的内容摘要;syncOnce() 会收集所有成功上传的摘要,并在 updateFileDigest() 里把它们合并进云端列表结果。即使 Google Drive / S3 这类存储刚上传后目录列表短暂漏掉新文件,本地 digest 也会保留刚刚确认写入的文件,避免下次同步误判为缺失或变更后重复上传。

也同步处理了安装脚本触发的单次上传路径:scriptInstall() 现在同样会把 pushScript() 返回的摘要传给 updateFileDigest()

@cyfung1031 cyfung1031 changed the title fix(sync): Sync digest consistency / eventual consistency fix(sync): (Codex) Sync digest consistency / eventual consistency May 1, 2026
@cyfung1031 cyfung1031 added the CloudSync Related to CloudSync label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CloudSync Related to CloudSync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant