Offline Access "Unlimited" disables file auto-download entirely (acts like Off)

WHAT IS THE BUG

In Settings → Local storage → Offline Access (“Auto sync files for offline access”), choosing Unlimited does not download anything from the sync node. No files are fetched to the device at all.

With any finite limit (e.g. 1GB) auto-download works as expected: you can see files being pulled down and “Local files” usage grows. Switch to Unlimited and downloading stops completely.

Reproduced identically on two desktops: macOS (M2 Pro, 0.57.0) and Debian 13 (0.56.5).

HOW TO REPRODUCE IT

  1. Have a space with files that are stored on the backup node but not locally (e.g. a fresh device, or after “Offload files”).
  2. Open Settings → Local storage → Offline Access, select 1GB. Files start downloading, “Local files … used” grows.
  3. Select Unlimited.
  4. Nothing is downloaded anymore; “Local files” usage stays the same no matter how long you wait.

THE EXPECTED BEHAVIOR

Unlimited should auto-download all files of the space to the device, with no size cap. It should be a superset of 1GB, not “off”.

For a local-first app this is the most important option in this menu: it is the only way to guarantee a full offline copy of the vault.

ADDITIONAL CONTEXT

It looks like a client-side mapping bug. In the options list, Unlimited has value 0:
src/ts/component/page/main/settings/data/index.tsx

{ id: '-1', name: translate('commonOff') },
...
{ id: '1024', name: U.File.size(1024 * MiB) },
{ id: '0', name: translate('commonUnlimited') },

But applyAutoDownload enables auto-download only for value > 0:

applyAutoDownload (value: number) {
	C.FileSetAutoDownload(value > 0, false);   // 0 (Unlimited) → enabled = false
	if (value >= 0) {
		C.FileAutoDownloadSetLimit(value);
	};
};

So selecting Unlimited sends FileSetAutoDownload(enabled: false), i.e. it behaves exactly like Off. Probably should be value >= 0 (or value !== -1) for the enabled flag, assuming middleware treats limit 0 as “no limit”.

TECHNICAL INFORMATION

macOS
OS version: darwin arm64 27.0.0
App version: 0.57.0
Build number: build on 2026-09-22 08:12:41 +0000 UTC at #fa3b696c891ce1ba44ea0545de07b389de8f1d4c
Library version: v0.51.3
Anytype Identity: A6HG712gkT2592BY9c7m8cYT7neU3inqm7NjZLEHJ2d1DhST
Analytics ID: a914f3cf-2c32-4ff9-a29d-b3ad50101cc3
Device ID: 12D3KooWJ1LEn6hLT6cdwbzHdEVoiLSt7vZXmVt1WoiX9ook7ygj

Debian 13 (Flatpak)
OS version: linux x64 6.12.107+deb13-amd64
App version: 0.56.5
Build number: build on 2026-08-12 14:32:15 +0000 UTC at #715a9f9761bd497aa94f12db9a7bb9f0d35f243c
Library version: v0.51.0-rc1
Anytype Identity: A6HG712gkT2592BY9c7m8cYT7neU3inqm7NjZLEHJ2d1DhST
Analytics ID: a914f3cf-2c32-4ff9-a29d-b3ad50101cc3
Device ID: 12D3KooWPNdTEUebNsSGB1otAkG8M3aCbvgpMDozPnhecbVFW2wA

Thanks for reporting this. Adding it to our tracker.