mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-19 23:05:51 +00:00
feat: 添加 cacheWarningEnabled 配置项,支持在 /config 面板关闭缓存率警告
This commit is contained in:
@@ -331,6 +331,24 @@ export function Config({
|
||||
});
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'cacheWarningEnabled',
|
||||
label: 'Cache warnings',
|
||||
value: settingsData?.cacheWarningEnabled ?? true,
|
||||
type: 'boolean' as const,
|
||||
onChange(cacheWarningEnabled: boolean) {
|
||||
updateSettingsForSource('localSettings', {
|
||||
cacheWarningEnabled,
|
||||
});
|
||||
setSettingsData(prev => ({
|
||||
...prev,
|
||||
cacheWarningEnabled,
|
||||
}));
|
||||
logEvent('tengu_cache_warning_setting_changed', {
|
||||
enabled: cacheWarningEnabled,
|
||||
});
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'prefersReducedMotion',
|
||||
label: 'Reduce motion',
|
||||
|
||||
Reference in New Issue
Block a user