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

推荐订阅源

H
Help Net Security
爱范儿
爱范儿
V
Visual Studio Blog
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 三生石上(FineUI控件)
博客园 - Franky
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
罗磊的独立博客
L
LangChain Blog
Jina AI
Jina AI
IT之家
IT之家
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure 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: assert tts contract attempts · openclaw/openclaw@40...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -944,10 +944,9 @@ export function describeTtsSummarizationContract() {

944944

`Invalid targetLength: ${testCase.targetLength}`,

945945

);

946946

} else {

947-

await expect(call, String(testCase.targetLength)).resolves.toMatchObject({

948-

summary: expect.any(String),

949-

inputLength: 4,

950-

});

947+

const result = await call;

948+

expect(typeof result.summary, String(testCase.targetLength)).toBe("string");

949+

expect(result.inputLength, String(testCase.targetLength)).toBe(4);

951950

}

952951

});

953952

@@ -1046,16 +1045,22 @@ export function describeTtsProviderRuntimeContract() {

10461045

expect(result.provider).toBe("microsoft");

10471046

expect(result.fallbackFrom).toBe("openai");

10481047

expect(result.attemptedProviders).toEqual(["openai", "microsoft"]);

1049-

expect(result.attempts?.[0]).toMatchObject({

1050-

provider: "openai",

1051-

outcome: "failed",

1052-

reasonCode: "provider_error",

1053-

});

1054-

expect(result.attempts?.[1]).toMatchObject({

1055-

provider: "microsoft",

1056-

outcome: "success",

1057-

reasonCode: "success",

1058-

});

1048+

expect(result.attempts).toHaveLength(2);

1049+

expect(result.attempts?.[0]?.provider).toBe("openai");

1050+

expect(result.attempts?.[0]?.outcome).toBe("failed");

1051+

expect(result.attempts?.[0]?.reasonCode).toBe("provider_error");

1052+

expect(result.attempts?.[0]?.persona).toBeUndefined();

1053+

expect(result.attempts?.[0]?.personaBinding).toBe("none");

1054+

expect(typeof result.attempts?.[0]?.latencyMs).toBe("number");

1055+

expect(result.attempts?.[0]?.error).toContain("openai: Authorization: Bearer");

1056+

expect(result.attempts?.[0]?.error).not.toContain("sk-readiness-throw-token-1234567890");

1057+

expect(result.attempts?.[1]?.provider).toBe("microsoft");

1058+

expect(result.attempts?.[1]?.outcome).toBe("success");

1059+

expect(result.attempts?.[1]?.reasonCode).toBe("success");

1060+

expect(result.attempts?.[1]?.persona).toBeUndefined();

1061+

expect(result.attempts?.[1]?.personaBinding).toBe("none");

1062+

expect(typeof result.attempts?.[1]?.latencyMs).toBe("number");

1063+

expect(result.attempts?.[1]?.error).toBeUndefined();

10591064

});

10601065

});

10611066

@@ -1116,16 +1121,22 @@ export function describeTtsProviderRuntimeContract() {

11161121

expect(result.provider).toBe("microsoft");

11171122

expect(result.fallbackFrom).toBe("primary-throws");

11181123

expect(result.attemptedProviders).toEqual(["primary-throws", "microsoft"]);

1119-

expect(result.attempts?.[0]).toMatchObject({

1120-

provider: "primary-throws",

1121-

outcome: "failed",

1122-

reasonCode: "provider_error",

1123-

});

1124-

expect(result.attempts?.[1]).toMatchObject({

1125-

provider: "microsoft",

1126-

outcome: "success",

1127-

reasonCode: "success",

1128-

});

1124+

expect(result.attempts).toHaveLength(2);

1125+

expect(result.attempts?.[0]?.provider).toBe("primary-throws");

1126+

expect(result.attempts?.[0]?.outcome).toBe("failed");

1127+

expect(result.attempts?.[0]?.reasonCode).toBe("provider_error");

1128+

expect(result.attempts?.[0]?.persona).toBeUndefined();

1129+

expect(result.attempts?.[0]?.personaBinding).toBe("none");

1130+

expect(typeof result.attempts?.[0]?.latencyMs).toBe("number");

1131+

expect(result.attempts?.[0]?.error).toContain("primary-throws: Authorization: Bearer");

1132+

expect(result.attempts?.[0]?.error).not.toContain("sk-telephony-throw-token-1234567890");

1133+

expect(result.attempts?.[1]?.provider).toBe("microsoft");

1134+

expect(result.attempts?.[1]?.outcome).toBe("success");

1135+

expect(result.attempts?.[1]?.reasonCode).toBe("success");

1136+

expect(result.attempts?.[1]?.persona).toBeUndefined();

1137+

expect(result.attempts?.[1]?.personaBinding).toBe("none");

1138+

expect(typeof result.attempts?.[1]?.latencyMs).toBe("number");

1139+

expect(result.attempts?.[1]?.error).toBeUndefined();

11291140

});

11301141

});

11311142