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/CharacterStage.tsx |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/video-claw/video-claw/frontend/components/stages/CharacterStage.tsx b/video-claw/video-claw/frontend/components/stages/CharacterStage.tsx
index 428bdbd..e1c69d7 100644
--- a/video-claw/video-claw/frontend/components/stages/CharacterStage.tsx
+++ b/video-claw/video-claw/frontend/components/stages/CharacterStage.tsx
@@ -366,6 +366,13 @@
     });
   }, [allAssets, regeneratingIds.size]);
 
+  useEffect(() => {
+    if (state.status !== 'running') {
+      setRegeneratingIds(new Set());
+      regenerationStartCounts.current = {};
+    }
+  }, [state.status]);
+
   const hasChars = characters.length > 0;
   const hasSets = settingsData.length > 0;
 

--
Gitblit v1.8.0