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

推荐订阅源

博客园_首页
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
B
Blog
The GitHub Blog
The GitHub Blog
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
月光博客
月光博客
人人都是产品经理
人人都是产品经理
IT之家
IT之家
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
C
Check Point 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
test: tolerate unavailable release agent turn · openclaw/...
steipete · 2026-05-03 · via Recent Commits to openclaw:main

@@ -36,7 +36,7 @@ const SUPPORTED_SUITES = new Set([

36363737

export const CROSS_OS_AGENT_TURN_TIMEOUT_SECONDS = parsePositiveIntegerEnv(

3838

"OPENCLAW_CROSS_OS_AGENT_TURN_TIMEOUT_SECONDS",

39-

1200,

39+

600,

4040

);

4141

const CROSS_OS_AGENT_TURN_OPTIONAL = parseBooleanEnv("OPENCLAW_CROSS_OS_AGENT_TURN_OPTIONAL", true);

4242

@@ -1962,11 +1962,11 @@ async function runInstalledAgentTurn(params) {

19621962

return result;

19631963

} catch (error) {

19641964

lastError = error;

1965+

const skipped = maybeBuildOptionalAgentTurnSkipResult(error, params.logPath);

1966+

if (skipped) {

1967+

return skipped;

1968+

}

19651969

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

1966-

const skipped = maybeBuildOptionalAgentTurnSkipResult(error, params.logPath);

1967-

if (skipped) {

1968-

return skipped;

1969-

}

19701970

throw error;

19711971

}

19721972

appendFileSync(

@@ -2763,11 +2763,11 @@ async function runAgentTurn(params) {

27632763

return result;

27642764

} catch (error) {

27652765

lastError = error;

2766+

const skipped = maybeBuildOptionalAgentTurnSkipResult(error, params.logPath);

2767+

if (skipped) {

2768+

return skipped;

2769+

}

27662770

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

2767-

const skipped = maybeBuildOptionalAgentTurnSkipResult(error, params.logPath);

2768-

if (skipped) {

2769-

return skipped;

2770-

}

27712771

throw error;

27722772

}

27732773

appendFileSync(

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

27822782

}

2783278327842784

function maybeBuildOptionalAgentTurnSkipResult(error, logPath) {

2785-

if (!CROSS_OS_AGENT_TURN_OPTIONAL || !shouldRetryCrossOsAgentTurnError(error)) {

2785+

if (!CROSS_OS_AGENT_TURN_OPTIONAL || !shouldSkipOptionalCrossOsAgentTurnError(error, logPath)) {

27862786

return null;

27872787

}

27882788

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

@@ -2800,6 +2800,26 @@ function maybeBuildOptionalAgentTurnSkipResult(error, logPath) {

28002800

};

28012801

}

280228022803+

export function shouldSkipOptionalCrossOsAgentTurnError(error, logPath) {

2804+

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

2805+

if (

2806+

/model idle timeout|did not produce a response before the model idle timeout|gateway request timeout for agent|Command timed out|timed out and could not be terminated cleanly/u.test(

2807+

message,

2808+

)

2809+

) {

2810+

return true;

2811+

}

2812+

if (!/Agent output did not contain the expected OK marker/u.test(message)) {

2813+

return false;

2814+

}

2815+

try {

2816+

const log = readFileSync(logPath, "utf8");

2817+

return /"status"\s*:\s*"timeout"|Request timed out before a response was generated/u.test(log);

2818+

} catch {

2819+

return false;

2820+

}

2821+

}

2822+28032823

function buildReleaseAgentTurnArgs(sessionId) {

28042824

return [

28052825

"agent",