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: spend the Remix retry-block once the URL moves off that handoff

[._.]/ Adam Eivy92726c8c5bf6
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index 430511d3ee..486913a26f 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -463,6 +463,10 @@ export default function VideoGen() {
}, { replace: true });
}, [setSearchParams]);
useEffect(() => {
+ // The retry-block belongs to ONE handoff. Once the URL moves off it — the
+ // param was consumed, or another record arrived — it is spent, so the same
+ // record can be handed over again later and resolve normally.
+ if (blockedRemixHandoffId && blockedRemixHandoffId !== remixHandoffId) setBlockedRemixHandoffId(null);
// No handoff in the URL — including right after this one consumed its own.
// Clearing the settled id here is what lets the NEXT handoff through, even
// when it names the same record.
diff --git a/client/src/pages/VideoGen.remix.test.jsx b/client/src/pages/VideoGen.remix.test.jsx
index 25f31082fb..c9a3e76fe1 100644
--- a/client/src/pages/VideoGen.remix.test.jsx
+++ b/client/src/pages/VideoGen.remix.test.jsx
@@ -223,6 +223,12 @@ describe('VideoGen cross-page Remix handoff', () => {
await act(async () => { state.navigate(`/media/video?remix=${LEGACY_RECORD.id}`); });
await waitFor(() => expect(screen.getByLabelText('Prompt')).toHaveValue(LEGACY_RECORD.prompt));
expect(screen.queryByText(/Couldn't load your render history/)).toBeNull();
+
+ // And the block is spent, not permanent: the record whose fetch failed is
+ // restorable once it is handed over again against a history that loaded.
+ await act(async () => { state.navigate(`/media/video?remix=${RECORD.id}`); });
+ await waitFor(() => expect(screen.getByLabelText('Prompt')).toHaveValue(RECORD.prompt));
+ expect(screen.queryByText(/Couldn't load your render history/)).toBeNull();
});
it('reports an actionable missing-record state when the load holds no such record', async () => {