Anki desktop is overwriting Ankiweb data even when Ankiweb is newer

That sounds like a sync conflict.

  • Do you have good syncing habits? That means you sync when you open the app on a device and when you close/leave the app on that device, every time.
  • Do you have any add-ons on desktop that run actions in the background, on-sync, or after-sync?

It’s not that desktop is overwriting any data, but the card is being “updated” to the state that matches the most recent change made to the card – which is not the last review you did. Looking at the the Card Info would tell for sure if this is the issue. See: Scheduling differences between Anki desktop and Android - #4 by Danika_Dakika .