mac: add attach-only gateway toggle

This commit is contained in:
Peter Steinberger
2025-12-10 11:31:16 +00:00
parent c4b02645f5
commit cce65e19e1
5 changed files with 31 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ struct DebugSettings: View {
@State private var portKillStatus: String?
@State private var pendingKill: DebugActions.PortListener?
@AppStorage(webChatSwiftUIEnabledKey) private var webChatSwiftUIEnabled: Bool = false
@AppStorage(attachExistingGatewayOnlyKey) private var attachExistingGatewayOnly: Bool = false
var body: some View {
ScrollView(.vertical) {
@@ -57,6 +58,9 @@ struct DebugSettings: View {
.foregroundStyle(.secondary)
}
}
Toggle("Only attach to existing gateway (dont spawn locally)", isOn: self.$attachExistingGatewayOnly)
.toggleStyle(.switch)
.help("When enabled in local mode, the mac app will only connect to an already-running gateway and will not start one itself.")
VStack(alignment: .leading, spacing: 4) {
Text("Gateway stdout/stderr")
.font(.caption.weight(.semibold))