惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
Last Week in AI
Last Week in AI
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
The Cloudflare Blog
罗磊的独立博客
月光博客
月光博客
N
Netflix TechBlog - Medium
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Jina AI
Jina AI
J
Java Code Geeks

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(configure): bound gateway hint probes · openclaw/open...
obviyus · 2026-04-22 · via Recent Commits to openclaw:main

@@ -52,6 +52,8 @@ import { setupSkills } from "./onboard-skills.js";

5252

type ConfigureSectionChoice = WizardSection | "__continue";

5353

type SetupPluginConfigModule = typeof import("../wizard/setup.plugin-config.js");

545455+

const GATEWAY_HINT_PROBE_TIMEOUT_MS = 300;

56+5557

let setupPluginConfigModulePromise: Promise<SetupPluginConfigModule> | undefined;

56585759

function loadSetupPluginConfigModule(): Promise<SetupPluginConfigModule> {

@@ -386,33 +388,42 @@ export async function runConfigureWizard(

386388

}

387389388390

const localUrl = "ws://127.0.0.1:18789";

389-

const baseLocalProbeToken = await resolveGatewaySecretInputForWizard({

390-

cfg: baseConfig,

391-

value: baseConfig.gateway?.auth?.token,

392-

path: "gateway.auth.token",

393-

});

394-

const baseLocalProbePassword = await resolveGatewaySecretInputForWizard({

395-

cfg: baseConfig,

396-

value: baseConfig.gateway?.auth?.password,

397-

path: "gateway.auth.password",

398-

});

399-

const localProbe = await probeGatewayReachable({

400-

url: localUrl,

401-

token: process.env.OPENCLAW_GATEWAY_TOKEN ?? baseLocalProbeToken,

402-

password: process.env.OPENCLAW_GATEWAY_PASSWORD ?? baseLocalProbePassword,

403-

});

404391

const remoteUrl = normalizeOptionalString(baseConfig.gateway?.remote?.url) ?? "";

405-

const baseRemoteProbeToken = await resolveGatewaySecretInputForWizard({

406-

cfg: baseConfig,

407-

value: baseConfig.gateway?.remote?.token,

408-

path: "gateway.remote.token",

409-

});

410-

const remoteProbe = remoteUrl

411-

? await probeGatewayReachable({

412-

url: remoteUrl,

413-

token: baseRemoteProbeToken,

414-

})

415-

: null;

392+

const localProbePromise = (async () => {

393+

const [baseLocalProbeToken, baseLocalProbePassword] = await Promise.all([

394+

resolveGatewaySecretInputForWizard({

395+

cfg: baseConfig,

396+

value: baseConfig.gateway?.auth?.token,

397+

path: "gateway.auth.token",

398+

}),

399+

resolveGatewaySecretInputForWizard({

400+

cfg: baseConfig,

401+

value: baseConfig.gateway?.auth?.password,

402+

path: "gateway.auth.password",

403+

}),

404+

]);

405+

return probeGatewayReachable({

406+

url: localUrl,

407+

token: process.env.OPENCLAW_GATEWAY_TOKEN ?? baseLocalProbeToken,

408+

password: process.env.OPENCLAW_GATEWAY_PASSWORD ?? baseLocalProbePassword,

409+

timeoutMs: GATEWAY_HINT_PROBE_TIMEOUT_MS,

410+

});

411+

})();

412+

const remoteProbePromise = remoteUrl

413+

? (async () => {

414+

const baseRemoteProbeToken = await resolveGatewaySecretInputForWizard({

415+

cfg: baseConfig,

416+

value: baseConfig.gateway?.remote?.token,

417+

path: "gateway.remote.token",

418+

});

419+

return probeGatewayReachable({

420+

url: remoteUrl,

421+

token: baseRemoteProbeToken,

422+

timeoutMs: GATEWAY_HINT_PROBE_TIMEOUT_MS,

423+

});

424+

})()

425+

: Promise.resolve(null);

426+

const [localProbe, remoteProbe] = await Promise.all([localProbePromise, remoteProbePromise]);

416427417428

const mode = guardCancel(

418429

await select({