From 239f58b584f76b7a2ad582be0d784e938f49a033 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 9 Dec 2025 19:50:05 +0100 Subject: [PATCH] fix(overlay): dismiss on token mismatch; keep gateway log clear helper --- apps/macos/Sources/Clawdis/GatewayProcessManager.swift | 4 ---- apps/macos/Sources/Clawdis/VoiceWakeOverlay.swift | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/macos/Sources/Clawdis/GatewayProcessManager.swift b/apps/macos/Sources/Clawdis/GatewayProcessManager.swift index 2196f0aed..3bef40228 100644 --- a/apps/macos/Sources/Clawdis/GatewayProcessManager.swift +++ b/apps/macos/Sources/Clawdis/GatewayProcessManager.swift @@ -231,8 +231,4 @@ final class GatewayProcessManager: ObservableObject { func projectRootPath() -> String { CommandResolver.projectRootPath() } - - func clearLog() { - self.log = "" - } } diff --git a/apps/macos/Sources/Clawdis/VoiceWakeOverlay.swift b/apps/macos/Sources/Clawdis/VoiceWakeOverlay.swift index aa1051579..7f0f9d385 100644 --- a/apps/macos/Sources/Clawdis/VoiceWakeOverlay.swift +++ b/apps/macos/Sources/Clawdis/VoiceWakeOverlay.swift @@ -271,6 +271,8 @@ final class VoiceWakeOverlayController: ObservableObject { active=\(active.uuidString, privacy: .public) \ got=\(token.uuidString, privacy: .public) """) + // If tokens diverge, clear the stale overlay so the UI can resync. + self.dismiss(reason: .explicit, outcome: .empty) return false } return true