Skip to content

Commit 8c48cb8

Browse files
committed
feat(settings): add new options for diff view auto focus and tab management
1 parent e290d49 commit 8c48cb8

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

evals/packages/types/src/roo-code-defaults.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export const rooCodeDefaults: RooCodeSettings = {
4545
terminalShellIntegrationDisabled: false,
4646

4747
diffEnabled: true,
48+
diffViewAutoFocus: false,
49+
autoCloseRooTabs: true,
50+
autoCloseAllRooTabs: true,
4851
fuzzyMatchThreshold: 1,
4952

5053
enableCheckpoints: false,

evals/packages/types/src/roo-code.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from "zod"
1+
import { undefined, z } from "zod"
22

33
import { Equals, Keys, AssertEqual } from "./utils.js"
44

@@ -336,6 +336,9 @@ export type ProviderSettingsEntry = z.infer<typeof providerSettingsEntrySchema>
336336
const genericProviderSettingsSchema = z.object({
337337
includeMaxTokens: z.boolean().optional(),
338338
diffEnabled: z.boolean().optional(),
339+
diffViewAutoFocus: z.boolean().optional(),
340+
autoCloseRooTabs: z.boolean().optional(),
341+
autoCloseAllRooTabs: z.boolean().optional(),
339342
fuzzyMatchThreshold: z.number().optional(),
340343
modelTemperature: z.number().nullish(),
341344
rateLimitSeconds: z.number().optional(),
@@ -701,6 +704,9 @@ const providerSettingsRecord: ProviderSettingsRecord = {
701704
includeMaxTokens: undefined,
702705
reasoningEffort: undefined,
703706
diffEnabled: undefined,
707+
diffViewAutoFocus: undefined,
708+
autoCloseRooTabs: undefined,
709+
autoCloseAllRooTabs: undefined,
704710
fuzzyMatchThreshold: undefined,
705711
modelTemperature: undefined,
706712
rateLimitSeconds: undefined,
@@ -780,6 +786,9 @@ export const globalSettingsSchema = z.object({
780786

781787
rateLimitSeconds: z.number().optional(),
782788
diffEnabled: z.boolean().optional(),
789+
diffViewAutoFocus: z.boolean().optional(),
790+
autoCloseRooTabs: z.boolean().optional(),
791+
autoCloseAllRooTabs: z.boolean().optional(),
783792
fuzzyMatchThreshold: z.number().optional(),
784793
experiments: experimentsSchema.optional(),
785794

@@ -858,6 +867,9 @@ const globalSettingsRecord: GlobalSettingsRecord = {
858867

859868
rateLimitSeconds: undefined,
860869
diffEnabled: undefined,
870+
diffViewAutoFocus: undefined,
871+
autoCloseRooTabs: undefined,
872+
autoCloseAllRooTabs: undefined,
861873
fuzzyMatchThreshold: undefined,
862874
experiments: undefined,
863875

0 commit comments

Comments
 (0)