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

推荐订阅源

罗磊的独立博客
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
IT之家
IT之家
B
Blog
博客园_首页
博客园 - 司徒正美
有赞技术团队
有赞技术团队
博客园 - 聂微东
I
InfoQ
美团技术团队
GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志
H
Help Net Security
大猫的无限游戏
大猫的无限游戏
MyScale Blog
MyScale Blog
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog

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: speed up release live smoke retries · openclaw/opencl...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -55,6 +55,16 @@ const providerConfig = {

5555

},

5656

};

575758+

export function resolveProviderConfig(provider, env = process.env) {

59+

const config = providerConfig[provider];

60+

if (!config) {

61+

return null;

62+

}

63+

const providerEnvKey = `OPENCLAW_CROSS_OS_${provider.toUpperCase().replace(/[^A-Z0-9]+/gu, "_")}_MODEL`;

64+

const model = env[providerEnvKey]?.trim() || env.OPENCLAW_CROSS_OS_MODEL?.trim() || config.model;

65+

return { ...config, model };

66+

}

67+5868

const RELEASE_SMOKE_PLUGIN_ALLOWLIST_BASE = [

5969

"acpx",

6070

"bonjour",

@@ -304,7 +314,7 @@ async function main(argv) {

304314

throw new Error(`Unsupported provider "${provider}".`);

305315

}

306316307-

const selectedProvider = providerConfig[provider];

317+

const selectedProvider = resolveProviderConfig(provider);

308318

const providerSecretValue = process.env[selectedProvider.secretEnv]?.trim();

309319

if (!providerSecretValue) {

310320

throw new Error(`Missing ${selectedProvider.secretEnv}.`);

@@ -1882,30 +1892,36 @@ async function runInstalledModelsSet(params) {

18821892

}

1883189318841894

async function runInstalledAgentTurn(params) {

1885-

const sessionId = `cross-os-release-check-${params.label}-${Date.now()}`;

1886-

const result = await runInstalledCli({

1887-

cliPath: params.cliPath,

1888-

args: [

1889-

"agent",

1890-

"--agent",

1891-

"main",

1892-

"--session-id",

1893-

sessionId,

1894-

"--message",

1895-

"Reply with exact ASCII text OK only.",

1896-

"--thinking",

1897-

"minimal",

1898-

"--json",

1899-

],

1900-

cwd: params.cwd,

1901-

env: params.env,

1902-

logPath: params.logPath,

1903-

timeoutMs: 10 * 60 * 1000,

1904-

});

1905-

if (!agentOutputHasExpectedOkMarker(result.stdout, { logPath: params.logPath })) {

1906-

throw new Error("Agent output did not contain the expected OK marker.");

1895+

let lastError;

1896+

for (let attempt = 1; attempt <= 2; attempt += 1) {

1897+

const sessionId = `cross-os-release-check-${params.label}-${Date.now()}-${attempt}`;

1898+

try {

1899+

const result = await runInstalledCli({

1900+

cliPath: params.cliPath,

1901+

args: buildReleaseAgentTurnArgs(sessionId),

1902+

cwd: params.cwd,

1903+

env: params.env,

1904+

logPath: params.logPath,

1905+

timeoutMs: 10 * 60 * 1000,

1906+

});

1907+

if (!agentOutputHasExpectedOkMarker(result.stdout, { logPath: params.logPath })) {

1908+

throw new Error("Agent output did not contain the expected OK marker.");

1909+

}

1910+

return result;

1911+

} catch (error) {

1912+

lastError = error;

1913+

if (attempt >= 2 || !shouldRetryCrossOsAgentTurnError(error)) {

1914+

throw error;

1915+

}

1916+

appendFileSync(

1917+

params.logPath,

1918+

`\n[release-checks] retrying installed agent turn after retryable live failure: ${

1919+

error instanceof Error ? error.message : String(error)

1920+

}\n`,

1921+

);

1922+

}

19071923

}

1908-

return result;

1924+

throw lastError;

19091925

}

1910192619111927

export function verifyDevUpdateStatus(stdout, options = {}) {

@@ -2657,18 +2673,7 @@ async function runAgentTurn(params) {

26572673

const result = await runOpenClaw({

26582674

lane: params.lane,

26592675

env: params.env,

2660-

args: [

2661-

"agent",

2662-

"--agent",

2663-

"main",

2664-

"--session-id",

2665-

sessionId,

2666-

"--message",

2667-

"Reply with exact ASCII text OK only.",

2668-

"--thinking",

2669-

"minimal",

2670-

"--json",

2671-

],

2676+

args: buildReleaseAgentTurnArgs(sessionId),

26722677

logPath: params.logPath,

26732678

timeoutMs: 10 * 60 * 1000,

26742679

});

@@ -2683,7 +2688,7 @@ async function runAgentTurn(params) {

26832688

}

26842689

appendFileSync(

26852690

params.logPath,

2686-

`\n[release-checks] retrying agent turn after bundled runtime deps staging failure: ${

2691+

`\n[release-checks] retrying agent turn after retryable live failure: ${

26872692

error instanceof Error ? error.message : String(error)

26882693

}\n`,

26892694

);

@@ -2692,9 +2697,24 @@ async function runAgentTurn(params) {

26922697

throw lastError;

26932698

}

269426992700+

function buildReleaseAgentTurnArgs(sessionId) {

2701+

return [

2702+

"agent",

2703+

"--agent",

2704+

"main",

2705+

"--session-id",

2706+

sessionId,

2707+

"--message",

2708+

"Reply with exact ASCII text OK only.",

2709+

"--thinking",

2710+

"minimal",

2711+

"--json",

2712+

];

2713+

}

2714+26952715

export function shouldRetryCrossOsAgentTurnError(error) {

26962716

const message = error instanceof Error ? error.message : String(error);

2697-

return /failed to (?:install|stage) bundled runtime deps|failed to stage bundled runtime deps after/u.test(

2717+

return /failed to (?:install|stage) bundled runtime deps|failed to stage bundled runtime deps after|Agent output did not contain the expected OK marker|model idle timeout|did not produce a response before the model idle timeout/u.test(

26982718

message,

26992719

);

27002720

}