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

推荐订阅源

博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
美团技术团队
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
有赞技术团队
有赞技术团队
GbyAI
GbyAI
宝玉的分享
宝玉的分享
腾讯CDC
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
月光博客
月光博客
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
Recent Announcements
Recent Announcements
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(config): share subagent model schema (#83339) · openc...
steipete · 2026-05-18 · via Recent Commits to openclaw:main

@@ -839,16 +839,6 @@ describe("resolveAgentConfig", () => {

839839

fallbacks: ["google/gemini-3-pro"],

840840

},

841841

},

842-

{

843-

id: "metadata-only-subagent",

844-

model: {

845-

primary: "anthropic/claude-sonnet-4-6",

846-

fallbacks: ["google/gemini-3-pro"],

847-

},

848-

subagents: {

849-

model: { timeoutMs: 1_000 },

850-

},

851-

},

852842

{

853843

id: "fallback-only-agent-model",

854844

model: {

@@ -883,9 +873,6 @@ describe("resolveAgentConfig", () => {

883873

expect(resolveSubagentModelFallbacksOverride(cfg, "agent-model")).toEqual([

884874

"google/gemini-3-pro",

885875

]);

886-

expect(resolveSubagentModelFallbacksOverride(cfg, "metadata-only-subagent")).toEqual([

887-

"google/gemini-3-pro",

888-

]);

889876

expect(resolveSubagentModelFallbacksOverride(cfg, "fallback-only-agent-model")).toEqual([

890877

"openai-codex/gpt-5.4",

891878

"zai/glm-5",

@@ -900,6 +887,71 @@ describe("resolveAgentConfig", () => {

900887

expect(resolveSubagentModelFallbacksOverride(cfg, "strict")).toStrictEqual([]);

901888

});

902889890+

it("uses subagent model fallbacks for auto-selected spawned subagent models", () => {

891+

const cfg: OpenClawConfig = {

892+

agents: {

893+

defaults: {

894+

model: {

895+

fallbacks: ["openai/gpt-5.4"],

896+

},

897+

subagents: {

898+

model: {

899+

primary: "kimi/kimi-code",

900+

fallbacks: ["openai-codex/gpt-5.4", "zai/glm-5"],

901+

},

902+

},

903+

},

904+

list: [

905+

{

906+

id: "research",

907+

model: {

908+

primary: "anthropic/claude-sonnet-4-6",

909+

fallbacks: ["google/gemini-3-pro"],

910+

},

911+

},

912+

{

913+

id: "fallback-only-subagent",

914+

model: {

915+

primary: "anthropic/claude-sonnet-4-6",

916+

fallbacks: ["google/gemini-3-pro"],

917+

},

918+

subagents: {

919+

model: { fallbacks: ["zai/glm-5"] },

920+

},

921+

},

922+

],

923+

},

924+

};

925+926+

expect(

927+

resolveEffectiveModelFallbacks({

928+

cfg,

929+

agentId: "research",

930+

sessionKey: "agent:research:subagent:child",

931+

hasSessionModelOverride: true,

932+

modelOverrideSource: "auto",

933+

}),

934+

).toEqual(["openai-codex/gpt-5.4", "zai/glm-5"]);

935+

expect(

936+

resolveEffectiveModelFallbacks({

937+

cfg,

938+

agentId: "research",

939+

sessionKey: "agent:research:subagent:child",

940+

hasSessionModelOverride: true,

941+

modelOverrideSource: "user",

942+

}),

943+

).toStrictEqual([]);

944+

expect(

945+

resolveEffectiveModelFallbacks({

946+

cfg,

947+

agentId: "fallback-only-subagent",

948+

sessionKey: "agent:fallback-only-subagent:subagent:child",

949+

hasSessionModelOverride: true,

950+

modelOverrideSource: "auto",

951+

}),

952+

).toEqual(["zai/glm-5"]);

953+

});

954+903955

it("resolves the subagent model config selected for isolated runs", () => {

904956

const cfg: OpenClawConfig = {

905957

agents: {

@@ -925,10 +977,10 @@ describe("resolveAgentConfig", () => {

925977

},

926978

},

927979

{

928-

id: "metadata-only-subagent",

980+

id: "fallback-only-subagent",

929981

model: "anthropic/claude-sonnet-4-6",

930982

subagents: {

931-

model: { timeoutMs: 1_000 },

983+

model: { fallbacks: [] },

932984

},

933985

},

934986

],

@@ -943,7 +995,7 @@ describe("resolveAgentConfig", () => {

943995

primary: "kimi/kimi-code",

944996

fallbacks: ["openai-codex/gpt-5.4"],

945997

});

946-

expect(resolveSubagentModelConfigSelection({ cfg, agentId: "metadata-only-subagent" })).toBe(

998+

expect(resolveSubagentModelConfigSelection({ cfg, agentId: "fallback-only-subagent" })).toBe(

947999

"anthropic/claude-sonnet-4-6",

9481000

);

9491001

expect(resolveSubagentModelConfigSelection({ cfg, agentId: "default-subagent" })).toBe(