fix: add missing terminal settings to type definitions

- Add terminalOutputLineLimit, terminalOutputCharacterLimit to GlobalSettings schema
- Add terminalCompressProgressBar to GlobalSettings schema
- Keep terminalOutputPreviewSize for backward compatibility with OutputInterceptor
- Add new terminal settings to ExtensionState type
- Add terminalOutputLineLimit/CharacterLimit to ClineProvider getState destructuring
This commit is contained in:
Hannes Rudolph 2026-01-28 17:42:19 -07:00
parent d7852a023c
commit d2befe4e08
3 changed files with 8 additions and 0 deletions

View file

@ -176,6 +176,8 @@ export const globalSettingsSchema = z.object({
maxImageFileSize: z.number().optional(),
maxTotalImageSize: z.number().optional(),
terminalOutputLineLimit: z.number().optional(),
terminalOutputCharacterLimit: z.number().optional(),
terminalOutputPreviewSize: z.enum(["small", "medium", "large"]).optional(),
terminalShellIntegrationTimeout: z.number().optional(),
terminalShellIntegrationDisabled: z.boolean().optional(),
@ -185,6 +187,7 @@ export const globalSettingsSchema = z.object({
terminalZshOhMy: z.boolean().optional(),
terminalZshP10k: z.boolean().optional(),
terminalZdotdir: z.boolean().optional(),
terminalCompressProgressBar: z.boolean().optional(),
diagnosticsEnabled: z.boolean().optional(),

View file

@ -302,6 +302,8 @@ export type ExtensionState = Pick<
| "soundEnabled"
| "soundVolume"
| "maxConcurrentFileReads"
| "terminalOutputLineLimit"
| "terminalOutputCharacterLimit"
| "terminalOutputPreviewSize"
| "terminalShellIntegrationTimeout"
| "terminalShellIntegrationDisabled"
@ -311,6 +313,7 @@ export type ExtensionState = Pick<
| "terminalZshOhMy"
| "terminalZshP10k"
| "terminalZdotdir"
| "terminalCompressProgressBar"
| "diagnosticsEnabled"
| "language"
| "modeApiConfigs"

View file

@ -2017,6 +2017,8 @@ export class ClineProvider
remoteBrowserEnabled,
cachedChromeHostUrl,
writeDelayMs,
terminalOutputLineLimit,
terminalOutputCharacterLimit,
terminalShellIntegrationTimeout,
terminalShellIntegrationDisabled,
terminalCommandDelay,