From 951993db173ab7fd30078c88afeadc3752ecb604 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 14 Dec 2025 04:06:12 +0000 Subject: [PATCH] ui(macos): always enable deep links --- apps/macos/Sources/Clawdis/Constants.swift | 1 - apps/macos/Sources/Clawdis/DebugSettings.swift | 12 ++++-------- apps/macos/Sources/Clawdis/DeepLinks.swift | 6 ------ 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/apps/macos/Sources/Clawdis/Constants.swift b/apps/macos/Sources/Clawdis/Constants.swift index 5693808492..c6c987d25b 100644 --- a/apps/macos/Sources/Clawdis/Constants.swift +++ b/apps/macos/Sources/Clawdis/Constants.swift @@ -26,7 +26,6 @@ let webChatPortKey = "clawdis.webChatPort" let canvasEnabledKey = "clawdis.canvasEnabled" let cameraEnabledKey = "clawdis.cameraEnabled" let peekabooBridgeEnabledKey = "clawdis.peekabooBridgeEnabled" -let deepLinkAgentEnabledKey = "clawdis.deepLinkAgentEnabled" let deepLinkKeyKey = "clawdis.deepLinkKey" let modelCatalogPathKey = "clawdis.modelCatalogPath" let modelCatalogReloadKey = "clawdis.modelCatalogReload" diff --git a/apps/macos/Sources/Clawdis/DebugSettings.swift b/apps/macos/Sources/Clawdis/DebugSettings.swift index 050850c38e..d1e653aa07 100644 --- a/apps/macos/Sources/Clawdis/DebugSettings.swift +++ b/apps/macos/Sources/Clawdis/DebugSettings.swift @@ -8,7 +8,6 @@ struct DebugSettings: View { @AppStorage(modelCatalogPathKey) private var modelCatalogPath: String = ModelCatalogLoader.defaultPath @AppStorage(modelCatalogReloadKey) private var modelCatalogReloadBump: Int = 0 @AppStorage(iconOverrideKey) private var iconOverrideRaw: String = IconOverrideSelection.system.rawValue - @AppStorage(deepLinkAgentEnabledKey) private var deepLinkAgentEnabled: Bool = false @State private var modelsCount: Int? @State private var modelsLoading = false @State private var modelsError: String? @@ -150,13 +149,6 @@ struct DebugSettings: View { "to an already-running gateway " + "and will not start one itself.") } - GridRow { - self.gridLabel("Deep links") - Toggle("", isOn: self.$deepLinkAgentEnabled) - .labelsHidden() - .toggleStyle(.checkbox) - .help("Enables handling of clawdis://agent?... deep links to trigger an agent run.") - } } let key = DeepLinkHandler.currentKey() @@ -186,6 +178,10 @@ struct DebugSettings: View { Spacer(minLength: 0) } + Text("Deep links (clawdis://…) are always enabled; the key controls unattended runs.") + .font(.caption2) + .foregroundStyle(.secondary) + VStack(alignment: .leading, spacing: 6) { Text("Stdout / stderr") .font(.caption.weight(.semibold)) diff --git a/apps/macos/Sources/Clawdis/DeepLinks.swift b/apps/macos/Sources/Clawdis/DeepLinks.swift index 71b3b27f40..9bbc934ec6 100644 --- a/apps/macos/Sources/Clawdis/DeepLinks.swift +++ b/apps/macos/Sources/Clawdis/DeepLinks.swift @@ -17,12 +17,6 @@ final class DeepLinkHandler { deepLinkLogger.debug("ignored url \(url.absoluteString, privacy: .public)") return } - guard UserDefaults.standard.bool(forKey: deepLinkAgentEnabledKey) else { - self.presentAlert( - title: "Deep links are disabled", - message: "Enable “Allow URL scheme (agent)” in Clawdis Debug Settings to accept clawdis:// links.") - return - } guard !AppStateStore.shared.isPaused else { self.presentAlert(title: "Clawdis is paused", message: "Unpause Clawdis to run agent actions.") return