fix(overlay): dismiss on token mismatch; keep gateway log clear helper
parent
474cb48a14
commit
239f58b584
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue