From 30d3e1da21aab6d36eca873743864b71a093eaf5 Mon Sep 17 00:00:00 2001 From: Wes Date: Thu, 15 Jan 2026 14:25:42 -0800 Subject: [PATCH] CLI: fix status --all gateway auth selection --- src/commands/status-all.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/status-all.ts b/src/commands/status-all.ts index 0cbee54db..926f0d7dd 100644 --- a/src/commands/status-all.ts +++ b/src/commands/status-all.ts @@ -118,10 +118,11 @@ export async function statusAllCommand( const localFallbackAuth = resolveProbeAuth("local"); const remoteAuth = resolveProbeAuth("remote"); + const probeAuth = isRemoteMode && !remoteUrlMissing ? remoteAuth : localFallbackAuth; const gatewayProbe = await probeGateway({ url: connection.url, - auth: remoteUrlMissing ? localFallbackAuth : remoteAuth, + auth: probeAuth, timeoutMs: Math.min(5000, opts?.timeoutMs ?? 10_000), }).catch(() => null); const gatewayReachable = gatewayProbe?.ok === true; @@ -289,7 +290,7 @@ export async function statusAllCommand( ? `unreachable (${gatewayProbe.error})` : "unreachable"; const gatewayAuth = gatewayReachable - ? ` · auth ${formatGatewayAuthUsed(remoteUrlMissing ? localFallbackAuth : remoteAuth)}` + ? ` · auth ${formatGatewayAuthUsed(probeAuth)}` : ""; const gatewaySelfLine = gatewaySelf?.host || gatewaySelf?.ip || gatewaySelf?.version || gatewaySelf?.platform