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

推荐订阅源

小众软件
小众软件
博客园_首页
博客园 - 聂微东
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
D
Docker
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Jina AI
Jina AI
博客园 - Franky
D
DataBreaches.Net

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(gateway): attribute agent wait timeouts · openclaw/op...
vincentkoc · 2026-05-23 · via Recent Commits to openclaw:main

@@ -1143,7 +1143,7 @@ export async function runEmbeddedPiAgent(

11431143

modelId?: string;

11441144

}) => {

11451145

const { profileId, reason } = failure;

1146-

if (!profileId || !reason || reason === "timeout") {

1146+

if (!profileId || !reason) {

11471147

return;

11481148

}

11491149

await markAuthProfileFailure({

@@ -1156,9 +1156,13 @@ export async function runEmbeddedPiAgent(

11561156

modelId: failure.modelId,

11571157

});

11581158

};

1159-

const resolveRunAuthProfileFailureReason = (failoverReason: FailoverReason | null) =>

1159+

const resolveRunAuthProfileFailureReason = (

1160+

failoverReason: FailoverReason | null,

1161+

opts?: { providerStarted?: boolean },

1162+

) =>

11601163

resolveAuthProfileFailureReason({

11611164

failoverReason,

1165+

providerStarted: opts?.providerStarted,

11621166

policy: params.authProfileFailurePolicy,

11631167

});

11641168

const maybeBackoffBeforeOverloadFailover = async (reason: FailoverReason | null) => {

@@ -2318,8 +2322,12 @@ export async function runEmbeddedPiAgent(

23182322

}

23192323

const promptFailoverReason =

23202324

promptErrorDetails.reason ?? classifyFailoverReason(errorText, { provider });

2321-

const promptProfileFailureReason =

2322-

resolveRunAuthProfileFailureReason(promptFailoverReason);

2325+

const promptProfileFailureReason = resolveRunAuthProfileFailureReason(

2326+

promptFailoverReason,

2327+

{

2328+

providerStarted: promptErrorSource === "prompt",

2329+

},

2330+

);

23232331

const promptFailoverFailure =

23242332

promptFailoverReason !== null || isFailoverErrorMessage(errorText, { provider });

23252333

// Capture the failing profile before auth-profile rotation mutates `lastProfileId`.

@@ -2480,8 +2488,19 @@ export async function runEmbeddedPiAgent(

24802488

provider: assistantForFailover?.provider,

24812489

},

24822490

);

2483-

const assistantProfileFailureReason =

2484-

resolveRunAuthProfileFailureReason(assistantFailoverReason);

2491+

const assistantProviderStarted =

2492+

Boolean(currentAttemptAssistant?.provider) ||

2493+

idleTimedOut ||

2494+

(timedOut && !timedOutDuringCompaction && !timedOutDuringToolExecution);

2495+

const assistantProfileFailoverReason =

2496+

assistantFailoverReason ??

2497+

(assistantProviderStarted && (timedOut || idleTimedOut) ? "timeout" : null);

2498+

const assistantProfileFailureReason = resolveRunAuthProfileFailureReason(

2499+

assistantProfileFailoverReason,

2500+

{

2501+

providerStarted: assistantProviderStarted,

2502+

},

2503+

);

24852504

const cloudCodeAssistFormatError = attempt.cloudCodeAssistFormatError;

24862505

const imageDimensionError = parseImageDimensionError(

24872506

assistantForFailover?.errorMessage ?? "",

@@ -2772,9 +2791,13 @@ export async function runEmbeddedPiAgent(

27722791

attempt,

27732792

incompleteTurnText: null,

27742793

});

2794+

const timeoutPhase = attempt.promptTimeoutOutcome?.timeoutPhase ?? "provider";

2795+

const providerStarted = attempt.promptTimeoutOutcome?.providerStarted ?? true;

27752796

attempt.setTerminalLifecycleMeta?.({

27762797

replayInvalid,

27772798

livenessState,

2799+

timeoutPhase,

2800+

providerStarted,

27782801

});

27792802

return {

27802803

payloads: [

@@ -2794,6 +2817,8 @@ export async function runEmbeddedPiAgent(

27942817

finalAssistantRawText,

27952818

replayInvalid,

27962819

livenessState,

2820+

timeoutPhase,

2821+

providerStarted,

27972822

toolSummary: attemptToolSummary,

27982823

...(failureSignal ? { failureSignal } : {}),

27992824

agentHarnessResultClassification: attempt.agentHarnessResultClassification,

@@ -3053,7 +3078,7 @@ export async function runEmbeddedPiAgent(

30533078

if (lastProfileId) {

30543079

await maybeMarkAuthProfileFailure({

30553080

profileId: lastProfileId,

3056-

reason: resolveRunAuthProfileFailureReason(assistantFailoverReason),

3081+

reason: assistantProfileFailureReason,

30573082

});

30583083

}

30593084

return {

@@ -3164,7 +3189,7 @@ export async function runEmbeddedPiAgent(

31643189

if (lastProfileId) {

31653190

await maybeMarkAuthProfileFailure({

31663191

profileId: lastProfileId,

3167-

reason: resolveRunAuthProfileFailureReason(assistantFailoverReason),

3192+

reason: assistantProfileFailureReason,

31683193

});

31693194

}

31703195