cli daemon: set disableCheckingConfigMismatch for headless operation

The config mismatch dialog's defaultAction is "Dismiss" which blocks
replication. Since the daemon cannot resolve mismatches interactively,
skip the check entirely and accept the remote configuration as-is.
This commit is contained in:
Andrew Leech
2026-04-09 13:34:40 +10:00
parent c0ad8ee15a
commit 4ab2e41d18

View File

@@ -22,7 +22,6 @@ export async function runCommand(options: CLIOptions, context: CLICommandContext
// accept whatever configuration the remote has.
await core.services.setting.applyPartial({ disableCheckingConfigMismatch: true }, true);
// 1. Replicate CouchDB → local PouchDB so the mirror scan has content to work with.
log("Replicating from CouchDB...");
const replResult = await core.services.replication.replicate(true);