From a56daa6c062f3c00c01fef089919eff49a0ef2cd Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 13 Dec 2025 01:17:46 +0000 Subject: [PATCH] feat(macos): add Allow Canvas toggle to settings --- apps/macos/Sources/Clawdis/GeneralSettings.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/macos/Sources/Clawdis/GeneralSettings.swift b/apps/macos/Sources/Clawdis/GeneralSettings.swift index 6a95db99a..e6ff0ce29 100644 --- a/apps/macos/Sources/Clawdis/GeneralSettings.swift +++ b/apps/macos/Sources/Clawdis/GeneralSettings.swift @@ -51,6 +51,11 @@ struct GeneralSettings: View { subtitle: "Enable idle blinks and wiggles on the status icon.", binding: self.$state.iconAnimationsEnabled) + SettingsToggleRow( + title: "Allow Canvas", + subtitle: "Allow the agent to show and control the Canvas panel.", + binding: self.$state.canvasEnabled) + SettingsToggleRow( title: "Enable debug tools", subtitle: "Show the Debug tab with development utilities.", @@ -73,6 +78,11 @@ struct GeneralSettings: View { self.refreshCLIStatus() self.refreshGatewayStatus() } + .onChange(of: self.state.canvasEnabled) { _, enabled in + if !enabled { + CanvasManager.shared.hideAll() + } + } } private var activeBinding: Binding {