From 5d31f8f61f87e12a9bd5534ef7811e4c800b949d Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Mon, 27 Oct 2025 16:06:43 -0500 Subject: [PATCH] fix: include includeCurrentTime/Cost settings in state methods - Add includeCurrentTime and includeCurrentCost to getStateToPostToWebview() - Add them to the destructuring in getStateToPostToWebview() - Add them to the return object in getState() - This ensures the settings are properly loaded from storage and displayed in UI - Fixes persistence issue where settings would reset when reopening settings panel --- src/core/webview/ClineProvider.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 6c1d612943..600915f275 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1813,6 +1813,8 @@ export class ClineProvider includeDiagnosticMessages, maxDiagnosticMessages, includeTaskHistoryInEnhance, + includeCurrentTime, + includeCurrentCost, taskSyncEnabled, remoteControlEnabled, openRouterImageApiKey, @@ -1961,6 +1963,8 @@ export class ClineProvider includeDiagnosticMessages: includeDiagnosticMessages ?? true, maxDiagnosticMessages: maxDiagnosticMessages ?? 50, includeTaskHistoryInEnhance: includeTaskHistoryInEnhance ?? true, + includeCurrentTime: includeCurrentTime ?? true, + includeCurrentCost: includeCurrentCost ?? true, taskSyncEnabled, remoteControlEnabled, openRouterImageApiKey, @@ -2173,6 +2177,8 @@ export class ClineProvider includeDiagnosticMessages: stateValues.includeDiagnosticMessages ?? true, maxDiagnosticMessages: stateValues.maxDiagnosticMessages ?? 50, includeTaskHistoryInEnhance: stateValues.includeTaskHistoryInEnhance ?? true, + includeCurrentTime: stateValues.includeCurrentTime ?? true, + includeCurrentCost: stateValues.includeCurrentCost ?? true, taskSyncEnabled, remoteControlEnabled: (() => { try {