Skip to content

Sync: Immich albums as collections, shared connection, one photo identity, camera roll - #1210

Merged
emmertex merged 20 commits into
mainfrom
feat/sync-immich
Nov 15, 2026
Merged

emmertex merged 20 commits into
mainfrom
feat/sync-immich

Conversation

@emmertex

Copy link
Copy Markdown
Owner

The Immich stage of the rebuilt device sync.

  • One identity for a photo: keyed by the SHA-1 of its original as soon as it is known (what Immich uses), so the Immich app's upload, this app's upload, a transfer from another device and a later local import of the same file link instead of duplicating. Existing sync data migrates. Another device's SHA-1 claim is never trusted: this device hashes its own file.
  • Immich albums are collections in an "Immich" set; each device takes none / previews / full quality per album. Photos come from Immich, edits travel between devices, a photo added on any device uploads at most once.
  • Shared or private connection (off by default): shared passes the account and API key to the synced devices over the encrypted channel into their key storage, never into the replica, status or logs. A private account's collections are not told to other devices. Device sync names the account by Immich user id, so different URLs to one server match.
  • Camera roll: Camera Roll - {Device Name} collection that watches a folder and follows renames; Android feeds it from the listing the app already has.
  • The name-matching "Collections ↔ albums" rule, immich.linkAlbum and immich.syncAlbums are removed; an account that had the rule on moves to albums-as-collections.

Not verified: no real Android device or real Immich server (in-process server and two sessions on one machine); no screenshots of the new settings; translations are machine-made.
Known: two Immich accounts give two "Immich" folders; turning sharing off does not take the key back from devices that have it (revoke it in Immich).

Manual: sync/devices.mdx, sync/immich.mdx

🤖 Generated with Claude Code

emmertex and others added 20 commits November 15, 2026 12:01
… its SHA-1 key

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es and migration

Device sync names a photo by the SHA-1 of its original (Immich's checksum for a
link-only photo), falling back to the content hash until it is known. Keys move
with Replica::rekey; peers still on content-hash keys are understood through an
alias table, and a photo sent under its SHA-1 key gives an unhashed copy its
SHA-1. Photos arriving from a peer are queued for the Immich checksum lookup.

Manual: none, no user-visible change (identity only)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ginals, docs and notes

An original fetched from another device under a sha1: key is checked by its
SHA-1. Tests: a link-only Immich photo and the phone's file are one photo on
both devices (no original asked of the phone), hostile keys change nothing.

Manual: none, no user-visible change (identity only)

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manual: sync/immich

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…take up to Full Quality, server-side members, private accounts)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…vice take, add-from-any-device uploads once

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manual: sync/devices, sync/immich

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er the peer channel into key storage

Manual: sync/devices

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-roll folder

Manual: sync/devices

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…yncAlbums); migrate it to albums as collections

Manual: sync/immich

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…emoved albums.rs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmertex
emmertex enabled auto-merge November 15, 2026 03:32
@emmertex
emmertex merged commit 662a19c into main Nov 15, 2026
9 checks passed
@emmertex
emmertex deleted the feat/sync-immich branch November 15, 2026 03:38
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