fix(ios): stabilize voice wake + bridge UI

This commit is contained in:
Peter Steinberger
2025-12-13 12:28:34 +00:00
parent 2b71ea21ad
commit 3863fe6412
9 changed files with 60 additions and 34 deletions

View File

@@ -0,0 +1,19 @@
import ClawdisKit
import Foundation
import Network
enum BridgeEndpointID {
static func stableID(_ endpoint: NWEndpoint) -> String {
switch endpoint {
case let .service(name, type, domain, _):
// Keep this stable across encode/decode differences; use raw service tuple.
"\(type)|\(domain)|\(name)"
default:
String(describing: endpoint)
}
}
static func prettyDescription(_ endpoint: NWEndpoint) -> String {
BonjourEscapes.decode(String(describing: endpoint))
}
}