Default settings feature tab

This commit is contained in:
Stijnus 2025-02-18 17:50:01 +01:00
parent 7f3b5f6628
commit 10af7c9835
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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),
};