fix: preserve the active journal protocol

This commit is contained in:
vorotamoroz
2026-08-02 07:51:39 +00:00
parent f67d224657
commit b4800d9756
@@ -21,5 +21,11 @@ export function syncActivatedRemoteSettings(
...pickPostgRESTSyncSettings(source),
...pickCouchDBSyncSettings(source),
...pickP2PSyncSettings(source),
// Provider pickers share these fields. Keep the active profile's protocol after
// collecting provider-specific connection fields so that one provider cannot
// normalise another provider's Journal policy.
expectedRepositoryId: source.expectedRepositoryId ?? "",
journalFormat: source.journalFormat ?? "opaque-v1",
packReadPolicy: source.packReadPolicy ?? "whole-pack",
});
}