mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 17:54:47 +00:00
fix(cli): skip proxy config for help
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user