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): gate music-video failure toast to this page's own renders

[._.]/ Adam Eivyf470f708d450
diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsx
index 4213faef74..236ecc4438 100644
--- a/client/src/pages/MusicVideo.jsx
+++ b/client/src/pages/MusicVideo.jsx
@@ -112,8 +112,15 @@ export default function MusicVideo() {
const onFailed = (data) => {
const jobId = data?.generationId || data?.jobId;
if (!jobId) return;
+ // Only THIS page's renders should surface a failure toast. Capture
+ // ownership before settle() deletes the correlation: an unrelated
+ // image-gen job that fails while this page is open must not toast
+ // "Frame render failed". A fast-fail that raced ahead of its own kickoff
+ // registration isn't owned yet either — settle() stashes it as an orphan
+ // and the kickoff .then reconciles (and toasts) it, so we lose nothing.
+ const owned = pendingJobsRef.current.has(jobId);
settle(data, false);
- if (failTimers.has(jobId)) return;
+ if (!owned || failTimers.has(jobId)) return;
failTimers.set(jobId, setTimeout(() => {
failTimers.delete(jobId);
getMediaJob(jobId)