From 938ffd7a1f6018f5ca4661a993dbe37cd4304c45 Mon Sep 17 00:00:00 2001 From: ted Date: Sun, 15 Mar 2026 11:04:56 -0700 Subject: [PATCH] CLI: inline simple gateway probe caps --- src/commands/gateway-status/helpers.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/commands/gateway-status/helpers.ts b/src/commands/gateway-status/helpers.ts index 761c556d4aa..5fc7caaa264 100644 --- a/src/commands/gateway-status/helpers.ts +++ b/src/commands/gateway-status/helpers.ts @@ -14,8 +14,6 @@ const MISSING_SCOPE_PATTERN = /\bmissing scope:\s*[a-z0-9._-]+/i; type TargetKind = "explicit" | "configRemote" | "localLoopback" | "sshTunnel"; const INACTIVE_LOOPBACK_PROBE_BUDGET_MS = 800; -const REMOTE_PROBE_BUDGET_MS = 1_500; -const SSH_TUNNEL_PROBE_BUDGET_MS = 2_000; export type GatewayStatusTarget = { id: string; @@ -131,9 +129,9 @@ export function resolveProbeBudgetMs( // remote-mode status checks do not stall on an expected local miss. return target.active ? overallMs : Math.min(INACTIVE_LOOPBACK_PROBE_BUDGET_MS, overallMs); case "sshTunnel": - return Math.min(SSH_TUNNEL_PROBE_BUDGET_MS, overallMs); + return Math.min(2_000, overallMs); default: - return Math.min(REMOTE_PROBE_BUDGET_MS, overallMs); + return Math.min(1_500, overallMs); } }