Skip to content

Commit 5d31f8f

Browse files
committed
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
1 parent d370b8b commit 5d31f8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,8 @@ export class ClineProvider
18131813
includeDiagnosticMessages,
18141814
maxDiagnosticMessages,
18151815
includeTaskHistoryInEnhance,
1816+
includeCurrentTime,
1817+
includeCurrentCost,
18161818
taskSyncEnabled,
18171819
remoteControlEnabled,
18181820
openRouterImageApiKey,
@@ -1961,6 +1963,8 @@ export class ClineProvider
19611963
includeDiagnosticMessages: includeDiagnosticMessages ?? true,
19621964
maxDiagnosticMessages: maxDiagnosticMessages ?? 50,
19631965
includeTaskHistoryInEnhance: includeTaskHistoryInEnhance ?? true,
1966+
includeCurrentTime: includeCurrentTime ?? true,
1967+
includeCurrentCost: includeCurrentCost ?? true,
19641968
taskSyncEnabled,
19651969
remoteControlEnabled,
19661970
openRouterImageApiKey,
@@ -2173,6 +2177,8 @@ export class ClineProvider
21732177
includeDiagnosticMessages: stateValues.includeDiagnosticMessages ?? true,
21742178
maxDiagnosticMessages: stateValues.maxDiagnosticMessages ?? 50,
21752179
includeTaskHistoryInEnhance: stateValues.includeTaskHistoryInEnhance ?? true,
2180+
includeCurrentTime: stateValues.includeCurrentTime ?? true,
2181+
includeCurrentCost: stateValues.includeCurrentCost ?? true,
21762182
taskSyncEnabled,
21772183
remoteControlEnabled: (() => {
21782184
try {

0 commit comments

Comments
 (0)