← All problems
Developer tools Observed November 12, 2026

Unsynced edits can look safe until a refresh loses them

An AFFiNE user reports losing hours of edits after refreshing a slow document, despite seeing intermittent syncing activity; a separate developer reports that a sync flag can turn true before backend upload.

What someone actually noticed

An AFFiNE user says a document reverted to its morning state after hours of editing and a refresh. The user had seen intermittent syncing activity but says there was no clear warning before the loss. A maintainer suggested Safari storage behavior; the reporter replied that they had seen similar behavior in Brave. The issue was closed as not planned, and the exact cause remains disputed.

In a separate TanStack DB PowerSync integration issue, a developer reports that the $synced flag becomes true after local SQLite persistence rather than backend upload. They describe querying a pending-upload table as a workaround. This is a different product and is not a second report of AFFiNE data loss; it illustrates why a visible saved state needs an explicit definition.

Read the original signal: AFFiNE GitHub issue reporting lost edits and no save warning

Ways to solve it

Without new software, QA can edit a disposable document, disconnect the network, refresh or restart the browser, reconnect, and inspect both the editor and backend record. Keep a checklist of whether the UI says locally saved, uploading, failed or server-confirmed, then fix the underlying product when a test fails.

If teams repeat this check across releases, a small automated harness could replay those same steps and capture the edit, status indicator and backend state. Start with one editor integration and test browser rather than promising a universal offline framework.

A small app you could build

Save Assurance Check

A fixture-based QA harness for browser editors that tests whether edits survive interrupted connectivity, refresh and reconnection, and whether the UI distinguishes local from server-confirmed saves.

Who might use it: Developers and QA teams building autosaving browser editors

  1. Record a short test edit and its expected persisted content in a disposable document
  2. Simulate offline, slow reconnection and refresh in a controlled test browser
  3. Compare local recovery, server-confirmed content and the visible save status
  4. Produce a reviewable failure report without claiming to repair lost data

What to verify before building

  • Reproduce the AFFiNE report on the relevant version and browsers before claiming the same failure still exists; include the maintainer's alternate explanation in the investigation.
  • Ask editor teams which save state they can actually observe at the server and whether current end-to-end tests already detect false success or lost edits.
  • Run the harness against known good and intentionally broken test editors and compare its findings with a manual QA checklist.

Reality check

The two issues cover different implementations and do not establish a common defect or demand for a standalone tool. A sync-state test cannot reproduce every browser storage fault, and a library or app fix may be the better answer. The harness should only claim to detect failures in the specific fixtures and configurations it actually tests.

An observation is not market validation. Check other reports and talk to the people who experience this before committing more than a tiny experiment.