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
refactor([issue-730]): normalize sync flag once in setStorySessionSync
[._.]/ Adam Eivyd3ff35c1663a
diff --git a/server/services/storyBuilder.js b/server/services/storyBuilder.jsindex 05f96f6111..6894a130c9 100644--- a/server/services/storyBuilder.js+++ b/server/services/storyBuilder.js@@ -478,9 +478,10 @@ export async function reconcileStorySession(id) {* and reverts to live-diff staleness.*/export async function setStorySessionSync(id, enabled) {+ const on = enabled === true;const session = await getStorySession(id);- const { hashes } = enabled ? await computeCurrentHashes(session) : { hashes: {} };- return writeSyncState(id, enabled, hashes);+ const { hashes } = on ? await computeCurrentHashes(session) : { hashes: {} };+ return writeSyncState(id, on, hashes);}// ── State machine: lock / unlock ──────────────────────────────────────────