@@ -24,6 +24,7 @@ import {
2424 MessageSquare ,
2525 LucideIcon ,
2626 SquareSlash ,
27+ Glasses ,
2728} from "lucide-react"
2829
2930import type { ProviderSettings , ExperimentId , TelemetrySetting } from "@roo-code/types"
@@ -66,6 +67,7 @@ import { About } from "./About"
6667import { Section } from "./Section"
6768import PromptsSettings from "./PromptsSettings"
6869import { SlashCommandsSettings } from "./SlashCommandsSettings"
70+ import { UISettings } from "./UISettings"
6971
7072export const settingsTabsContainer = "flex flex-1 overflow-hidden [&.narrow_.tab-label]:hidden"
7173export const settingsTabList =
@@ -88,6 +90,7 @@ const sectionNames = [
8890 "contextManagement" ,
8991 "terminal" ,
9092 "prompts" ,
93+ "ui" ,
9194 "experimental" ,
9295 "language" ,
9396 "about" ,
@@ -191,6 +194,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
191194 includeTaskHistoryInEnhance,
192195 openRouterImageApiKey,
193196 openRouterImageGenerationSelectedModel,
197+ reasoningBlockCollapsed,
194198 } = cachedState
195199
196200 const apiConfiguration = useMemo ( ( ) => cachedState . apiConfiguration ?? { } , [ cachedState . apiConfiguration ] )
@@ -364,6 +368,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
364368 vscode . postMessage ( { type : "updateCondensingPrompt" , text : customCondensingPrompt || "" } )
365369 vscode . postMessage ( { type : "updateSupportPrompt" , values : customSupportPrompts || { } } )
366370 vscode . postMessage ( { type : "includeTaskHistoryInEnhance" , bool : includeTaskHistoryInEnhance ?? true } )
371+ vscode . postMessage ( { type : "setReasoningBlockCollapsed" , bool : reasoningBlockCollapsed ?? true } )
367372 vscode . postMessage ( { type : "upsertApiConfiguration" , text : currentApiConfigName , apiConfiguration } )
368373 vscode . postMessage ( { type : "telemetrySetting" , text : telemetrySetting } )
369374 vscode . postMessage ( { type : "profileThresholds" , values : profileThresholds } )
@@ -458,6 +463,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
458463 { id : "contextManagement" , icon : Database } ,
459464 { id : "terminal" , icon : SquareTerminal } ,
460465 { id : "prompts" , icon : MessageSquare } ,
466+ { id : "ui" , icon : Glasses } ,
461467 { id : "experimental" , icon : FlaskConical } ,
462468 { id : "language" , icon : Globe } ,
463469 { id : "about" , icon : Info } ,
@@ -757,6 +763,14 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
757763 />
758764 ) }
759765
766+ { /* UI Section */ }
767+ { activeTab === "ui" && (
768+ < UISettings
769+ reasoningBlockCollapsed = { reasoningBlockCollapsed ?? true }
770+ setCachedStateField = { setCachedStateField }
771+ />
772+ ) }
773+
760774 { /* Experimental Section */ }
761775 { activeTab === "experimental" && (
762776 < ExperimentalSettings
0 commit comments