From b4800d9756c400661e1b687d48c6a1cc3c555aab Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Sat, 1 Aug 2026 17:58:48 +0000 Subject: [PATCH] fix: preserve the active journal protocol --- src/modules/features/SettingDialogue/remoteConfigBuffer.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/features/SettingDialogue/remoteConfigBuffer.ts b/src/modules/features/SettingDialogue/remoteConfigBuffer.ts index c405a272..cb1c155d 100644 --- a/src/modules/features/SettingDialogue/remoteConfigBuffer.ts +++ b/src/modules/features/SettingDialogue/remoteConfigBuffer.ts @@ -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", }); }