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

推荐订阅源

Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
罗磊的独立博客
雷峰网
雷峰网
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
爱范儿
爱范儿
B
Blog RSS Feed
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
D
Docker
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
小众软件
小众软件
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
S
SegmentFault 最新的问题

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
ci: tolerate gateway status help probe hangs · openclaw/o...
steipete · 2026-05-27 · via Recent Commits to openclaw:main

@@ -2022,15 +2022,7 @@ async function startManualGatewayFromInstalledCli(params) {

20222022

const gatewayLog = createWriteStream(params.logPath, { flags: "a" });

20232023

const invocation = resolveInstalledCliInvocation(

20242024

params.cliPath,

2025-

[

2026-

"gateway",

2027-

"run",

2028-

"--bind",

2029-

"loopback",

2030-

"--port",

2031-

String(params.lane.gatewayPort),

2032-

"--force",

2033-

],

2025+

["gateway", "run", "--bind", "loopback", "--port", String(params.lane.gatewayPort), "--force"],

20342026

{

20352027

comSpec: params.env?.ComSpec ?? params.env?.COMSPEC,

20362028

platform: process.platform,

@@ -2072,19 +2064,26 @@ async function startManualGatewayFromInstalledCli(params) {

2072206420732065

async function resolveInstalledGatewayStatusArgs(params) {

20742066

const requireRpc = params.requireRpc !== false;

2075-

const help = await runInstalledCli({

2076-

cliPath: params.cliPath,

2077-

args: ["gateway", "status", "--help"],

2078-

cwd: params.cwd,

2079-

env: params.env,

2080-

logPath: params.logPath,

2081-

timeoutMs: 15_000,

2082-

check: false,

2083-

});

2084-

if (

2085-

requireRpc &&

2086-

(help.stdout.includes("--require-rpc") || help.stderr.includes("--require-rpc"))

2087-

) {

2067+

try {

2068+

const help = await runInstalledCli({

2069+

cliPath: params.cliPath,

2070+

args: ["gateway", "status", "--help"],

2071+

cwd: params.cwd,

2072+

env: params.env,

2073+

logPath: params.logPath,

2074+

timeoutMs: 15_000,

2075+

check: false,

2076+

});

2077+

return buildGatewayStatusArgsFromHelpText(`${help.stdout}\n${help.stderr}`, { requireRpc });

2078+

} catch (error) {

2079+

appendGatewayStatusHelpProbeFallback(params.logPath, error);

2080+

return buildGatewayStatusArgsFromHelpText("--require-rpc", { requireRpc });

2081+

}

2082+

}

2083+2084+

export function buildGatewayStatusArgsFromHelpText(helpText, options = {}) {

2085+

const requireRpc = options.requireRpc !== false;

2086+

if (requireRpc && helpText.includes("--require-rpc")) {

20882087

return [

20892088

"gateway",

20902089

"status",

@@ -2096,6 +2095,13 @@ async function resolveInstalledGatewayStatusArgs(params) {

20962095

return ["gateway", "status"];

20972096

}

209820972098+

function appendGatewayStatusHelpProbeFallback(logPath, error) {

2099+

appendFileSync(

2100+

logPath,

2101+

`${new Date().toISOString()} gateway status help probe failed; assuming current --require-rpc support: ${formatError(error)}\n`,

2102+

);

2103+

}

2104+20992105

export async function canConnectToLoopbackPort(port, timeoutMs = 1_000) {

21002106

if (!Number.isInteger(port) || port <= 0) {

21012107

return false;

@@ -3000,24 +3006,20 @@ function gatewayReadyDeadlineMs() {

30003006

}

3001300730023008

async function resolveGatewayStatusArgs(lane, env, logPath) {

3003-

const help = await runOpenClaw({

3004-

lane,

3005-

env,

3006-

args: ["gateway", "status", "--help"],

3007-

logPath,

3008-

timeoutMs: 15_000,

3009-

check: false,

3010-

});

3011-

if (help.stdout.includes("--require-rpc") || help.stderr.includes("--require-rpc")) {

3012-

return [

3013-

"gateway",

3014-

"status",

3015-

"--require-rpc",

3016-

"--timeout",

3017-

String(CROSS_OS_GATEWAY_STATUS_RPC_TIMEOUT_MS),

3018-

];

3009+

try {

3010+

const help = await runOpenClaw({

3011+

lane,

3012+

env,

3013+

args: ["gateway", "status", "--help"],

3014+

logPath,

3015+

timeoutMs: 15_000,

3016+

check: false,

3017+

});

3018+

return buildGatewayStatusArgsFromHelpText(`${help.stdout}\n${help.stderr}`);

3019+

} catch (error) {

3020+

appendGatewayStatusHelpProbeFallback(logPath, error);

3021+

return buildGatewayStatusArgsFromHelpText("--require-rpc");

30193022

}

3020-

return ["gateway", "status"];

30213023

}

3022302430233025

async function runModelsSet(params) {