(value: string | null)
| 201 | const shouldShowExternalIncludesToggle = hasExternalClaudeMdIncludes(memoryFiles); |
| 202 | const autoUpdaterDisabledReason = getAutoUpdaterDisabledReason(); |
| 203 | function onChangeMainModelConfig(value: string | null): void { |
| 204 | const previousModel = mainLoopModel; |
| 205 | logEvent('tengu_config_model_changed', { |
| 206 | from_model: previousModel as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, |
| 207 | to_model: value as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS |
| 208 | }); |
| 209 | setAppState(prev => ({ |
| 210 | ...prev, |
| 211 | mainLoopModel: value, |
| 212 | mainLoopModelForSession: null |
| 213 | })); |
| 214 | setChanges(prev_0 => { |
| 215 | const valStr = modelDisplayString(value) + (isBilledAsExtraUsage(value, false, isOpus1mMergeEnabled()) ? ' · Billed as extra usage' : ''); |
| 216 | if ('model' in prev_0) { |
| 217 | const { |
| 218 | model, |
| 219 | ...rest |
| 220 | } = prev_0; |
| 221 | return { |
| 222 | ...rest, |
| 223 | model: valStr |
| 224 | }; |
| 225 | } |
| 226 | return { |
| 227 | ...prev_0, |
| 228 | model: valStr |
| 229 | }; |
| 230 | }); |
| 231 | } |
| 232 | function onChangeVerbose(value_0: boolean): void { |
| 233 | // Update the global config to persist the setting |
| 234 | saveGlobalConfig(current => ({ |
no test coverage detected