mac: route remote mode through SSH

This commit is contained in:
Peter Steinberger
2025-12-10 01:43:59 +01:00
parent 5bbc7c8ba2
commit 27f9cd591d
5 changed files with 120 additions and 16 deletions

View File

@@ -514,6 +514,18 @@ final class WebChatManager {
return "+1003"
}
@MainActor
func resetTunnels() {
self.browserTunnel?.terminate()
self.browserTunnel = nil
self.windowController?.shutdown()
self.windowController?.close()
self.windowController = nil
self.panelController?.shutdown()
self.panelController?.close()
self.panelController = nil
}
@MainActor
func openInBrowser(sessionKey: String) async {
let port = AppStateStore.webChatPort