fix(cli): skip proxy config for help · openclaw/openclaw@e855b9c
vincentkoc
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -445,7 +445,7 @@ export async function runCli(argv: string[] = process.argv) {
|
445 | 445 | proxyHandle = null; |
446 | 446 | handle?.kill("SIGTERM"); |
447 | 447 | }; |
448 | | -if (shouldStartProxyForCli(normalizedArgv)) { |
| 448 | +if (!isHelpOrVersionInvocation && shouldStartProxyForCli(normalizedArgv)) { |
449 | 449 | const config = await readBestEffortCliConfig(); |
450 | 450 | const unownedPrimary = await resolveUnownedCliPrimary({ argv: normalizedArgv, config }); |
451 | 451 | if (unownedPrimary) { |
@@ -545,7 +545,8 @@ export async function runCli(argv: string[] = process.argv) {
|
545 | 545 | return; |
546 | 546 | } |
547 | 547 | |
548 | | -const shouldUseCliEnvProxy = shouldStartProxyForCli(normalizedArgv); |
| 548 | +const shouldUseCliEnvProxy = |
| 549 | +!isHelpOrVersionInvocation && shouldStartProxyForCli(normalizedArgv); |
549 | 550 | const bootstrapProxyBeforeFastPath = |
550 | 551 | shouldUseCliEnvProxy && shouldBootstrapCliProxyBeforeFastPath(); |
551 | 552 | if ( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。