This fix prevents the file watcher from triggering a new sync when the client updates the last_sync timestamp in metadata.json.

This commit is contained in:
yb
2026-03-24 13:20:28 +01:00
parent c7d7ff19a7
commit 001a292185
2 changed files with 126 additions and 1 deletions
+1
View File
@@ -793,6 +793,7 @@ impl SyncEngine {
let mut sanitized = profile.clone();
sanitized.process_id = None;
sanitized.last_launch = None;
sanitized.last_sync = None; // Avoid triggering sync loop on timestamp change
let json = serde_json::to_string_pretty(&sanitized)
.map_err(|e| SyncError::SerializationError(format!("Failed to serialize profile: {e}")))?;