mac: add browser webchat debug entry

This commit is contained in:
Peter Steinberger
2025-12-10 01:33:15 +01:00
parent 7871e705bf
commit 08f8f58971
3 changed files with 43 additions and 0 deletions

View File

@@ -240,6 +240,12 @@ enum DebugActions {
typealias PortListener = PortGuardian.ReportListener
typealias PortReport = PortGuardian.PortReport
@MainActor
static func openChatInBrowser() async {
let session = WebChatManager.shared.preferredSessionKey()
await WebChatManager.shared.openInBrowser(sessionKey: session)
}
static func checkGatewayPorts() async -> [PortReport] {
let mode = CommandResolver.connectionSettings().mode
return await PortGuardian.shared.diagnose(mode: mode)