@@ -1684,6 +1684,110 @@ export class ClineProvider
16841684 includeDiagnosticMessages : stateValues . includeDiagnosticMessages ?? DEFAULT_INCLUDE_DIAGNOSTIC_MESSAGES ,
16851685 maxDiagnosticMessages : stateValues . maxDiagnosticMessages ?? DEFAULT_MAX_DIAGNOSTIC_MESSAGES ,
16861686 }
1687+
1688+ // Log diagnostic settings retrieval
1689+ DiagnosticDebugLogger . getInstance ( ) . log ( "ClineProvider.getState" , "Retrieved diagnostic settings from state" , {
1690+ includeDiagnosticMessages : stateValues . includeDiagnosticMessages ,
1691+ maxDiagnosticMessages : stateValues . maxDiagnosticMessages ,
1692+ defaultsApplied : {
1693+ includeDiagnosticMessages : stateValues . includeDiagnosticMessages === undefined ,
1694+ maxDiagnosticMessages : stateValues . maxDiagnosticMessages === undefined ,
1695+ } ,
1696+ } )
1697+
1698+ // Return the same structure as before
1699+ return {
1700+ apiConfiguration : providerSettings ,
1701+ lastShownAnnouncementId : stateValues . lastShownAnnouncementId ,
1702+ customInstructions : stateValues . customInstructions ,
1703+ apiModelId : stateValues . apiModelId ,
1704+ alwaysAllowReadOnly : stateValues . alwaysAllowReadOnly ?? false ,
1705+ alwaysAllowReadOnlyOutsideWorkspace : stateValues . alwaysAllowReadOnlyOutsideWorkspace ?? false ,
1706+ alwaysAllowWrite : stateValues . alwaysAllowWrite ?? false ,
1707+ alwaysAllowWriteOutsideWorkspace : stateValues . alwaysAllowWriteOutsideWorkspace ?? false ,
1708+ alwaysAllowWriteProtected : stateValues . alwaysAllowWriteProtected ?? false ,
1709+ alwaysAllowExecute : stateValues . alwaysAllowExecute ?? false ,
1710+ alwaysAllowBrowser : stateValues . alwaysAllowBrowser ?? false ,
1711+ alwaysAllowMcp : stateValues . alwaysAllowMcp ?? false ,
1712+ alwaysAllowModeSwitch : stateValues . alwaysAllowModeSwitch ?? false ,
1713+ alwaysAllowSubtasks : stateValues . alwaysAllowSubtasks ?? false ,
1714+ alwaysAllowFollowupQuestions : stateValues . alwaysAllowFollowupQuestions ?? false ,
1715+ alwaysAllowUpdateTodoList : stateValues . alwaysAllowUpdateTodoList ?? false ,
1716+ followupAutoApproveTimeoutMs : stateValues . followupAutoApproveTimeoutMs ?? 60000 ,
1717+ allowedMaxRequests : stateValues . allowedMaxRequests ,
1718+ autoCondenseContext : stateValues . autoCondenseContext ?? true ,
1719+ autoCondenseContextPercent : stateValues . autoCondenseContextPercent ?? 100 ,
1720+ taskHistory : stateValues . taskHistory ,
1721+ allowedCommands : stateValues . allowedCommands ,
1722+ soundEnabled : stateValues . soundEnabled ?? false ,
1723+ ttsEnabled : stateValues . ttsEnabled ?? false ,
1724+ ttsSpeed : stateValues . ttsSpeed ?? 1.0 ,
1725+ diffEnabled : stateValues . diffEnabled ?? true ,
1726+ enableCheckpoints : stateValues . enableCheckpoints ?? true ,
1727+ soundVolume : stateValues . soundVolume ,
1728+ browserViewportSize : stateValues . browserViewportSize ?? "900x600" ,
1729+ screenshotQuality : stateValues . screenshotQuality ?? 75 ,
1730+ remoteBrowserHost : stateValues . remoteBrowserHost ,
1731+ remoteBrowserEnabled : stateValues . remoteBrowserEnabled ?? false ,
1732+ cachedChromeHostUrl : stateValues . cachedChromeHostUrl as string | undefined ,
1733+ fuzzyMatchThreshold : stateValues . fuzzyMatchThreshold ?? 1.0 ,
1734+ writeDelayMs : stateValues . writeDelayMs ?? 1000 ,
1735+ terminalOutputLineLimit : stateValues . terminalOutputLineLimit ?? 500 ,
1736+ terminalShellIntegrationTimeout :
1737+ stateValues . terminalShellIntegrationTimeout ?? Terminal . defaultShellIntegrationTimeout ,
1738+ terminalShellIntegrationDisabled : stateValues . terminalShellIntegrationDisabled ?? false ,
1739+ terminalCommandDelay : stateValues . terminalCommandDelay ?? 0 ,
1740+ terminalPowershellCounter : stateValues . terminalPowershellCounter ?? false ,
1741+ terminalZshClearEolMark : stateValues . terminalZshClearEolMark ?? true ,
1742+ terminalZshOhMy : stateValues . terminalZshOhMy ?? false ,
1743+ terminalZshP10k : stateValues . terminalZshP10k ?? false ,
1744+ terminalZdotdir : stateValues . terminalZdotdir ?? false ,
1745+ terminalCompressProgressBar : stateValues . terminalCompressProgressBar ?? true ,
1746+ mode : stateValues . mode ?? defaultModeSlug ,
1747+ language : stateValues . language ?? formatLanguage ( vscode . env . language ) ,
1748+ mcpEnabled : stateValues . mcpEnabled ?? true ,
1749+ enableMcpServerCreation : stateValues . enableMcpServerCreation ?? true ,
1750+ alwaysApproveResubmit : stateValues . alwaysApproveResubmit ?? false ,
1751+ requestDelaySeconds : Math . max ( 5 , stateValues . requestDelaySeconds ?? 10 ) ,
1752+ currentApiConfigName : stateValues . currentApiConfigName ?? "default" ,
1753+ listApiConfigMeta : stateValues . listApiConfigMeta ?? [ ] ,
1754+ pinnedApiConfigs : stateValues . pinnedApiConfigs ?? { } ,
1755+ modeApiConfigs : stateValues . modeApiConfigs ?? ( { } as Record < Mode , string > ) ,
1756+ customModePrompts : stateValues . customModePrompts ?? { } ,
1757+ customSupportPrompts : stateValues . customSupportPrompts ?? { } ,
1758+ enhancementApiConfigId : stateValues . enhancementApiConfigId ,
1759+ experiments : stateValues . experiments ?? experimentDefault ,
1760+ autoApprovalEnabled : stateValues . autoApprovalEnabled ?? false ,
1761+ customModes,
1762+ maxOpenTabsContext : stateValues . maxOpenTabsContext ?? 20 ,
1763+ maxWorkspaceFiles : stateValues . maxWorkspaceFiles ?? 200 ,
1764+ openRouterUseMiddleOutTransform : stateValues . openRouterUseMiddleOutTransform ?? true ,
1765+ browserToolEnabled : stateValues . browserToolEnabled ?? true ,
1766+ telemetrySetting : stateValues . telemetrySetting || "unset" ,
1767+ showRooIgnoredFiles : stateValues . showRooIgnoredFiles ?? true ,
1768+ maxReadFileLine : stateValues . maxReadFileLine ?? - 1 ,
1769+ maxConcurrentFileReads : stateValues . maxConcurrentFileReads ?? 5 ,
1770+ historyPreviewCollapsed : stateValues . historyPreviewCollapsed ?? false ,
1771+ cloudUserInfo,
1772+ cloudIsAuthenticated,
1773+ sharingEnabled,
1774+ organizationAllowList,
1775+ // Explicitly add condensing settings
1776+ condensingApiConfigId : stateValues . condensingApiConfigId ,
1777+ customCondensingPrompt : stateValues . customCondensingPrompt ,
1778+ codebaseIndexModels : stateValues . codebaseIndexModels ?? EMBEDDING_MODEL_PROFILES ,
1779+ codebaseIndexConfig : stateValues . codebaseIndexConfig ?? {
1780+ codebaseIndexEnabled : true ,
1781+ codebaseIndexQdrantUrl : "http://localhost:6333" ,
1782+ codebaseIndexEmbedderProvider : "openai" ,
1783+ codebaseIndexEmbedderBaseUrl : "" ,
1784+ codebaseIndexEmbedderModelId : "" ,
1785+ } ,
1786+ profileThresholds : stateValues . profileThresholds ?? { } ,
1787+ // Add diagnostic message settings
1788+ includeDiagnosticMessages : stateValues . includeDiagnosticMessages ?? DEFAULT_INCLUDE_DIAGNOSTIC_MESSAGES ,
1789+ maxDiagnosticMessages : stateValues . maxDiagnosticMessages ?? DEFAULT_MAX_DIAGNOSTIC_MESSAGES ,
1790+ }
16871791 }
16881792
16891793 async updateTaskHistory ( item : HistoryItem ) : Promise < HistoryItem [ ] > {
0 commit comments