From 4b278cfc23257f5289488641917fbe83c748beae Mon Sep 17 00:00:00 2001 From: Roo Code Date: Tue, 22 Jul 2025 17:48:18 +0000 Subject: [PATCH] fix: add missing largeFileLineThreshold property to webview-ui components --- webview-ui/src/context/ExtensionStateContext.tsx | 1 + webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/webview-ui/src/context/ExtensionStateContext.tsx b/webview-ui/src/context/ExtensionStateContext.tsx index c970733fba..4ccaa603d0 100644 --- a/webview-ui/src/context/ExtensionStateContext.tsx +++ b/webview-ui/src/context/ExtensionStateContext.tsx @@ -204,6 +204,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode showRooIgnoredFiles: true, // Default to showing .rooignore'd files with lock symbol (current behavior). renderContext: "sidebar", maxReadFileLine: -1, // Default max read file line limit + largeFileLineThreshold: 5000, // Default large file line threshold pinnedApiConfigs: {}, // Empty object for pinned API configs terminalZshOhMy: false, // Default Oh My Zsh integration setting maxConcurrentFileReads: 5, // Default concurrent file reads diff --git a/webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx b/webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx index 1e5867d3fc..2bd81ce34d 100644 --- a/webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx +++ b/webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx @@ -201,6 +201,7 @@ describe("mergeExtensionState", () => { showRooIgnoredFiles: true, renderContext: "sidebar", maxReadFileLine: 500, + largeFileLineThreshold: 5000, cloudUserInfo: null, organizationAllowList: { allowAll: true, providers: {} }, autoCondenseContext: true,