Stijnus commited on
Commit
10af7c9
·
1 Parent(s): 7f3b5f6

Default settings feature tab

Browse files
app/components/@settings/tabs/features/FeaturesTab.tsx CHANGED
@@ -123,23 +123,23 @@ export default function FeaturesTab() {
123
  React.useEffect(() => {
124
  // Only set defaults if values are undefined
125
  if (isLatestBranch === undefined) {
126
- enableLatestBranch(true);
127
  }
128
 
129
  if (contextOptimizationEnabled === undefined) {
130
- enableContextOptimization(true);
131
  }
132
 
133
  if (autoSelectTemplate === undefined) {
134
- setAutoSelectTemplate(true);
135
  }
136
 
137
  if (promptId === undefined) {
138
- setPromptId('optimized');
139
  }
140
 
141
  if (eventLogs === undefined) {
142
- setEventLogs(true);
143
  }
144
  }, []); // Only run once on component mount
145
 
 
123
  React.useEffect(() => {
124
  // Only set defaults if values are undefined
125
  if (isLatestBranch === undefined) {
126
+ enableLatestBranch(false); // Default: OFF - Don't auto-update from main branch
127
  }
128
 
129
  if (contextOptimizationEnabled === undefined) {
130
+ enableContextOptimization(true); // Default: ON - Enable context optimization
131
  }
132
 
133
  if (autoSelectTemplate === undefined) {
134
+ setAutoSelectTemplate(true); // Default: ON - Enable auto-select templates
135
  }
136
 
137
  if (promptId === undefined) {
138
+ setPromptId('default'); // Default: 'default'
139
  }
140
 
141
  if (eventLogs === undefined) {
142
+ setEventLogs(true); // Default: ON - Enable event logging
143
  }
144
  }, []); // Only run once on component mount
145
 
app/lib/stores/settings.ts CHANGED
@@ -155,11 +155,11 @@ const getInitialSettings = () => {
155
  };
156
 
157
  return {
158
- latestBranch: getStoredBoolean(SETTINGS_KEYS.LATEST_BRANCH, true),
159
  autoSelectTemplate: getStoredBoolean(SETTINGS_KEYS.AUTO_SELECT_TEMPLATE, true),
160
  contextOptimization: getStoredBoolean(SETTINGS_KEYS.CONTEXT_OPTIMIZATION, true),
161
  eventLogs: getStoredBoolean(SETTINGS_KEYS.EVENT_LOGS, true),
162
- localModels: getStoredBoolean(SETTINGS_KEYS.LOCAL_MODELS, true),
163
  promptId: isBrowser ? localStorage.getItem(SETTINGS_KEYS.PROMPT_ID) || 'default' : 'default',
164
  developerMode: getStoredBoolean(SETTINGS_KEYS.DEVELOPER_MODE, false),
165
  };
 
155
  };
156
 
157
  return {
158
+ latestBranch: getStoredBoolean(SETTINGS_KEYS.LATEST_BRANCH, false),
159
  autoSelectTemplate: getStoredBoolean(SETTINGS_KEYS.AUTO_SELECT_TEMPLATE, true),
160
  contextOptimization: getStoredBoolean(SETTINGS_KEYS.CONTEXT_OPTIMIZATION, true),
161
  eventLogs: getStoredBoolean(SETTINGS_KEYS.EVENT_LOGS, true),
162
+ localModels: getStoredBoolean(SETTINGS_KEYS.LOCAL_MODELS, false),
163
  promptId: isBrowser ? localStorage.getItem(SETTINGS_KEYS.PROMPT_ID) || 'default' : 'default',
164
  developerMode: getStoredBoolean(SETTINGS_KEYS.DEVELOPER_MODE, false),
165
  };