fix(sync): 端到端强制人设与布局显式选择加入

This commit is contained in:
2026-09-09 07:27:50 +08:00
parent e788609de7
commit 3a344d35bd
15 changed files with 341 additions and 21 deletions
+6 -2
View File
@@ -374,7 +374,9 @@ impl SyncClient {
if let Some(initial) = workspace.access(|ws| ws.sync_initial_pending(&binding.id))? {
let count = initial.len().min(100);
for revision in initial.iter().take(count) {
if revision.operation == "put" {
if revision.operation == "put"
&& workspace.access(|ws| ws.sync_path_enabled(&revision.path))?
{
self.download(workspace, binding, revision).await?;
}
workspace.access(|ws| {
@@ -423,7 +425,9 @@ impl SyncClient {
if revision.sequence != cursor + index as i64 + 1 || revision.sequence > end {
return Err(SyncError::new("SYNC_RESPONSE_INVALID"));
}
if revision.operation == "put" {
if revision.operation == "put"
&& workspace.access(|ws| ws.sync_path_enabled(&revision.path))?
{
self.download(workspace, binding, &revision).await?;
}
workspace.access(|ws| {