Skip to content

Commit f07fafc

Browse files
committed
feat: increase default max concurrent file reads from 5 to 15 across settings and context management
1 parent 83de565 commit f07fafc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
12791279
language: language ?? formatLanguage(vscode.env.language),
12801280
renderContext: this.renderContext,
12811281
maxReadFileLine: maxReadFileLine ?? 500,
1282-
maxConcurrentFileReads: maxConcurrentFileReads ?? 5,
1282+
maxConcurrentFileReads: maxConcurrentFileReads ?? 15,
12831283
settingsImportedAt: this.settingsImportedAt,
12841284
terminalCompressProgressBar: terminalCompressProgressBar ?? true,
12851285
hasSystemPromptOverride,
@@ -1373,7 +1373,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
13731373
telemetrySetting: stateValues.telemetrySetting || "unset",
13741374
showRooIgnoredFiles: stateValues.showRooIgnoredFiles ?? true,
13751375
maxReadFileLine: stateValues.maxReadFileLine ?? 500,
1376-
maxConcurrentFileReads: stateValues.maxConcurrentFileReads ?? 5,
1376+
maxConcurrentFileReads: stateValues.maxConcurrentFileReads ?? 15,
13771377
historyPreviewCollapsed: stateValues.historyPreviewCollapsed ?? false,
13781378
}
13791379
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ export const ContextManagementSettings = ({
107107
min={1}
108108
max={100}
109109
step={1}
110-
value={[maxConcurrentFileReads ?? 5]}
110+
value={[maxConcurrentFileReads ?? 15]}
111111
onValueChange={([value]) => setCachedStateField("maxConcurrentFileReads", value)}
112112
data-testid="max-concurrent-file-reads-slider"
113113
/>
114-
<span className="w-10">{maxConcurrentFileReads ?? 5}</span>
114+
<span className="w-10">{maxConcurrentFileReads ?? 15}</span>
115115
</div>
116116
<div className="text-vscode-descriptionForeground text-sm mt-1">
117117
{t("settings:contextManagement.maxConcurrentFileReads.description")}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
277277
vscode.postMessage({ type: "maxWorkspaceFiles", value: maxWorkspaceFiles ?? 200 })
278278
vscode.postMessage({ type: "showRooIgnoredFiles", bool: showRooIgnoredFiles })
279279
vscode.postMessage({ type: "maxReadFileLine", value: maxReadFileLine ?? 500 })
280-
vscode.postMessage({ type: "maxConcurrentFileReads", value: cachedState.maxConcurrentFileReads ?? 5 })
280+
vscode.postMessage({ type: "maxConcurrentFileReads", value: cachedState.maxConcurrentFileReads ?? 15 })
281281
vscode.postMessage({ type: "currentApiConfigName", text: currentApiConfigName })
282282
vscode.postMessage({ type: "updateExperimental", values: experiments })
283283
vscode.postMessage({ type: "alwaysAllowModeSwitch", bool: alwaysAllowModeSwitch })

webview-ui/src/context/ExtensionStateContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
168168
maxReadFileLine: 500, // Default max read file line limit
169169
pinnedApiConfigs: {}, // Empty object for pinned API configs
170170
terminalZshOhMy: false, // Default Oh My Zsh integration setting
171-
maxConcurrentFileReads: 5, // Default concurrent file reads
171+
maxConcurrentFileReads: 15, // Default concurrent file reads
172172
terminalZshP10k: false, // Default Powerlevel10k integration setting
173173
terminalZdotdir: false, // Default ZDOTDIR handling setting
174174
terminalCompressProgressBar: true, // Default to compress progress bar output

0 commit comments

Comments
 (0)