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

推荐订阅源

A
About on SuperTechFans
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
I
InfoQ
C
Check Point Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
Last Week in AI
Last Week in AI
GbyAI
GbyAI
P
Proofpoint News Feed
量子位
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
B
Blog
T
The Blog of Author Tim Ferriss
H
Help Net Security
云风的 BLOG
云风的 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
Cron: honor server_error retries (#45594) · openclaw/open...
clovericbot · 2026-05-10 · via Recent Commits to openclaw:main

@@ -44,6 +44,9 @@ const GROQ_TOO_MANY_REQUESTS_MESSAGE =

4444

"429 Too Many Requests: Too many requests were sent in a given timeframe.";

4545

const GROQ_SERVICE_UNAVAILABLE_MESSAGE =

4646

"503 Service Unavailable: The server is temporarily unable to handle the request due to overloading or maintenance.";

47+

// Structured OpenAI-compatible server_error payload shape seen in Codex/OpenAI runs.

48+

const OPENAI_SERVER_ERROR_PAYLOAD =

49+

'Codex error: {"type":"error","error":{"type":"server_error","code":"server_error","message":"An error occurred while processing your request."},"sequence_number":2}';

47504851

describe("failover-error", () => {

4952

it("infers failover reason from HTTP status", () => {

@@ -866,6 +869,10 @@ describe("failover-error", () => {

866869

expect(resolveFailoverStatus("overloaded")).toBe(503);

867870

});

868871872+

it("maps server_error to a 500 fallback status", () => {

873+

expect(resolveFailoverStatus("server_error")).toBe(500);

874+

});

875+869876

it("coerces format errors with a 400 status", () => {

870877

const err = coerceToFailoverError("invalid request format", {

871878

provider: "google",

@@ -973,6 +980,39 @@ describe("failover-error", () => {

973980

expect(described.reason).toBeUndefined();

974981

});

975982983+

it("classifies OpenAI-compatible server_error payloads at the error boundary", () => {

984+

expect(

985+

resolveFailoverReasonFromError({

986+

message: OPENAI_SERVER_ERROR_PAYLOAD,

987+

}),

988+

).toBe("server_error");

989+

expect(

990+

resolveFailoverReasonFromError({

991+

status: 500,

992+

message: OPENAI_SERVER_ERROR_PAYLOAD,

993+

}),

994+

).toBe("server_error");

995+996+

const err = coerceToFailoverError(

997+

{

998+

status: 500,

999+

message: OPENAI_SERVER_ERROR_PAYLOAD,

1000+

},

1001+

{ provider: "openai-codex", model: "gpt-5.4" },

1002+

);

1003+

expect(err?.reason).toBe("server_error");

1004+

expect(err?.status).toBe(500);

1005+

});

1006+1007+

it("keeps explicit 4xx classification ahead of server_error markers", () => {

1008+

const payload = '{"type":"error","error":{"type":"server_error","code":"server_error"}}';

1009+1010+

expect(resolveFailoverReasonFromError({ status: 401, message: payload })).toBe("auth");

1011+

expect(resolveFailoverReasonFromError({ status: 402, message: payload })).toBe("billing");

1012+

expect(resolveFailoverReasonFromError({ status: 422, message: payload })).toBe("format");

1013+

expect(resolveFailoverReasonFromError(`402 Payment Required ${payload}`)).toBe("billing");

1014+

});

1015+9761016

it("propagates sessionId/lane/provider attribution through FailoverError (#42713)", () => {

9771017

const err = new FailoverError("all fallbacks exhausted", {

9781018

reason: "rate_limit",