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

推荐订阅源

MyScale Blog
MyScale Blog
J
Java Code Geeks
Vercel News
Vercel News
A
About on SuperTechFans
G
Google Developers Blog
C
Check Point Blog
腾讯CDC
N
Netflix TechBlog - Medium
博客园 - 司徒正美
S
SegmentFault 最新的问题
D
DataBreaches.Net
博客园_首页
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
量子位
雷峰网
雷峰网
IT之家
IT之家
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
博客园 - 三生石上(FineUI控件)
H
Help Net Security
宝玉的分享
宝玉的分享
博客园 - 叶小钗

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(agents,failover): propagate sessionId/lane/provider a...
wenxu007 · 2026-05-01 · via Recent Commits to openclaw:main

@@ -21,6 +21,12 @@ export class FailoverError extends Error {

2121

readonly status?: number;

2222

readonly code?: string;

2323

readonly rawError?: string;

24+

// Originating request attribution propagated through wrapper errors so

25+

// structured log ingestion (e.g. api_health_log) can attribute exhausted

26+

// failover failures back to a session/lane and the last attempted provider.

27+

// See #42713.

28+

readonly sessionId?: string;

29+

readonly lane?: string;

24302531

constructor(

2632

message: string,

@@ -32,6 +38,8 @@ export class FailoverError extends Error {

3238

status?: number;

3339

code?: string;

3440

rawError?: string;

41+

sessionId?: string;

42+

lane?: string;

3543

cause?: unknown;

3644

},

3745

) {

@@ -44,6 +52,8 @@ export class FailoverError extends Error {

4452

this.status = params.status;

4553

this.code = params.code;

4654

this.rawError = params.rawError;

55+

this.sessionId = params.sessionId;

56+

this.lane = params.lane;

4757

}

4858

}

4959

@@ -422,6 +432,11 @@ export function describeFailoverError(err: unknown): {

422432

reason?: FailoverReason;

423433

status?: number;

424434

code?: string;

435+

provider?: string;

436+

model?: string;

437+

profileId?: string;

438+

sessionId?: string;

439+

lane?: string;

425440

} {

426441

if (isFailoverError(err)) {

427442

return {

@@ -430,6 +445,11 @@ export function describeFailoverError(err: unknown): {

430445

reason: err.reason,

431446

status: err.status,

432447

code: err.code,

448+

provider: err.provider,

449+

model: err.model,

450+

profileId: err.profileId,

451+

sessionId: err.sessionId,

452+

lane: err.lane,

433453

};

434454

}

435455

const signal = normalizeErrorSignal(err);

@@ -439,6 +459,7 @@ export function describeFailoverError(err: unknown): {

439459

reason: resolveFailoverReasonFromError(err) ?? undefined,

440460

status: signal.status,

441461

code: signal.code,

462+

provider: signal.provider,

442463

};

443464

}

444465

@@ -448,6 +469,8 @@ export function coerceToFailoverError(

448469

provider?: string;

449470

model?: string;

450471

profileId?: string;

472+

sessionId?: string;

473+

lane?: string;

451474

},

452475

): FailoverError | null {

453476

if (isFailoverError(err)) {

@@ -465,9 +488,11 @@ export function coerceToFailoverError(

465488466489

return new FailoverError(message, {

467490

reason,

468-

provider: context?.provider,

491+

provider: context?.provider ?? signal.provider,

469492

model: context?.model,

470493

profileId: context?.profileId,

494+

sessionId: context?.sessionId,

495+

lane: context?.lane,

471496

status,

472497

code,

473498

rawError: message,