fix(overlay): dismiss on token mismatch; keep gateway log clear helper
This commit is contained in:
@@ -231,8 +231,4 @@ final class GatewayProcessManager: ObservableObject {
|
||||
func projectRootPath() -> String {
|
||||
CommandResolver.projectRootPath()
|
||||
}
|
||||
|
||||
func clearLog() {
|
||||
self.log = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user