From 400e901c9c51a99573af2223575ac3a3b45fe43f Mon Sep 17 00:00:00 2001 From: rahthakor Date: Thu, 15 Jan 2026 01:38:24 +0530 Subject: [PATCH] fix(mac): pass auth token to dashboard URL --- apps/macos/Sources/Clawdbot/MenuContentView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/macos/Sources/Clawdbot/MenuContentView.swift b/apps/macos/Sources/Clawdbot/MenuContentView.swift index 9846b5de6..7afd355f7 100644 --- a/apps/macos/Sources/Clawdbot/MenuContentView.swift +++ b/apps/macos/Sources/Clawdbot/MenuContentView.swift @@ -328,7 +328,11 @@ struct MenuContent: View { components.scheme = "http" } components.path = "/" - components.query = nil + if let token = config.token, !token.isEmpty { + components.queryItems = [URLQueryItem(name: "token", value: token)] + } else if let password = config.password, !password.isEmpty { + components.queryItems = [URLQueryItem(name: "password", value: password)] + } guard let url = components.url else { throw NSError(domain: "Dashboard", code: 2, userInfo: [ NSLocalizedDescriptionKey: "Failed to build dashboard URL",