mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Make enhance with task history default to true (#7140)
This commit is contained in:
parent
52c58ea666
commit
438c8e377a
5 changed files with 7 additions and 7 deletions
|
|
@ -1873,7 +1873,7 @@ export class ClineProvider
|
|||
followupAutoApproveTimeoutMs: followupAutoApproveTimeoutMs ?? 60000,
|
||||
includeDiagnosticMessages: includeDiagnosticMessages ?? true,
|
||||
maxDiagnosticMessages: maxDiagnosticMessages ?? 50,
|
||||
includeTaskHistoryInEnhance: includeTaskHistoryInEnhance ?? false,
|
||||
includeTaskHistoryInEnhance: includeTaskHistoryInEnhance ?? true,
|
||||
remoteControlEnabled: remoteControlEnabled ?? false,
|
||||
}
|
||||
}
|
||||
|
|
@ -2061,7 +2061,7 @@ export class ClineProvider
|
|||
includeDiagnosticMessages: stateValues.includeDiagnosticMessages ?? true,
|
||||
maxDiagnosticMessages: stateValues.maxDiagnosticMessages ?? 50,
|
||||
// Add includeTaskHistoryInEnhance setting
|
||||
includeTaskHistoryInEnhance: stateValues.includeTaskHistoryInEnhance ?? false,
|
||||
includeTaskHistoryInEnhance: stateValues.includeTaskHistoryInEnhance ?? true,
|
||||
// Add remoteControlEnabled setting
|
||||
remoteControlEnabled: stateValues.remoteControlEnabled ?? false,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1343,7 +1343,7 @@ export const webviewMessageHandler = async (
|
|||
await provider.postStateToWebview()
|
||||
break
|
||||
case "includeTaskHistoryInEnhance":
|
||||
await updateGlobalState("includeTaskHistoryInEnhance", message.bool ?? false)
|
||||
await updateGlobalState("includeTaskHistoryInEnhance", message.bool ?? true)
|
||||
await provider.postStateToWebview()
|
||||
break
|
||||
case "condensingApiConfigId":
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ const PromptsSettings = ({
|
|||
} = useExtensionState()
|
||||
|
||||
// Use props if provided, otherwise fall back to context
|
||||
const includeTaskHistoryInEnhance = propsIncludeTaskHistoryInEnhance ?? contextIncludeTaskHistoryInEnhance
|
||||
const includeTaskHistoryInEnhance = propsIncludeTaskHistoryInEnhance ?? contextIncludeTaskHistoryInEnhance ?? true
|
||||
const setIncludeTaskHistoryInEnhance = propsSetIncludeTaskHistoryInEnhance ?? contextSetIncludeTaskHistoryInEnhance
|
||||
|
||||
const [testPrompt, setTestPrompt] = useState("")
|
||||
|
|
@ -235,7 +235,7 @@ const PromptsSettings = ({
|
|||
<>
|
||||
<div>
|
||||
<VSCodeCheckbox
|
||||
checked={includeTaskHistoryInEnhance || false}
|
||||
checked={includeTaskHistoryInEnhance}
|
||||
onChange={(e: any) => {
|
||||
const value = e.target.checked
|
||||
setIncludeTaskHistoryInEnhance(value)
|
||||
|
|
|
|||
|
|
@ -341,7 +341,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|||
vscode.postMessage({ type: "condensingApiConfigId", text: condensingApiConfigId || "" })
|
||||
vscode.postMessage({ type: "updateCondensingPrompt", text: customCondensingPrompt || "" })
|
||||
vscode.postMessage({ type: "updateSupportPrompt", values: customSupportPrompts || {} })
|
||||
vscode.postMessage({ type: "includeTaskHistoryInEnhance", bool: includeTaskHistoryInEnhance ?? false })
|
||||
vscode.postMessage({ type: "includeTaskHistoryInEnhance", bool: includeTaskHistoryInEnhance ?? true })
|
||||
vscode.postMessage({ type: "upsertApiConfiguration", text: currentApiConfigName, apiConfiguration })
|
||||
vscode.postMessage({ type: "telemetrySetting", text: telemetrySetting })
|
||||
vscode.postMessage({ type: "profileThresholds", values: profileThresholds })
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
|
|||
project: {},
|
||||
global: {},
|
||||
})
|
||||
const [includeTaskHistoryInEnhance, setIncludeTaskHistoryInEnhance] = useState(false)
|
||||
const [includeTaskHistoryInEnhance, setIncludeTaskHistoryInEnhance] = useState(true)
|
||||
|
||||
const setListApiConfigMeta = useCallback(
|
||||
(value: ProviderSettingsEntry[]) => setState((prevState) => ({ ...prevState, listApiConfigMeta: value })),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue