From 0bf9a87293f9bef0bab184bc6000428b2d6f336f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 9 Dec 2025 19:13:46 +0000 Subject: [PATCH] chore(mac): dedupe local gateway label --- apps/macos/Sources/Clawdis/GatewayEnvironment.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/macos/Sources/Clawdis/GatewayEnvironment.swift b/apps/macos/Sources/Clawdis/GatewayEnvironment.swift index 3c6917161..4d6ff1fce 100644 --- a/apps/macos/Sources/Clawdis/GatewayEnvironment.swift +++ b/apps/macos/Sources/Clawdis/GatewayEnvironment.swift @@ -110,15 +110,19 @@ enum GatewayEnvironment { let gatewayLabel = gatewayBin != nil ? "global" : "local" let gatewayVersionText = installed?.description ?? "unknown" + // Avoid repeating "(local)" twice; if using the local entrypoint, show the path once. let localPathHint = gatewayBin == nil && projectEntrypoint != nil ? " (local: \(projectEntrypoint ?? "unknown"))" : "" + let gatewayLabelText = gatewayBin != nil + ? "(\(gatewayLabel))" + : localPathHint.isEmpty ? "(\(gatewayLabel))" : localPathHint return GatewayEnvironmentStatus( kind: .ok, nodeVersion: runtime.version.description, gatewayVersion: gatewayVersionText, requiredGateway: expected?.description, - message: "Node \(runtime.version.description); gateway \(gatewayVersionText) (\(gatewayLabel))\(localPathHint)") + message: "Node \(runtime.version.description); gateway \(gatewayVersionText) \(gatewayLabelText)") } }