mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-08 22:21:23 +00:00
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
This commit is contained in:
parent
d370b8ba53
commit
5d31f8f61f
1 changed files with 6 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue