Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: retry schema-gapped snapshot categories

[._.]/ Adam Eivy5e85404b8a45
diff --git a/server/services/syncOrchestrator.js b/server/services/syncOrchestrator.js
index ba5bf96692..729167dc11 100644
--- a/server/services/syncOrchestrator.js
+++ b/server/services/syncOrchestrator.js
@@ -524,7 +524,11 @@ async function syncDataCategoryFromPeer(peer, peerId, category, cachedChecksums,
if (!checksumRes?.checksum) return { totalApplied: 0, checksum: null };
const lastChecksum = cachedChecksums?.[category] ?? null;
- if (lastChecksum && lastChecksum === checksumRes.checksum) {
+ // A saved schema gap is compatibility state, independent of payload changes.
+ // Keep retrying that category even when its payload checksum is unchanged so
+ // a peer upgrade can clear the old warning without requiring another edit.
+ const hasSchemaGap = Boolean(peer?.schemaGaps?.[category]);
+ if (lastChecksum && lastChecksum === checksumRes.checksum && !hasSchemaGap) {
return { totalApplied: 0, checksum: checksumRes.checksum };
}