Skip to content

sync: the snapshot after a pull reuses unchanged files and records them - #116

Merged
Omar-VF merged 1 commit into
Liquid-co:dev-publicfrom
ChakraFusion:pr/mirror-snapshot-reuse
Oct 23, 2026
Merged

Omar-VF merged 1 commit into
Liquid-co:dev-publicfrom
ChakraFusion:pr/mirror-snapshot-reuse

Conversation

@ChakraFusion

Copy link
Copy Markdown

After a pull, the snapshot recorded under the other device's id (recordMirrorSnapshot) compressed the whole save from scratch with ZipRoots. It also recorded no file list, so the next snapshot here couldn't reuse it either (openReuseSource needs one). With a save of a quarter-million files, the app sat at "100%" for minutes after the download had finished.

The change: it is archived the way any snapshot here is, through a new Manager.ArchiveSaveTo. Files unchanged since the branch's newest snapshot are copied from it (reuse.go), and what it holds is recorded (RecordSnapshotFiles).

Tests:

  • TestArchiveSaveToReusesUnchangedFiles: 19 of 20 entries are copied when a pull changed one.
  • TestSync_TheSnapshotAfterAPullRecordsItsFiles: the snapshot after a pull records its files. This fails without the change ("records 0 file(s)").

Checks: the full unit and e2e suites pass locally on today's dev-public.

🤖 Generated with Claude Code

The snapshot recorded under the other device's id after a pull compressed
the whole save from scratch, and recorded no file list, so the next
snapshot here could not reuse it either. A save of a quarter-million files
sat at "100%" for minutes after its download had finished. It is now
archived like any snapshot here (Manager.ArchiveSaveTo): files unchanged
since the branch's newest snapshot are copied from it, and what it holds
is recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

@ChakraFusion is attempting to deploy a commit to the sivadaboi's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Omar-VF
Omar-VF merged commit 9f0ab53 into Liquid-co:dev-public Oct 23, 2026
10 of 11 checks passed
Omar-VF added a commit that referenced this pull request Oct 23, 2026
Seagulls pushed a commit to Seagulls/OpenSave that referenced this pull request Oct 25, 2026
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.

2 participants