* Factory for a fresh default GlobalConfig. Used instead of deep-cloning a * shared constant — the nested containers (arrays, records) are all empty, so * a factory gives fresh refs at zero clone cost.
()
| 585 | * a factory gives fresh refs at zero clone cost. |
| 586 | */ |
| 587 | function createDefaultGlobalConfig(): GlobalConfig { |
| 588 | return { |
| 589 | numStartups: 0, |
| 590 | installMethod: undefined, |
| 591 | autoUpdates: undefined, |
| 592 | theme: 'dark', |
| 593 | preferredNotifChannel: 'auto', |
| 594 | verbose: false, |
| 595 | editorMode: 'normal', |
| 596 | autoCompactEnabled: true, |
| 597 | showTurnDuration: true, |
| 598 | hasSeenTasksHint: false, |
| 599 | hasUsedStash: false, |
| 600 | hasUsedBackgroundTask: false, |
| 601 | queuedCommandUpHintCount: 0, |
| 602 | diffTool: 'auto', |
| 603 | customApiKeyResponses: { |
| 604 | approved: [], |
| 605 | rejected: [], |
| 606 | }, |
| 607 | env: {}, |
| 608 | tipsHistory: {}, |
| 609 | memoryUsageCount: 0, |
| 610 | promptQueueUseCount: 0, |
| 611 | btwUseCount: 0, |
| 612 | todoFeatureEnabled: true, |
| 613 | showExpandedTodos: false, |
| 614 | messageIdleNotifThresholdMs: 60000, |
| 615 | autoConnectIde: false, |
| 616 | autoInstallIdeExtension: true, |
| 617 | fileCheckpointingEnabled: true, |
| 618 | terminalProgressBarEnabled: true, |
| 619 | cachedStatsigGates: {}, |
| 620 | cachedDynamicConfigs: {}, |
| 621 | cachedGrowthBookFeatures: {}, |
| 622 | respectGitignore: true, |
| 623 | copyFullResponse: false, |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | export const DEFAULT_GLOBAL_CONFIG: GlobalConfig = createDefaultGlobalConfig() |
| 628 |
no outgoing calls
no test coverage detected