Skip to content

Commit 438c8e3

Browse files
Make enhance with task history default to true (#7140)
1 parent 52c58ea commit 438c8e3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ export class ClineProvider
18731873
followupAutoApproveTimeoutMs: followupAutoApproveTimeoutMs ?? 60000,
18741874
includeDiagnosticMessages: includeDiagnosticMessages ?? true,
18751875
maxDiagnosticMessages: maxDiagnosticMessages ?? 50,
1876-
includeTaskHistoryInEnhance: includeTaskHistoryInEnhance ?? false,
1876+
includeTaskHistoryInEnhance: includeTaskHistoryInEnhance ?? true,
18771877
remoteControlEnabled: remoteControlEnabled ?? false,
18781878
}
18791879
}
@@ -2061,7 +2061,7 @@ export class ClineProvider
20612061
includeDiagnosticMessages: stateValues.includeDiagnosticMessages ?? true,
20622062
maxDiagnosticMessages: stateValues.maxDiagnosticMessages ?? 50,
20632063
// Add includeTaskHistoryInEnhance setting
2064-
includeTaskHistoryInEnhance: stateValues.includeTaskHistoryInEnhance ?? false,
2064+
includeTaskHistoryInEnhance: stateValues.includeTaskHistoryInEnhance ?? true,
20652065
// Add remoteControlEnabled setting
20662066
remoteControlEnabled: stateValues.remoteControlEnabled ?? false,
20672067
}

src/core/webview/webviewMessageHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ export const webviewMessageHandler = async (
13431343
await provider.postStateToWebview()
13441344
break
13451345
case "includeTaskHistoryInEnhance":
1346-
await updateGlobalState("includeTaskHistoryInEnhance", message.bool ?? false)
1346+
await updateGlobalState("includeTaskHistoryInEnhance", message.bool ?? true)
13471347
await provider.postStateToWebview()
13481348
break
13491349
case "condensingApiConfigId":

webview-ui/src/components/settings/PromptsSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const PromptsSettings = ({
4646
} = useExtensionState()
4747

4848
// Use props if provided, otherwise fall back to context
49-
const includeTaskHistoryInEnhance = propsIncludeTaskHistoryInEnhance ?? contextIncludeTaskHistoryInEnhance
49+
const includeTaskHistoryInEnhance = propsIncludeTaskHistoryInEnhance ?? contextIncludeTaskHistoryInEnhance ?? true
5050
const setIncludeTaskHistoryInEnhance = propsSetIncludeTaskHistoryInEnhance ?? contextSetIncludeTaskHistoryInEnhance
5151

5252
const [testPrompt, setTestPrompt] = useState("")
@@ -235,7 +235,7 @@ const PromptsSettings = ({
235235
<>
236236
<div>
237237
<VSCodeCheckbox
238-
checked={includeTaskHistoryInEnhance || false}
238+
checked={includeTaskHistoryInEnhance}
239239
onChange={(e: any) => {
240240
const value = e.target.checked
241241
setIncludeTaskHistoryInEnhance(value)

webview-ui/src/components/settings/SettingsView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
341341
vscode.postMessage({ type: "condensingApiConfigId", text: condensingApiConfigId || "" })
342342
vscode.postMessage({ type: "updateCondensingPrompt", text: customCondensingPrompt || "" })
343343
vscode.postMessage({ type: "updateSupportPrompt", values: customSupportPrompts || {} })
344-
vscode.postMessage({ type: "includeTaskHistoryInEnhance", bool: includeTaskHistoryInEnhance ?? false })
344+
vscode.postMessage({ type: "includeTaskHistoryInEnhance", bool: includeTaskHistoryInEnhance ?? true })
345345
vscode.postMessage({ type: "upsertApiConfiguration", text: currentApiConfigName, apiConfiguration })
346346
vscode.postMessage({ type: "telemetrySetting", text: telemetrySetting })
347347
vscode.postMessage({ type: "profileThresholds", values: profileThresholds })

webview-ui/src/context/ExtensionStateContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
268268
project: {},
269269
global: {},
270270
})
271-
const [includeTaskHistoryInEnhance, setIncludeTaskHistoryInEnhance] = useState(false)
271+
const [includeTaskHistoryInEnhance, setIncludeTaskHistoryInEnhance] = useState(true)
272272

273273
const setListApiConfigMeta = useCallback(
274274
(value: ProviderSettingsEntry[]) => setState((prevState) => ({ ...prevState, listApiConfigMeta: value })),

0 commit comments

Comments
 (0)