mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2026-01-18 17:52:36 +01:00
* refactor(kosync): introduce differentiated sync strategies Replaces the single `koreaderSyncStrategy` setting with `koreaderSyncStrategyForward` and `koreaderSyncStrategyBackward`. This allows users to define distinct conflict resolution behaviors based on whether the remote progress is newer or older than the local progress. The `KoreaderSyncStrategy` enum has been simplified to `KoreaderSyncConflictStrategy` with four clear options: `PROMPT`, `KEEP_LOCAL`, `KEEP_REMOTE`, and `DISABLED`. The ambiguous `SILENT` option is removed, as its behavior is now implicitly covered by selecting `KEEP_REMOTE` for forward syncs and `KEEP_LOCAL` for backward syncs. The legacy `koreaderSyncStrategy` setting is now deprecated and is seamlessly migrated to the new dual-strategy system using `MigratedConfigValue`, ensuring backward compatibility for existing user configurations. * fix(kosync): correct proto numbers and setting order for sync strategies * fix(kosync): proto number 78 to 68 * fix(server): migrate KOReader sync strategy during settings cleanup Add migration logic to convert the old `server.koreaderSyncStrategy` key into the new `server.koreaderSyncStrategyForward` and `server.koreaderSyncStrategyBackward` keys during server setup.