Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add vault sync migration check with local test query

Leendert de Borst5429bf6bf759
diff --git a/core/rust/src/vault_sync/migration.rs b/core/rust/src/vault_sync/migration.rs
index 41126740f..aca933c11 100644
--- a/core/rust/src/vault_sync/migration.rs
+++ b/core/rust/src/vault_sync/migration.rs
@@ -42,6 +42,8 @@ pub(crate) async fn pending_migration_result(ctx: &mut Ctx) -> SyncResult<Option
match checked {
Ok(result) => Ok(result),
Err(error @ SyncError::VaultVersionIncompatible(_)) => Err(error),
+ // A failed local database command can mean the stored vault does not decrypt; the sync diagnoses it.
+ Err(error @ SyncError::Host { command: "dbQuery" | "dbExec" | "dbExport", .. }) => Err(error),
Err(error) => {
ctx.warn(format!("[Migration] Ignoring failed pending migration check: {}", error)).await;
Ok(None)