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

推荐订阅源

罗磊的独立博客
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
C
Check Point Blog
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
GbyAI
GbyAI
云风的 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
fix(models): preserve fallback chain for override models ...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -1029,7 +1029,7 @@ describe("runWithModelFallback", () => {

10291029

});

10301030

});

103110311032-

it("puts configured primary next when an override model is requested", () => {

1032+

it("puts configured fallbacks before the configured primary when an override model is requested", () => {

10331033

const cfg = makeCfg({

10341034

agents: {

10351035

defaults: {

@@ -1049,10 +1049,37 @@ describe("runWithModelFallback", () => {

10491049

}),

10501050

).toEqual([

10511051

{ provider: "anthropic", model: "claude-opus-4-5" },

1052+

{ provider: "anthropic", model: "claude-haiku-3-5" },

1053+

{ provider: "openrouter", model: "openrouter/deepseek-chat" },

10521054

{ provider: "openai", model: "gpt-4.1-mini" },

10531055

]);

10541056

});

105510571058+

it("keeps configured fallbacks before configured primary for duplicate provider model ids", () => {

1059+

const cfg = makeCfg({

1060+

agents: {

1061+

defaults: {

1062+

model: {

1063+

primary: "deepseek/deepseek-v4-flash",

1064+

fallbacks: ["minimax-portal/MiniMax-M2.7"],

1065+

},

1066+

},

1067+

},

1068+

});

1069+1070+

expect(

1071+

__testing.resolveFallbackCandidates({

1072+

cfg,

1073+

provider: "qianfan",

1074+

model: "deepseek-v4-flash",

1075+

}),

1076+

).toEqual([

1077+

{ provider: "qianfan", model: "deepseek-v4-flash" },

1078+

{ provider: "minimax-portal", model: "MiniMax-M2.7" },

1079+

{ provider: "deepseek", model: "deepseek-v4-flash" },

1080+

]);

1081+

});

1082+10561083

it("keeps configured fallback chain when current model is a configured fallback", () => {

10571084

const cfg = makeCfg({

10581085

agents: {

@@ -1102,7 +1129,7 @@ describe("runWithModelFallback", () => {

11021129

]);

11031130

});

110411311105-

it("falls back to configured primary for override credential validation errors", async () => {

1132+

it("tries configured fallbacks before primary for override credential validation errors", async () => {

11061133

const cfg = makeCfg();

11071134

const run = createOverrideFailureRun({

11081135

overrideProvider: "anthropic",

@@ -1122,6 +1149,7 @@ describe("runWithModelFallback", () => {

11221149

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

11231150

expect(run.mock.calls).toEqual([

11241151

["anthropic", "claude-opus-4"],

1152+

["anthropic", "claude-haiku-3-5"],

11251153

["openai", "gpt-4.1-mini"],

11261154

]);

11271155

});

@@ -1196,7 +1224,7 @@ describe("runWithModelFallback", () => {

11961224

provider: "anthropic",

11971225

model: "claude-opus-4-6",

11981226

error: new Error("Unknown model: anthropic/claude-opus-4-6"),

1199-

expectedFallback: ["openai", "gpt-4.1-mini"],

1227+

expectedFallback: ["anthropic", "claude-haiku-3-5"],

12001228

},

12011229

{

12021230

name: "openai model not found",

@@ -1696,7 +1724,7 @@ describe("runWithModelFallback", () => {

16961724

],

16971725

},

16981726

{

1699-

name: "different provider skips configured fallbacks",

1727+

name: "different provider uses configured primary when no fallbacks exist",

17001728

cfg: makeCfg({

17011729

agents: {

17021730

defaults: {