diff --git a/components/canvas/nodes/ai-image-node.tsx b/components/canvas/nodes/ai-image-node.tsx index bb13d10..158852b 100644 --- a/components/canvas/nodes/ai-image-node.tsx +++ b/components/canvas/nodes/ai-image-node.tsx @@ -158,7 +158,7 @@ export default function AiImageNode({ } finally { setIsGenerating(false); } - }, [isLoading, syncStatus.isOffline, nodeData, id, getEdges, getNode, generateImage]); + }, [isLoading, syncStatus.isOffline, nodeData, id, getEdges, getNode, generateImage, t]); const modelName = getModel(nodeData.model ?? DEFAULT_MODEL_ID)?.name ?? "AI"; diff --git a/components/canvas/nodes/frame-node.tsx b/components/canvas/nodes/frame-node.tsx index 423ab08..afc951b 100644 --- a/components/canvas/nodes/frame-node.tsx +++ b/components/canvas/nodes/frame-node.tsx @@ -76,7 +76,7 @@ export default function FrameNode({ id, data, selected, width, height }: NodePro } finally { setIsExporting(false); } - }, [exportFrame, id, isExporting, label, status.isOffline]); + }, [exportFrame, id, isExporting, label, status.isOffline, t]); const frameW = Math.round(width ?? 400); const frameH = Math.round(height ?? 300); diff --git a/components/canvas/nodes/prompt-node.tsx b/components/canvas/nodes/prompt-node.tsx index 52a7ee5..2de5512 100644 --- a/components/canvas/nodes/prompt-node.tsx +++ b/components/canvas/nodes/prompt-node.tsx @@ -297,6 +297,7 @@ export default function PromptNode({ hasEnoughCredits, router, status.isOffline, + t, ]); return ( diff --git a/eslint.config.mjs b/eslint.config.mjs index 05e726d..5f790ec 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -12,6 +12,7 @@ const eslintConfig = defineConfig([ "out/**", "build/**", "next-env.d.ts", + "convex/_generated/**", ]), ]); diff --git a/lib/ai-errors.ts b/lib/ai-errors.ts index 2132391..d4ffb27 100644 --- a/lib/ai-errors.ts +++ b/lib/ai-errors.ts @@ -304,8 +304,6 @@ export function classifyError(rawError: unknown): AiError { ? rawObj.message : ""; - const rawDetail = typeof rawObj?.detail === "string" ? rawObj.detail.trim() : undefined; - const prefixed = cleanPrefixMessage(rawMessage); const explicitType = normalizeType(typeof rawObj?.category === "string" ? rawObj.category : undefined) ??