|
|
@@ -24,6 +24,7 @@ import {
|
|
|
MessageSquare,
|
|
|
LucideIcon,
|
|
|
SquareSlash,
|
|
|
+ Glasses,
|
|
|
} from "lucide-react"
|
|
|
|
|
|
import type { ProviderSettings, ExperimentId, TelemetrySetting } from "@roo-code/types"
|
|
|
@@ -66,6 +67,7 @@ import { About } from "./About"
|
|
|
import { Section } from "./Section"
|
|
|
import PromptsSettings from "./PromptsSettings"
|
|
|
import { SlashCommandsSettings } from "./SlashCommandsSettings"
|
|
|
+import { UISettings } from "./UISettings"
|
|
|
|
|
|
export const settingsTabsContainer = "flex flex-1 overflow-hidden [&.narrow_.tab-label]:hidden"
|
|
|
export const settingsTabList =
|
|
|
@@ -88,6 +90,7 @@ const sectionNames = [
|
|
|
"contextManagement",
|
|
|
"terminal",
|
|
|
"prompts",
|
|
|
+ "ui",
|
|
|
"experimental",
|
|
|
"language",
|
|
|
"about",
|
|
|
@@ -191,6 +194,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
includeTaskHistoryInEnhance,
|
|
|
openRouterImageApiKey,
|
|
|
openRouterImageGenerationSelectedModel,
|
|
|
+ reasoningBlockCollapsed,
|
|
|
} = cachedState
|
|
|
|
|
|
const apiConfiguration = useMemo(() => cachedState.apiConfiguration ?? {}, [cachedState.apiConfiguration])
|
|
|
@@ -364,6 +368,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
vscode.postMessage({ type: "updateCondensingPrompt", text: customCondensingPrompt || "" })
|
|
|
vscode.postMessage({ type: "updateSupportPrompt", values: customSupportPrompts || {} })
|
|
|
vscode.postMessage({ type: "includeTaskHistoryInEnhance", bool: includeTaskHistoryInEnhance ?? true })
|
|
|
+ vscode.postMessage({ type: "setReasoningBlockCollapsed", bool: reasoningBlockCollapsed ?? true })
|
|
|
vscode.postMessage({ type: "upsertApiConfiguration", text: currentApiConfigName, apiConfiguration })
|
|
|
vscode.postMessage({ type: "telemetrySetting", text: telemetrySetting })
|
|
|
vscode.postMessage({ type: "profileThresholds", values: profileThresholds })
|
|
|
@@ -458,6 +463,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
{ id: "contextManagement", icon: Database },
|
|
|
{ id: "terminal", icon: SquareTerminal },
|
|
|
{ id: "prompts", icon: MessageSquare },
|
|
|
+ { id: "ui", icon: Glasses },
|
|
|
{ id: "experimental", icon: FlaskConical },
|
|
|
{ id: "language", icon: Globe },
|
|
|
{ id: "about", icon: Info },
|
|
|
@@ -757,6 +763,14 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
/>
|
|
|
)}
|
|
|
|
|
|
+ {/* UI Section */}
|
|
|
+ {activeTab === "ui" && (
|
|
|
+ <UISettings
|
|
|
+ reasoningBlockCollapsed={reasoningBlockCollapsed ?? true}
|
|
|
+ setCachedStateField={setCachedStateField}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+
|
|
|
{/* Experimental Section */}
|
|
|
{activeTab === "experimental" && (
|
|
|
<ExperimentalSettings
|