Commit 8cef7fb
committed
fix: pull-only sync should not push back to cloud — prevents ordering revert
The receiving browser (e.g. Chromium) was pushing bookmarks back to cloud
after pulling updates from the source browser (e.g. Firefox), overwriting
the source browser's ordering changes. This caused a revert cycle:
1. Firefox reorders → syncs to cloud ✅
2. Chromium syncs → pulls new order → but also pushes back with old indices
3. Firefox syncs → pulls Chromium's overwritten order → reverts
Root cause: bookmarksToUpdate (cloud→local updates) was incorrectly counted
as 'local changes to push'. And Step 9 always pushed regardless of whether
there were actual local changes.
Fix:
- Remove bookmarksToUpdate from hasLocalChangesToPush (they're cloud→local)
- Gate Step 9 push behind hasLocalChangesToPush check
- Store cloud checksum on pull-only syncs for future comparison
v0.8.191 parent 5219316 commit 8cef7fb
File tree
5 files changed
+82
-14
lines changed- apps
- extension
- __tests__
- src/background
- web
5 files changed
+82
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1726 | 1726 | | |
1727 | 1727 | | |
1728 | 1728 | | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
1733 | 1733 | | |
1734 | 1734 | | |
1735 | | - | |
1736 | 1735 | | |
1737 | 1736 | | |
1738 | 1737 | | |
| |||
1785 | 1784 | | |
1786 | 1785 | | |
1787 | 1786 | | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
1793 | 1802 | | |
1794 | 1803 | | |
1795 | | - | |
| 1804 | + | |
1796 | 1805 | | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
1797 | 1809 | | |
1798 | 1810 | | |
1799 | 1811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments