fix: add maxTasksHomeScreen to type definitions

This commit is contained in:
Roo Code 2025-11-13 15:08:10 +00:00
parent bd7b31713c
commit 47e3b606f2
3 changed files with 2 additions and 3 deletions

View file

@ -180,6 +180,7 @@ export const globalSettingsSchema = z.object({
includeTaskHistoryInEnhance: z.boolean().optional(),
historyPreviewCollapsed: z.boolean().optional(),
reasoningBlockCollapsed: z.boolean().optional(),
maxTasksHomeScreen: z.number().int().min(0).max(20).optional(),
profileThresholds: z.record(z.string(), z.number()).optional(),
hasOpenedModeSelector: z.boolean().optional(),
lastModeExportPath: z.string().optional(),

View file

@ -280,6 +280,7 @@ export type ExtensionState = Pick<
| "openRouterImageGenerationSelectedModel"
| "includeTaskHistoryInEnhance"
| "reasoningBlockCollapsed"
| "maxTasksHomeScreen"
| "includeCurrentTime"
| "includeCurrentCost"
> & {

View file

@ -75,10 +75,7 @@ export const UISettings = ({
</label>
<VSCodeTextField
id="max-tasks-home-screen"
type="number"
value={maxTasksHomeScreen.toString()}
min="0"
max="20"
onChange={(e: any) => handleMaxTasksHomeScreenChange(e.target.value)}
data-testid="max-tasks-home-screen-input"
className="w-32"