@@ -129,6 +129,8 @@ ${chapterPlanSummary}
}
}, [apiSettings, chapterPlanSummary]);
+ generateHooksRef.current = generateHookOptions;
+
const toggleHook = (id: string) => {
setSelectedHookIds((prev) => {
const next = new Set(prev);
@@ -656,6 +656,8 @@ ${antiText}
}, [apiSettings, projectPath, buildGenerationPrompt, ironRules, rollingSummaries]);
+ generateContentRef.current = generateContent;
useEffect(() => {
return () => {
abortControllerRef.current?.abort();