Keep installed models, chat selection, and web enablement in sync

This commit is contained in:
Mark Gregory
2026-11-17 09:40:46 +00:00
parent 1d5edbc292
commit 4ad93b383b
5 changed files with 52 additions and 22 deletions
+5 -5
View File
@@ -223,6 +223,7 @@ struct MCPSettings: View {
@AppStorage("mcpTransport") private var transport = "http"
@AppStorage("mcpExecutable") private var executable = ""
@AppStorage("mcpArguments") private var launchArguments = ""
@AppStorage("builtInWebEnabled") private var builtInWebEnabled = true
@AppStorage("webSearchEndpoint") private var webSearchEndpoint = ""
@AppStorage("mcpConfigPath") private var configPath = ""
@State private var token = ""
@@ -243,11 +244,10 @@ struct MCPSettings: View {
HSplitView {
Form {
Section("Built-In Tools") {
LabeledContent {
Text("Runs on demand").foregroundStyle(.secondary)
} label: {
Label(BuiltInWebTools.name, systemImage: "globe")
}
Toggle("Web Search and Page Retrieval", isOn: $builtInWebEnabled)
.onChange(of: builtInWebEnabled) { _, _ in studio.restoreToolsets() }
Text(builtInWebEnabled ? "Ready for web requests in chat." : "Automatic web lookup is off.")
.font(.caption).foregroundStyle(.secondary)
}
Section("Custom MCP Servers") {
Menu("Manage Servers", systemImage: "ellipsis.circle") {