mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-02 18:18:43 +00:00
feat(cliproxy): enable auto_sync by default
This commit is contained in:
@@ -159,6 +159,8 @@ function mergeWithDefaults(partial: Partial<UnifiedConfig>): UnifiedConfig {
|
|||||||
partial.cliproxy?.backend === 'original' || partial.cliproxy?.backend === 'plus'
|
partial.cliproxy?.backend === 'original' || partial.cliproxy?.backend === 'plus'
|
||||||
? partial.cliproxy.backend
|
? partial.cliproxy.backend
|
||||||
: undefined, // Invalid values become undefined (defaults to 'plus' at runtime)
|
: undefined, // Invalid values become undefined (defaults to 'plus' at runtime)
|
||||||
|
// Auto-sync - default to true
|
||||||
|
auto_sync: partial.cliproxy?.auto_sync ?? defaults.cliproxy.auto_sync ?? true,
|
||||||
},
|
},
|
||||||
preferences: {
|
preferences: {
|
||||||
...defaults.preferences,
|
...defaults.preferences,
|
||||||
|
|||||||
@@ -609,6 +609,7 @@ export function createEmptyUnifiedConfig(): UnifiedConfig {
|
|||||||
enabled: false,
|
enabled: false,
|
||||||
request_log: false,
|
request_log: false,
|
||||||
},
|
},
|
||||||
|
auto_sync: true,
|
||||||
},
|
},
|
||||||
preferences: {
|
preferences: {
|
||||||
theme: 'system',
|
theme: 'system',
|
||||||
|
|||||||
Reference in New Issue
Block a user