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: stop the animatic outro frame save rejecting a render that was still in flight (#13130)

Adam Eivy9479300db0e9
diff --git a/client/src/components/musicVideo/StoryboardAnimatic.jsx b/client/src/components/musicVideo/StoryboardAnimatic.jsx
index 339692db31..8f300f629a 100644
--- a/client/src/components/musicVideo/StoryboardAnimatic.jsx
+++ b/client/src/components/musicVideo/StoryboardAnimatic.jsx
@@ -569,6 +569,11 @@ export default function StoryboardAnimatic({ project, audioUrl, seekRequest, col
};
handle = requestAnimationFrame(settle);
});
+ // The click can land before a tick's queued setT has rendered; pause() stops
+ // further ticks, so the clock the settle wait observed is the one captured.
+ // Later outro changes (late stats, a restart) still invalidate the capture.
+ basis.outroTime = captureBasis.current.outroTime;
+ basis.outroStats = captureBasis.current.outroStats;
const unchanged = () => {
const current = captureBasis.current;
return current.project === basis.project && current.lyricsOn === basis.lyricsOn && current.lookOn === basis.lookOn