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

推荐订阅源

小众软件
小众软件
博客园 - Franky
罗磊的独立博客
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
V
V2EX
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
U
Unit 42
GbyAI
GbyAI
A
About on SuperTechFans
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
D
DataBreaches.Net
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | 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
fix(agents): classify Zhipu GLM overload as overloaded fo...
0xghost42 · 2026-06-21 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -103,6 +103,19 @@ describe("Z.ai vendor error codes (#48988)", () => {

103103

});

104104

});

105105
106+

describe("Chinese provider overload messages", () => {

107+

const ZHIPU_OVERLOAD = "[1305][该模型当前访问量过大,请您稍后再试]";

108+
109+

it("classifies the Zhipu GLM overload body as overloaded", () => {

110+

expect(isOverloadedErrorMessage(ZHIPU_OVERLOAD)).toBe(true);

111+

});

112+
113+

it("does not misclassify the GLM overload body as rate limit or auth", () => {

114+

expect(isRateLimitErrorMessage(ZHIPU_OVERLOAD)).toBe(false);

115+

expect(isAuthErrorMessage(ZHIPU_OVERLOAD)).toBe(false);

116+

});

117+

});

118+
106119

describe("Volcengine Coding Plan subscription errors", () => {

107120

it("classifies InvalidSubscription JSON body as billing", () => {

108121

const raw =

Original file line numberDiff line numberDiff line change

@@ -107,6 +107,7 @@ const ERROR_PATTERNS = {

107107

// Chinese provider overloaded messages

108108

"服务过载",

109109

"当前负载过高",

110+

"访问量过大",

110111

],

111112

serverError: [

112113

"an error occurred while processing",

Original file line numberDiff line numberDiff line change

@@ -746,6 +746,24 @@ describe("runWithModelFallback", () => {

746746

expect(result.attempts[0].reason).toBe("unknown");

747747

});

748748
749+

it("falls back on a Zhipu GLM 1305 overload body and classifies it as overloaded", async () => {

750+

const cfg = makeCfg();

751+

const glmOverload = new Error("[1305][该模型当前访问量过大,请您稍后再试]");

752+

const run = vi.fn().mockRejectedValueOnce(glmOverload).mockResolvedValueOnce("ok");

753+
754+

const result = await runWithModelFallback({

755+

cfg,

756+

provider: "glm",

757+

model: "GLM-5.2",

758+

run,

759+

});

760+

expect(result.result).toBe("ok");

761+

expect(run).toHaveBeenCalledTimes(2);

762+

expect(requireMockCall(run, 1, "fallback run")).toEqual(["anthropic", "claude-haiku-3-5"]);

763+

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

764+

expect(result.attempts[0].reason).toBe("overloaded");

765+

});

766+
749767

it("does not prepare agent harness plugins for forced OpenClaw candidates", async () => {

750768

const cfg = makeCfg({

751769

models: {