Skip to content

Commit dfd4dcf

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 ec9d4e2 commit dfd4dcf

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
@@ -1809,6 +1809,8 @@ export class ClineProvider
18091809
includeDiagnosticMessages,
18101810
maxDiagnosticMessages,
18111811
includeTaskHistoryInEnhance,
1812+
includeCurrentTime,
1813+
includeCurrentCost,
18121814
taskSyncEnabled,
18131815
remoteControlEnabled,
18141816
openRouterImageApiKey,
@@ -1958,6 +1960,8 @@ export class ClineProvider
19581960
includeDiagnosticMessages: includeDiagnosticMessages ?? true,
19591961
maxDiagnosticMessages: maxDiagnosticMessages ?? 50,
19601962
includeTaskHistoryInEnhance: includeTaskHistoryInEnhance ?? true,
1963+
includeCurrentTime: includeCurrentTime ?? true,
1964+
includeCurrentCost: includeCurrentCost ?? true,
19611965
taskSyncEnabled,
19621966
remoteControlEnabled,
19631967
openRouterImageApiKey,
@@ -2169,6 +2173,8 @@ export class ClineProvider
21692173
includeDiagnosticMessages: stateValues.includeDiagnosticMessages ?? true,
21702174
maxDiagnosticMessages: stateValues.maxDiagnosticMessages ?? 50,
21712175
includeTaskHistoryInEnhance: stateValues.includeTaskHistoryInEnhance ?? true,
2176+
includeCurrentTime: stateValues.includeCurrentTime ?? true,
2177+
includeCurrentCost: stateValues.includeCurrentCost ?? true,
21722178
taskSyncEnabled,
21732179
remoteControlEnabled: (() => {
21742180
try {

0 commit comments

Comments
 (0)