MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / onChange

Function onChange

src/components/Settings/Config.tsx:307–313  ·  view source on GitHub ↗
(autoCompactEnabled: boolean)

Source from the content-addressed store, hash-verified

305 value: globalConfig.autoCompactEnabled,
306 type: 'boolean' as const,
307 onChange(autoCompactEnabled: boolean) {
308 saveGlobalConfig(current => ({ ...current, autoCompactEnabled }));
309 setGlobalConfig({ ...getGlobalConfig(), autoCompactEnabled });
310 logEvent('tengu_auto_compact_setting_changed', {
311 enabled: autoCompactEnabled,
312 });
313 },
314 },
315 {
316 id: 'spinnerTipsEnabled',

Callers

nothing calls this directly

Calls 15

saveGlobalConfigFunction · 0.85
getGlobalConfigFunction · 0.85
logEventFunction · 0.85
updateSettingsForSourceFunction · 0.85
clearFastModeCooldownFunction · 0.85
getFastModeModelFunction · 0.85
permissionModeFromStringFunction · 0.85
isExternalPermissionModeFunction · 0.85
toExternalPermissionModeFunction · 0.85
transitionPlanAutoModeFunction · 0.85
setUserMsgOptInFunction · 0.85

Tested by

no test coverage detected