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(videogen): clear a Reactor continuation the picker no longer offers
Adam Eivy6af9a6dbf573
diff --git a/client/src/components/videoGen/ReactorPanel.jsx b/client/src/components/videoGen/ReactorPanel.jsxindex c4eef621ac..87c0810ee5 100644--- a/client/src/components/videoGen/ReactorPanel.jsx+++ b/client/src/components/videoGen/ReactorPanel.jsx@@ -20,7 +20,7 @@ import { FormField } from '../ui/FormField';export default function ReactorPanel({clipId,onClipIdChange,- continuableClips,+ continuableClips = [],imageModeActive,seconds,onSecondsChange,diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsxindex 5d6cc64c8b..e97a8f944f 100644--- a/client/src/pages/VideoGen.jsx+++ b/client/src/pages/VideoGen.jsx@@ -1014,9 +1014,9 @@ export default function VideoGen() {// Only grok folds a negative prompt into its request (as an "Avoid:" line);// fal's queue body and reactor's enqueue command have no such field, and a// CFG-distilled local model ignores one. Hide the box rather than showing a- // dead field that quietly does nothing.- // A federated render is the peer's model to judge, so the local selection's- // gate must not hide a field that lane does submit.+ // dead field that quietly does nothing. A federated render is the PEER's+ // model to judge, so the local selection's gate must not take away a field+ // that lane does submit.const negativePromptSupported = isGrok || remoteTarget.isRemote|| (!isFal && !isReactor && currentModel?.supportsNegativePrompt !== false);@@ -1031,6 +1031,18 @@ export default function VideoGen() {label: `${(v.prompt || v.filename || v.clipId).slice(0, 60)} · ${timeAgo(v.createdAt, 'unknown')}`,})), [visibleHistory]);+ // A selection the picker no longer offers must not survive in state: the+ // deleted clip's option is gone, so the select falls back to displaying+ // "Start a fresh shot" while the submission would still carry the stale id.+ // Image mode clears it for the same reason — a continuation and a starting+ // frame are exclusive, and the field is disabled there.+ useEffect(() => {+ if (!reactorClipId) return;+ if (mode === 'image' || !reactorContinuableClips.some((clip) => clip.clipId === reactorClipId)) {+ setReactorClipId('');+ }+ }, [reactorClipId, mode, reactorContinuableClips, setReactorClipId]);+// A federated render answers to the PEER’s readiness, not to this machine’s// runtime gates — none of the local probes below describe the hardware it// will actually run on.diff --git a/client/src/pages/VideoGen.reactor.test.jsx b/client/src/pages/VideoGen.reactor.test.jsxindex 89fc73d1b0..72f998ec11 100644--- a/client/src/pages/VideoGen.reactor.test.jsx+++ b/client/src/pages/VideoGen.reactor.test.jsx@@ -1,5 +1,5 @@import { beforeEach, describe, expect, it } from 'vitest';-import { fireEvent, screen, waitFor } from '@testing-library/react';+import { act, fireEvent, screen, waitFor } from '@testing-library/react';import {loadVideoGenPage,@@ -127,6 +127,23 @@ describe('VideoGen reactor.inc lane', () => {expect((await submit()).reactorClipId).toBe(REACTOR_RENDER.clipId);});+ // The option disappears with the render, so the picker would show "Start a+ // fresh shot" while the submission still carried the deleted clip's id.+ it('drops a continuation whose render is no longer in history', async () => {+ await renderVideoGenPage();+ await selectReactor();++ fireEvent.change(screen.getByLabelText('Continue from clip'), { target: { value: REACTOR_RENDER.clipId } });++ // The render leaves history (deleted, or hidden) and the page refreshes.+ state.listVideoHistory.mockResolvedValue([LOCAL_RENDER]);+ await act(async () => { await state.completionRefresh.onVideoCompleted(); });++ await waitFor(() => expect(screen.getByLabelText('Continue from clip')).toBeDisabled());+ fireEvent.change(screen.getByLabelText('Prompt'), { target: { value: 'the gate swings open' } });+ expect((await submit()).reactorClipId).toBeUndefined();+ });+it('offers no continuation until a reactor render has stored a clip id', async () => {state.listVideoHistory.mockResolvedValue([LOCAL_RENDER]);await renderVideoGenPage();