mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-22 07:28:14 +00:00
Operations with timestamps beyond maxClockDriftMs (60s) were being permanently rejected, causing silent data loss when a client's clock was slightly ahead. Now these timestamps are clamped to now + maxClockDriftMs and accepted. A TIMESTAMP_CLAMPED audit log is recorded for debugging. - Add clamping logic in SyncService.processOperation() - Remove future timestamp rejection from ValidationService - Add comprehensive tests verifying clamped values and boundaries - Update integration test to expect acceptance |
||
|---|---|---|
| .. | ||
| multi-client-sync.integration.spec.ts | ||
| snapshot-skip-optimization.integration.spec.ts | ||