From 741a06abae642d63c0b90c474a33eabad61ff8ab Mon Sep 17 00:00:00 2001
From: log
Date: Wed, 24 Jun 2026 14:23:46 +0800
Subject: [PATCH] fix(ui): clear regenerating status when stage stops running
---
video-claw/video-claw/frontend/components/stages/VideoStage.tsx | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/video-claw/video-claw/frontend/components/stages/VideoStage.tsx b/video-claw/video-claw/frontend/components/stages/VideoStage.tsx
index f8ac0a5..8dfb536 100644
--- a/video-claw/video-claw/frontend/components/stages/VideoStage.tsx
+++ b/video-claw/video-claw/frontend/components/stages/VideoStage.tsx
@@ -417,6 +417,13 @@
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [clips]);
+ useEffect(() => {
+ if (state.status !== 'running') {
+ setRegeneratingIds(new Set());
+ regenerationStartCounts.current = {};
+ }
+ }, [state.status]);
+
const hasClips = clips.length > 0;
const canEdit = state.status === 'waiting' || state.status === 'completed';
--
Gitblit v1.8.0