|
|
@@ -14,6 +14,7 @@ import {
|
|
|
Globe,
|
|
|
Info,
|
|
|
LucideIcon,
|
|
|
+ Monitor,
|
|
|
} from "lucide-react"
|
|
|
import { CaretSortIcon } from "@radix-ui/react-icons"
|
|
|
|
|
|
@@ -47,6 +48,7 @@ import ApiOptions from "./ApiOptions"
|
|
|
import { AutoApproveSettings } from "./AutoApproveSettings"
|
|
|
import { BrowserSettings } from "./BrowserSettings"
|
|
|
import { CheckpointSettings } from "./CheckpointSettings"
|
|
|
+import { InterfaceSettings } from "./InterfaceSettings"
|
|
|
import { NotificationSettings } from "./NotificationSettings"
|
|
|
import { ContextManagementSettings } from "./ContextManagementSettings"
|
|
|
import { TerminalSettings } from "./TerminalSettings"
|
|
|
@@ -65,6 +67,7 @@ const sectionNames = [
|
|
|
"autoApprove",
|
|
|
"browser",
|
|
|
"checkpoints",
|
|
|
+ "interface",
|
|
|
"notifications",
|
|
|
"contextManagement",
|
|
|
"terminal",
|
|
|
@@ -139,6 +142,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
showRooIgnoredFiles,
|
|
|
remoteBrowserEnabled,
|
|
|
maxReadFileLine,
|
|
|
+ showGreeting,
|
|
|
} = cachedState
|
|
|
|
|
|
// Make sure apiConfiguration is initialized and managed by SettingsView.
|
|
|
@@ -262,6 +266,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
vscode.postMessage({ type: "alwaysAllowSubtasks", bool: alwaysAllowSubtasks })
|
|
|
vscode.postMessage({ type: "upsertApiConfiguration", text: currentApiConfigName, apiConfiguration })
|
|
|
vscode.postMessage({ type: "telemetrySetting", text: telemetrySetting })
|
|
|
+ vscode.postMessage({ type: "showGreeting", bool: showGreeting })
|
|
|
setChangeDetected(false)
|
|
|
}
|
|
|
}
|
|
|
@@ -290,6 +295,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
const autoApproveRef = useRef<HTMLDivElement>(null)
|
|
|
const browserRef = useRef<HTMLDivElement>(null)
|
|
|
const checkpointsRef = useRef<HTMLDivElement>(null)
|
|
|
+ const interfaceRef = useRef<HTMLDivElement>(null)
|
|
|
const notificationsRef = useRef<HTMLDivElement>(null)
|
|
|
const contextManagementRef = useRef<HTMLDivElement>(null)
|
|
|
const terminalRef = useRef<HTMLDivElement>(null)
|
|
|
@@ -304,6 +310,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
{ id: "autoApprove", icon: CheckCheck, ref: autoApproveRef },
|
|
|
{ id: "browser", icon: SquareMousePointer, ref: browserRef },
|
|
|
{ id: "checkpoints", icon: GitBranch, ref: checkpointsRef },
|
|
|
+ { id: "interface", icon: Monitor, ref: interfaceRef },
|
|
|
{ id: "notifications", icon: Bell, ref: notificationsRef },
|
|
|
{ id: "contextManagement", icon: Database, ref: contextManagementRef },
|
|
|
{ id: "terminal", icon: SquareTerminal, ref: terminalRef },
|
|
|
@@ -317,6 +324,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
autoApproveRef,
|
|
|
browserRef,
|
|
|
checkpointsRef,
|
|
|
+ interfaceRef,
|
|
|
notificationsRef,
|
|
|
contextManagementRef,
|
|
|
terminalRef,
|
|
|
@@ -469,6 +477,10 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
+ <div ref={interfaceRef}>
|
|
|
+ <InterfaceSettings showGreeting={showGreeting} setCachedStateField={setCachedStateField} />
|
|
|
+ </div>
|
|
|
+
|
|
|
<div ref={notificationsRef}>
|
|
|
<NotificationSettings
|
|
|
ttsEnabled={ttsEnabled}
|