mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 17:20:30 +00:00
After a push completed, SyncStatusView.executeBatchOperation immediately re-fetched the remote tree via refreshAllStatuses() to update the UI. GitHub's tree-by-branch-name read can lag a just-completed write by a moment, so this could misreport a file that was just pushed correctly as still "modified" (confirmed live: refreshing again a few seconds later showed it as synced). SyncManager.pushAllFiles now also returns syncedPaths (path + new sha, from data already available at the write site: the batch chunk result, the sequential-push fallback, or the immediate symlink/rename push). SyncStatusView uses this to mark those files 'synced' directly instead of re-fetching the remote tree, sidestepping the eventual-consistency window entirely. Pull is unaffected, still does a full refresh. |
||
|---|---|---|
| .. | ||
| ActionBar.test.ts | ||
| DiffPanel.test.ts | ||
| FileListItem.test.ts | ||
| SettingsConnectionStatus.test.ts | ||
| setup-dom.ts | ||
| SyncConflictModal.test.ts | ||
| SyncStatusView.test.ts | ||
| WhatsNewModal.test.ts | ||