From 10af7c983558edeade343195a0f96e030d4a0fd2 Mon Sep 17 00:00:00 2001 From: Stijnus <72551117+Stijnus@users.noreply.github.com> Date: Tue, 18 Feb 2025 17:50:01 +0100 Subject: [PATCH] Default settings feature tab --- app/components/@settings/tabs/features/FeaturesTab.tsx | 10 +++++----- app/lib/stores/settings.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/components/@settings/tabs/features/FeaturesTab.tsx b/app/components/@settings/tabs/features/FeaturesTab.tsx index 01a46b2d..3b14a756 100644 --- a/app/components/@settings/tabs/features/FeaturesTab.tsx +++ b/app/components/@settings/tabs/features/FeaturesTab.tsx @@ -123,23 +123,23 @@ export default function FeaturesTab() { React.useEffect(() => { // Only set defaults if values are undefined if (isLatestBranch === undefined) { - enableLatestBranch(true); + enableLatestBranch(false); // Default: OFF - Don't auto-update from main branch } if (contextOptimizationEnabled === undefined) { - enableContextOptimization(true); + enableContextOptimization(true); // Default: ON - Enable context optimization } if (autoSelectTemplate === undefined) { - setAutoSelectTemplate(true); + setAutoSelectTemplate(true); // Default: ON - Enable auto-select templates } if (promptId === undefined) { - setPromptId('optimized'); + setPromptId('default'); // Default: 'default' } if (eventLogs === undefined) { - setEventLogs(true); + setEventLogs(true); // Default: ON - Enable event logging } }, []); // Only run once on component mount diff --git a/app/lib/stores/settings.ts b/app/lib/stores/settings.ts index 8d8557df..f989fbcb 100644 --- a/app/lib/stores/settings.ts +++ b/app/lib/stores/settings.ts @@ -155,11 +155,11 @@ const getInitialSettings = () => { }; return { - latestBranch: getStoredBoolean(SETTINGS_KEYS.LATEST_BRANCH, true), + latestBranch: getStoredBoolean(SETTINGS_KEYS.LATEST_BRANCH, false), autoSelectTemplate: getStoredBoolean(SETTINGS_KEYS.AUTO_SELECT_TEMPLATE, true), contextOptimization: getStoredBoolean(SETTINGS_KEYS.CONTEXT_OPTIMIZATION, true), eventLogs: getStoredBoolean(SETTINGS_KEYS.EVENT_LOGS, true), - localModels: getStoredBoolean(SETTINGS_KEYS.LOCAL_MODELS, true), + localModels: getStoredBoolean(SETTINGS_KEYS.LOCAL_MODELS, false), promptId: isBrowser ? localStorage.getItem(SETTINGS_KEYS.PROMPT_ID) || 'default' : 'default', developerMode: getStoredBoolean(SETTINGS_KEYS.DEVELOPER_MODE, false), };