fix(overlay): dismiss on token mismatch; keep gateway log clear helper

This commit is contained in:
Peter Steinberger
2025-12-09 19:50:05 +01:00
parent 474cb48a14
commit 239f58b584
2 changed files with 2 additions and 4 deletions

View File

@@ -231,8 +231,4 @@ final class GatewayProcessManager: ObservableObject {
func projectRootPath() -> String { func projectRootPath() -> String {
CommandResolver.projectRootPath() CommandResolver.projectRootPath()
} }
func clearLog() {
self.log = ""
}
} }

View File

@@ -271,6 +271,8 @@ final class VoiceWakeOverlayController: ObservableObject {
active=\(active.uuidString, privacy: .public) \ active=\(active.uuidString, privacy: .public) \
got=\(token.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 false
} }
return true return true