Skip to content

fix(sync): skip the push round that only reports our own upload - #32

Merged
otherworld-dev merged 1 commit into
devfrom
feature/1103-own-upload-push
Nov 9, 2026
Merged

otherworld-dev merged 1 commit into
devfrom
feature/1103-own-upload-push

Conversation

@otherworld-dev

Copy link
Copy Markdown
Owner

Every upload brought the server's push notice for it a second or so later, and that notice ran a whole remote-delta round (loading the baseline, then listing down to the file) only to find what we had just written.

The push client now sends listen notify_file_id so notify_push says which files changed, and each upload records the file id the server gave it for 2 minutes. When a push only reports our own uploads, plus the folder each one went into, the round is skipped. A plain notify_file, any id we don't recognise, or any other sync asked for in the same window still runs the round as before.

Tested on the Windows 11 VM against a real server in live mode: a new file and an edit both logged "push skipped; the server only reported our own upload" (the notice carried the file and its folder), and a new folder and a delete, which aren't uploads, still ran the round.

Deck d1103.

Every upload brought the server's push notice for it a few seconds later, and
that notice ran a whole remote-delta round (loading the baseline, then listing
down to the file) only to find what we had just written. With a file uploaded
every 10 minutes that was a round every 10 minutes for nothing.

The push client now asks notify_push for the changed file ids, and the engine
remembers the id each upload got from the server for 2 minutes. When a push
only reports our own uploads, plus the folder each one went into (Nextcloud
updates the folder's entry as well), the round is skipped. A plain notify_file,
any id we don't recognise, or a sync asked for in the same window still runs
the round as before. Deck d1103.
@otherworld-dev
otherworld-dev merged commit 61ac05a into dev Nov 9, 2026
6 checks passed
@otherworld-dev
otherworld-dev deleted the feature/1103-own-upload-push branch November 9, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant