Skip to content

Commit 85a7f5f

Browse files
authored
feat: increase max read character limit to 30,000 (#475)
1 parent 41cc0e5 commit 85a7f5f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/types/src/global-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const DEFAULT_WRITE_DELAY_MS = 1000
2828
* while preventing context window explosions from extremely long lines.
2929
*/
3030
export const DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT = 50_000
31-
export const DEFAULT_FILE_READ_CHARACTER_LIMIT = 20_000
31+
export const DEFAULT_FILE_READ_CHARACTER_LIMIT = 30_000
3232

3333
/**
3434
* GlobalSettings

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ export const ContextManagementSettings = ({
187187
<div className="flex items-center gap-2">
188188
<Slider
189189
min={2000}
190-
max={50000}
190+
max={100000}
191191
step={100}
192-
value={[maxReadCharacterLimit ?? 20000]}
192+
value={[maxReadCharacterLimit ?? 30000]}
193193
onValueChange={([value]) => setCachedStateField("maxReadCharacterLimit", value)}
194194
data-testid="terminal-output-character-limit-slider"
195195
/>
196-
<span className="w-16">{maxReadCharacterLimit ?? 20000}</span>
196+
<span className="w-16">{maxReadCharacterLimit ?? 30000}</span>
197197
</div>
198198
<div className="text-vscode-descriptionForeground text-sm mt-1">
199199
{t("settings:contextManagement.maxReadCharacter.description")}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
338338
vscode.postMessage({ type: "screenshotQuality", value: screenshotQuality ?? 75 })
339339
vscode.postMessage({ type: "terminalOutputLineLimit", value: terminalOutputLineLimit ?? 500 })
340340
vscode.postMessage({ type: "terminalOutputCharacterLimit", value: terminalOutputCharacterLimit ?? 50000 })
341-
vscode.postMessage({ type: "maxReadCharacterLimit", value: maxReadCharacterLimit ?? 20000 })
341+
vscode.postMessage({ type: "maxReadCharacterLimit", value: maxReadCharacterLimit ?? 30000 })
342342
vscode.postMessage({ type: "terminalShellIntegrationTimeout", value: terminalShellIntegrationTimeout })
343343
vscode.postMessage({ type: "terminalShellIntegrationDisabled", bool: terminalShellIntegrationDisabled })
344344
vscode.postMessage({ type: "terminalCommandDelay", value: terminalCommandDelay })

webview-ui/src/context/ExtensionStateContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
213213
screenshotQuality: 75,
214214
terminalOutputLineLimit: 500,
215215
terminalOutputCharacterLimit: 50000,
216-
maxReadCharacterLimit: 20000,
216+
maxReadCharacterLimit: 30000,
217217
terminalShellIntegrationTimeout: 4000,
218218
mcpEnabled: true,
219219
enableMcpServerCreation: false,

0 commit comments

Comments
 (0)