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",