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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: storyboard restore overlay reads the journal's restorable-field list (#12902)
Adam Eivy0eb3c74dbaee
diff --git a/server/services/storyboards/sync.js b/server/services/storyboards/sync.jsindex ffa8c022fb..5b8ab519b1 100644--- a/server/services/storyboards/sync.js+++ b/server/services/storyboards/sync.js@@ -18,6 +18,7 @@ import {deleteSyncBaseHash,flushBaseHashes,maybeJournalBeforeOverwrite,+ RESTORABLE_FIELDS,setSyncBaseHash,withBaseHashFlushBatch,} from '../../lib/conflictJournal.js';@@ -30,10 +31,6 @@ import {export const STORYBOARD_KIND = 'storyboard';-// The authored fields a conflict-journal restore overlays (mirrored in-// RESTORABLE_FIELDS.storyboard); identity and timestamps stay structural.-const RESTORABLE_FIELDS = ['name', 'logline', 'aspectRatio', 'artStyle', 'universeId', 'moodBoardId', 'recipe', 'beats'];-/** One board's sanitized record with its tombstone surfaced, or null when unknown. */export async function getStoryboardForSync(id) {if (!isValidStoryboardId(id)) return null;@@ -121,7 +118,7 @@ export async function restoreStoryboard(id, patch = {}) {const restored = await queueStoryboardWrite(id, async () => {const current = sanitizeStoryboard(await readRaw(id));if (!current) return null;- const overlay = Object.fromEntries(RESTORABLE_FIELDS.filter((key) => key in patch).map((key) => [key, patch[key]]));+ const overlay = Object.fromEntries(RESTORABLE_FIELDS[STORYBOARD_KIND].filter((key) => key in patch).map((key) => [key, patch[key]]));const next = sanitizeStoryboard({...current, ...overlay, deleted: false, deletedAt: null, updatedAt: new Date().toISOString(),});