From e855b9c8d926650590a97bd7ec0666ee33e65803 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 10 May 2026 10:13:29 +0800 Subject: [PATCH] fix(cli): skip proxy config for help --- src/cli/run-main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cli/run-main.ts b/src/cli/run-main.ts index 597ed745449..ab4e4eebc76 100644 --- a/src/cli/run-main.ts +++ b/src/cli/run-main.ts @@ -445,7 +445,7 @@ export async function runCli(argv: string[] = process.argv) { proxyHandle = null; handle?.kill("SIGTERM"); }; - if (shouldStartProxyForCli(normalizedArgv)) { + if (!isHelpOrVersionInvocation && shouldStartProxyForCli(normalizedArgv)) { const config = await readBestEffortCliConfig(); const unownedPrimary = await resolveUnownedCliPrimary({ argv: normalizedArgv, config }); if (unownedPrimary) { @@ -545,7 +545,8 @@ export async function runCli(argv: string[] = process.argv) { return; } - const shouldUseCliEnvProxy = shouldStartProxyForCli(normalizedArgv); + const shouldUseCliEnvProxy = + !isHelpOrVersionInvocation && shouldStartProxyForCli(normalizedArgv); const bootstrapProxyBeforeFastPath = shouldUseCliEnvProxy && shouldBootstrapCliProxyBeforeFastPath(); if (