From e8a39571159d55241dbf38509a6dc4b6402480b6 Mon Sep 17 00:00:00 2001 From: sepehr Date: Sun, 26 Apr 2026 21:24:47 +0200 Subject: [PATCH] fix: add missing languageDetection/autoLabeling to getAISettings fallbacks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The error fallback and non-logged-in fallback in getAISettings were missing languageDetection and autoLabeling fields, creating a union type where these could be undefined — breaking the build. Co-Authored-By: Claude Opus 4.7 --- memento-note/app/actions/ai-settings.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/memento-note/app/actions/ai-settings.ts b/memento-note/app/actions/ai-settings.ts index c8b1c8e..444d2f6 100644 --- a/memento-note/app/actions/ai-settings.ts +++ b/memento-note/app/actions/ai-settings.ts @@ -199,7 +199,9 @@ const getCachedAISettings = unstable_cache( desktopNotifications: false, anonymousAnalytics: false, theme: 'light' as const, - fontSize: 'medium' as const + fontSize: 'medium' as const, + languageDetection: true, + autoLabeling: true, } } }, @@ -232,7 +234,9 @@ export async function getAISettings(userId?: string) { desktopNotifications: false, anonymousAnalytics: false, theme: 'light' as const, - fontSize: 'medium' as const + fontSize: 'medium' as const, + languageDetection: true, + autoLabeling: true, } }