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

推荐订阅源

罗磊的独立博客
U
Unit 42
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
小众软件
小众软件
V
Visual Studio Blog
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
博客园 - 叶小钗
GbyAI
GbyAI
爱范儿
爱范儿
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
博客园_首页
D
Docker
A
About on SuperTechFans
G
Google Developers Blog
I
InfoQ
T
The Blog of Author Tim Ferriss
V
V2EX
博客园 - Franky

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: stabilize live model sweeps · openclaw/openclaw@24b...
steipete · 2026-04-24 · via Recent Commits to openclaw:main

@@ -207,6 +207,13 @@ describe("isProviderUnavailableErrorMessage", () => {

207207

),

208208

).toBe(true);

209209

});

210+211+

it("matches transient upstream 502 errors", () => {

212+

expect(isProviderUnavailableErrorMessage("502 internal server error")).toBe(true);

213+

expect(

214+

isProviderUnavailableErrorMessage("provider returned error: 502 Internal Server Error"),

215+

).toBe(true);

216+

});

210217

});

211218212219

function isChatGPTUsageLimitErrorMessage(raw: string): boolean {

@@ -250,7 +257,8 @@ function isProviderUnavailableErrorMessage(raw: string): boolean {

250257

msg.includes("temporarily rate-limited upstream") ||

251258

msg.includes("unable to access non-serverless model") ||

252259

msg.includes("create and start a new dedicated endpoint") ||

253-

msg.includes("no available capacity was found for the model")

260+

msg.includes("no available capacity was found for the model") ||

261+

(msg.includes("502") && msg.includes("internal server error"))

254262

);

255263

}

256264

@@ -286,6 +294,20 @@ function isUnsupportedThinkingToggleErrorMessage(raw: string): boolean {

286294

return /does not support parameter [`"]?enable_thinking[`"]?/i.test(raw);

287295

}

288296297+

function isUnsupportedPlanErrorMessage(raw: string): boolean {

298+

return /current token plan (?:does )?not support (?:this )?model/i.test(raw);

299+

}

300+301+

describe("isUnsupportedPlanErrorMessage", () => {

302+

it("matches provider plan-gated models", () => {

303+

expect(isUnsupportedPlanErrorMessage("current token plan does not support this model")).toBe(

304+

true,

305+

);

306+

expect(isUnsupportedPlanErrorMessage("your current token plan not support model")).toBe(true);

307+

expect(isUnsupportedPlanErrorMessage("model not found")).toBe(false);

308+

});

309+

});

310+289311

function toInt(value: string | undefined, fallback: number): number {

290312

const trimmed = value?.trim();

291313

if (!trimmed) {

@@ -500,7 +522,13 @@ async function runExtraTurnProbes(params: {

500522

fileText = extractAssistantText(retry);

501523

}

502524

if (!fileProbeTextMatches(fileText)) {

503-

throw new Error(`file-read probe did not return ${LIVE_MODEL_FILE_PROBE_TOKEN}: ${fileText}`);

525+

if (fileText.length === 0) {

526+

logProgress(`${params.progressLabel}: file-read probe skipped (empty response)`);

527+

} else {

528+

throw new Error(

529+

`file-read probe did not return ${LIVE_MODEL_FILE_PROBE_TOKEN}: ${fileText}`,

530+

);

531+

}

504532

}

505533

} else if (LIVE_FILE_PROBE_ENABLED) {

506534

logProgress(`${params.progressLabel}: file-read probe skipped (known empty route)`);

@@ -531,6 +559,10 @@ async function runExtraTurnProbes(params: {

531559

}

532560

const imageText = extractAssistantText(image);

533561

if (!imageProbeTextMatches(imageText)) {

562+

if (imageText.length === 0) {

563+

logProgress(`${params.progressLabel}: image probe skipped (empty response)`);

564+

return;

565+

}

534566

throw new Error(`image probe did not return ok: ${imageText}`);

535567

}

536568

}

@@ -847,7 +879,10 @@ describeLive("live models (profile keys)", () => {

847879

ok.text.length === 0 &&

848880

allowNotFoundSkip &&

849881

(model.provider === "fireworks" ||

882+

model.provider === "google-antigravity" ||

850883

model.provider === "minimax" ||

884+

model.provider === "openai-codex" ||

885+

model.provider === "xai" ||

851886

model.provider === "zai")

852887

) {

853888

skipped.push({

@@ -857,18 +892,6 @@ describeLive("live models (profile keys)", () => {

857892

logProgress(`${progressLabel}: skip (empty response)`);

858893

break;

859894

}

860-

if (

861-

ok.text.length === 0 &&

862-

allowNotFoundSkip &&

863-

(model.provider === "google-antigravity" || model.provider === "openai-codex")

864-

) {

865-

skipped.push({

866-

model: id,

867-

reason: "no text returned (provider returned empty content)",

868-

});

869-

logProgress(`${progressLabel}: skip (empty response)`);

870-

break;

871-

}

872895

expect(ok.text.length).toBeGreaterThan(0);

873896

await runExtraTurnProbes({

874897

model,

@@ -921,7 +944,9 @@ describeLive("live models (profile keys)", () => {

921944

}

922945

if (

923946

allowNotFoundSkip &&

924-

(model.provider === "minimax" || model.provider === "zai") &&

947+

(model.provider === "minimax" ||

948+

model.provider === "zai" ||

949+

model.provider === "openrouter") &&

925950

isRateLimitErrorMessage(message)

926951

) {

927952

skipped.push({ model: id, reason: message });

@@ -1012,6 +1037,11 @@ describeLive("live models (profile keys)", () => {

10121037

logProgress(`${progressLabel}: skip (thinking toggle unsupported)`);

10131038

break;

10141039

}

1040+

if (allowNotFoundSkip && isUnsupportedPlanErrorMessage(message)) {

1041+

skipped.push({ model: id, reason: message });

1042+

logProgress(`${progressLabel}: skip (plan unsupported)`);

1043+

break;

1044+

}

10151045

if (

10161046

allowNotFoundSkip &&

10171047

model.provider === "ollama" &&