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: clear stale source on extend mode, rename Clear completed → Clear finished

Adam Eivy3f3e275458ec
diff --git a/client/src/components/media/BatchQueuePanel.jsx b/client/src/components/media/BatchQueuePanel.jsx
index 3739b0540c..6066f42b79 100644
--- a/client/src/components/media/BatchQueuePanel.jsx
+++ b/client/src/components/media/BatchQueuePanel.jsx
@@ -3,7 +3,7 @@ import { Trash2, CheckCircle2, AlertCircle, Loader2, Clock } from 'lucide-react'
// Shared batch-queue panel used by both Video Gen and Image Gen. The owner
// page tracks queue state and the worker effect; this component is
// presentation-only — it renders the list, status icons, and the
-// remove/clear-completed affordances.
+// remove/clear-finished affordances.
//
// Each item is { id, status: 'pending'|'running'|'complete'|'error',
// params: { prompt, mode, ... }, error?, ... }. `summarize` lets the host
@@ -23,7 +23,10 @@ export default function BatchQueuePanel({ queue, onRemove, onClear, summarize })
// pass in pre-aggregated counts. Distinguishing "running" (1, the actively
// processing job) from "queued" (pending count) is more accurate than the
// earlier "X in flight" copy, which lumped both together.
- const completedCount = queue.filter((q) => q.status === 'complete' || q.status === 'error').length;
+ // "finished" covers both successful and errored items because the clear
+ // action removes both — counting only `complete` would understate what the
+ // button is about to clear.
+ const finishedCount = queue.filter((q) => q.status === 'complete' || q.status === 'error').length;
const runningCount = queue.filter((q) => q.status === 'running').length;
const pendingCount = queue.filter((q) => q.status === 'pending').length;
const queueStatusText =
@@ -41,13 +44,13 @@ export default function BatchQueuePanel({ queue, onRemove, onClear, summarize })
Batch queue
<span className="ml-2 text-xs text-gray-500">{queueStatusText}</span>
</h2>
- {completedCount > 0 && (
+ {finishedCount > 0 && (
<button
type="button"
onClick={onClear}
className="text-xs text-gray-400 hover:text-white"
>
- Clear completed ({completedCount})
+ Clear finished ({finishedCount})
</button>
)}
</div>
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index 01b08d2716..3b88fece4d 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -237,6 +237,12 @@ export default function VideoGen() {
setExtendFromVideoId('');
} else if (next === 'extend') {
setLastImageFile(null);
+ // Drop any source image carried over from a prior mode — extend will
+ // populate sourceImageFile fresh from the picked video's last frame
+ // via handleExtendPick. Without this, switching from image/fflf into
+ // extend leaves a stale source that gets silently submitted alongside
+ // an empty extendFromVideoId.
+ clearSourceImage();
}
};
@@ -366,7 +372,9 @@ export default function VideoGen() {
const removeFromQueue = (id) => {
setQueue((q) => q.filter((item) => item.id !== id || item.status === 'running'));
};
- const clearCompletedQueue = () => {
+ // Drops both successful and errored items — the panel surfaces this as
+ // "Clear finished" so the label matches the behavior.
+ const clearFinishedQueue = () => {
setQueue((q) => q.filter((item) => item.status !== 'complete' && item.status !== 'error'));
};
@@ -813,7 +821,7 @@ export default function VideoGen() {
<BatchQueuePanel
queue={queue}
onRemove={removeFromQueue}
- onClear={clearCompletedQueue}
+ onClear={clearFinishedQueue}
summarize={(item) => (
<>
<span className="uppercase mr-2">{item.params.mode}</span>