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

推荐订阅源

小众软件
小众软件
博客园_首页
M
MIT News - Artificial intelligence
雷峰网
雷峰网
GbyAI
GbyAI
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
S
SegmentFault 最新的问题
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 【当耐特】
V
Visual Studio Blog
月光博客
月光博客
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
云风的 BLOG
云风的 BLOG
美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队

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: tighten runtime payload assertions · openclaw/openc...
steipete · 2026-05-09 · via Recent Commits to openclaw:main

@@ -26,33 +26,27 @@ function normalizeObservation(

26262727

describe("normalizeFailoverDecisionObservationBase", () => {

2828

it("fills timeout observation reasons for deadline timeouts without provider error text", () => {

29-

expect(

30-

normalizeObservation({

31-

runId: "run:timeout",

32-

timedOut: true,

33-

}),

34-

).toMatchObject({

35-

failoverReason: "timeout",

36-

profileFailureReason: "timeout",

29+

const observation = normalizeObservation({

30+

runId: "run:timeout",

3731

timedOut: true,

3832

});

33+

expect(observation.failoverReason).toBe("timeout");

34+

expect(observation.profileFailureReason).toBe("timeout");

35+

expect(observation.timedOut).toBe(true);

3936

});

40374138

it("preserves explicit failover reasons", () => {

42-

expect(

43-

normalizeObservation({

44-

runId: "run:overloaded",

45-

rawError: '{"error":{"type":"overloaded_error"}}',

46-

failoverReason: "overloaded",

47-

profileFailureReason: "overloaded",

48-

fallbackConfigured: true,

49-

timedOut: true,

50-

}),

51-

).toMatchObject({

39+

const observation = normalizeObservation({

40+

runId: "run:overloaded",

41+

rawError: '{"error":{"type":"overloaded_error"}}',

5242

failoverReason: "overloaded",

5343

profileFailureReason: "overloaded",

44+

fallbackConfigured: true,

5445

timedOut: true,

5546

});

47+

expect(observation.failoverReason).toBe("overloaded");

48+

expect(observation.profileFailureReason).toBe("overloaded");

49+

expect(observation.timedOut).toBe(true);

5650

});

5751

});

5852

@@ -81,19 +75,23 @@ describe("createFailoverDecisionLogger", () => {

81758276

logDecision("fallback_model");

837784-

expect(warnSpy).toHaveBeenCalledWith(

85-

"embedded run failover decision",

86-

expect.objectContaining({

87-

sourceProvider: "github-copilot",

88-

sourceModel: "gpt-5.4-mini",

89-

provider: "openai",

90-

model: "gpt-5.4",

91-

consoleMessage: expect.stringContaining("from=github-copilot/gpt-5.4-mini"),

92-

}),

93-

);

94-

expect(

95-

(warnSpy.mock.calls[0]?.[1] as { consoleMessage?: string } | undefined)?.consoleMessage,

96-

).toContain("to=openai/gpt-5.4");

78+

const [message, details] = warnSpy.mock.calls[0] ?? [];

79+

expect(message).toBe("embedded run failover decision");

80+

const observation = details as

81+

| {

82+

sourceProvider?: string;

83+

sourceModel?: string;

84+

provider?: string;

85+

model?: string;

86+

consoleMessage?: string;

87+

}

88+

| undefined;

89+

expect(observation?.sourceProvider).toBe("github-copilot");

90+

expect(observation?.sourceModel).toBe("gpt-5.4-mini");

91+

expect(observation?.provider).toBe("openai");

92+

expect(observation?.model).toBe("gpt-5.4");

93+

expect(observation?.consoleMessage).toContain("from=github-copilot/gpt-5.4-mini");

94+

expect(observation?.consoleMessage).toContain("to=openai/gpt-5.4");

9795

});

98969997

it("omits to model refs when the source matches the selected target", () => {