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
+5 -2
View File
@@ -75,7 +75,7 @@ impl Workspace {
let resolved = ws.resolve(&path)?;
if item.file_type()?.is_dir() {
walk(ws, &resolved, paths)?;
} else if allowed(&path) && item.file_type()?.is_file() {
} else if ws.sync_path_enabled(&path)? && item.file_type()?.is_file() {
paths.push(path);
}
}
@@ -137,7 +137,10 @@ impl Workspace {
rows
};
for (file_id, path) in previous {
if seen.contains(&file_id) || !allowed(&path) || self.resolve(&path)?.exists() {
if seen.contains(&file_id)
|| !self.sync_path_enabled(&path)?
|| self.resolve(&path)?.exists()
{
continue;
}
let operation = Uuid::new_v4().to_string();