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

address review (codex round 3): let only the correlated terminal event clear the frame spinner

[._.]/ Adam Eivy0d6d0967b0dc
diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsx
index 4520c09314..c22199d998 100644
--- a/client/src/pages/MusicVideo.jsx
+++ b/client/src/pages/MusicVideo.jsx
@@ -65,13 +65,14 @@ export default function MusicVideo() {
// - music-video:scene-image — durable attach filed by musicVideoSceneImageHook;
// fold the new referenceImageId onto the matching scene without a refetch,
// even for a project that isn't selected (a render that finished after
- // navigating away still lands).
+ // navigating away still lands). It does NOT touch the spinner: an older
+ // render's scene-image can arrive while a newer one is still in flight, so
+ // the spinner is owned solely by the job-id-correlated terminal events below.
// - image-gen:completed / image-gen:failed — the job's terminal events;
// clear the spinner by correlating generationId → sceneId. Failure toasts.
useEffect(() => {
const onSceneImage = ({ projectId, sceneId, referenceImageId }) => {
applyReferenceImage(projectId, sceneId, referenceImageId);
- clearGen(sceneId);
};
const settle = (data) => {
const jobId = data?.generationId || data?.jobId;