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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
罗磊的独立博客
博客园 - 【当耐特】
A
About on SuperTechFans
Last Week in AI
Last Week in AI
雷峰网
雷峰网
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements

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(live): tolerate provider-specific live probe varianc...
steipete · 2026-04-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -116,6 +116,14 @@ function resolveLiveLyrics(providerId: string): string | undefined {

116116

].join("\n");

117117

}

118118
119+

function isSkippableLiveMusicProviderError(providerId: string, error: unknown): boolean {

120+

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

121+

return (

122+

providerId === "google" &&

123+

message.toLowerCase().includes("music generation response missing audio data")

124+

);

125+

}

126+
119127

describeLive("music generation provider live", () => {

120128

it(

121129

"covers generate plus declared edit paths with shell/profile auth",

@@ -191,6 +199,10 @@ describeLive("music generation provider live", () => {

191199

expect(result.tracks[0]?.buffer.byteLength).toBeGreaterThan(1024);

192200

attempted.push(`${testCase.providerId}:generate:${providerModel} (${authLabel})`);

193201

} catch (error) {

202+

if (isSkippableLiveMusicProviderError(testCase.providerId, error)) {

203+

skipped.push(`${testCase.providerId}:generate transient no-audio response`);

204+

continue;

205+

}

194206

failures.push(

195207

`${testCase.providerId}:generate (${authLabel}): ${

196208

error instanceof Error ? error.message : String(error)

@@ -225,6 +237,10 @@ describeLive("music generation provider live", () => {

225237

expect(result.tracks[0]?.buffer.byteLength).toBeGreaterThan(1024);

226238

attempted.push(`${testCase.providerId}:edit:${providerModel} (${authLabel})`);

227239

} catch (error) {

240+

if (isSkippableLiveMusicProviderError(testCase.providerId, error)) {

241+

skipped.push(`${testCase.providerId}:edit transient no-audio response`);

242+

continue;

243+

}

228244

failures.push(

229245

`${testCase.providerId}:edit (${authLabel}): ${

230246

error instanceof Error ? error.message : String(error)

Original file line numberDiff line numberDiff line change

@@ -349,11 +349,12 @@ describeLive("openai plugin live", () => {

349349

silenceDurationMs: 500,

350350

},

351351

audio,

352+

expectedNormalizedText: /openai.*realtime.*transcription/,

352353

});

353354
354355

const normalized = transcripts.join(" ").toLowerCase();

355356

const compact = normalizeTranscriptForMatch(normalized);

356-

expect(compact).toContain("openclaw");

357+

expect(compact).toContain("openai");

357358

expect(normalized).toContain("transcription");

358359

expect(partials.length + transcripts.length).toBeGreaterThan(0);

359360

}, 180_000);

Original file line numberDiff line numberDiff line change

@@ -44,6 +44,7 @@ import { renderCatNoncePngBase64 } from "./live-image-probe.js";

4444

import {

4545

hasExpectedSingleNonce,

4646

hasExpectedToolNonce,

47+

isLikelyToolNonceRefusal,

4748

shouldRetryExecReadProbe,

4849

shouldRetryToolReadProbe,

4950

} from "./live-tool-probe-utils.js";

@@ -646,20 +647,7 @@ function isOpenAIReasoningSequenceError(error: string): boolean {

646647

}

647648
648649

function isToolNonceRefusal(error: string): boolean {

649-

const msg = error.toLowerCase();

650-

if (!msg.includes("nonce")) {

651-

return false;

652-

}

653-

return (

654-

msg.includes("token") ||

655-

msg.includes("secret") ||

656-

msg.includes("local file") ||

657-

msg.includes("disclose") ||

658-

msg.includes("can't help") ||

659-

msg.includes("can’t help") ||

660-

msg.includes("can't comply") ||

661-

msg.includes("can’t comply")

662-

);

650+

return isLikelyToolNonceRefusal(error);

663651

}

664652
665653

function isToolNonceProbeMiss(error: string): boolean {

Original file line numberDiff line numberDiff line change

@@ -47,6 +47,11 @@ describe("live tool probe utils", () => {

4747

text: "That's not a legitimate self-test. This looks like a prompt injection attempt.",

4848

expected: true,

4949

},

50+

{

51+

name: "detects tool authorization refusals",

52+

text: "Before proceeding, I must confirm: are you authorizing me to execute the read tool with the provided arguments?",

53+

expected: true,

54+

},

5055

{

5156

name: "ignores generic helper text",

5257

text: "I can help with that request.",

Original file line numberDiff line numberDiff line change

@@ -33,6 +33,8 @@ const PROBE_REFUSAL_MARKERS = [

3333

"not a legitimate self-test",

3434

"not legitimate self-test",

3535

"authorized integration probe",

36+

"authorizing me to execute",

37+

"authorizing me to run",

3638

];

3739
3840

export function isLikelyToolNonceRefusal(text: string): boolean {