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: preserve legacy custom atlas counts (#3223)
[._.]/ Adam Eivy68ce4bba027e
diff --git a/server/services/sprites/atlasLayout.js b/server/services/sprites/atlasLayout.jsindex b6071819f2..cdf7e80d22 100644--- a/server/services/sprites/atlasLayout.js+++ b/server/services/sprites/atlasLayout.js@@ -126,7 +126,12 @@ export function buildAtlasLayout({// key position/null compatibility untouched; seeded scanner/ambient rows// likewise retain their historical names and order....Object.fromEntries(Object.values(animationTracks).flatMap((definition) => {- const value = geometry[definition.contractFrameCountField];+ const direct = geometry[definition.contractFrameCountField];+ // Existing custom atlases can take the compiler's idempotent path after+ // upgrade, leaving their immutable manifest without the new convenience+ // field. Its persisted span is the same count and keeps the published+ // sidecar uniform without forcing a pixel recompile.+ const value = Number.isInteger(direct) ? direct : geometry.tracks?.[definition.id]?.count;return Number.isInteger(value) ? [[definition.contractFrameCountField, value]] : [];})),previewFps: Number.isFinite(geometry.walkFps) ? geometry.walkFps : null,diff --git a/server/services/sprites/atlasLayout.test.js b/server/services/sprites/atlasLayout.test.jsindex 9432549c66..05dcfcffdb 100644--- a/server/services/sprites/atlasLayout.test.js+++ b/server/services/sprites/atlasLayout.test.js@@ -145,7 +145,6 @@ describe('buildAtlasLayout', () => {walk: span(1, 8),jetpack: span(9, 3),},- jetpackFrameCount: 3,}),atlasSha256: 'abc123',version: 8,