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

推荐订阅源

V
V2EX
宝玉的分享
宝玉的分享
Jina AI
Jina AI
IT之家
IT之家
博客园 - Franky
MyScale Blog
MyScale Blog
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
雷峰网
雷峰网
WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
美团技术团队
S
SegmentFault 最新的问题
罗磊的独立博客
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
D
Docker
博客园 - 司徒正美
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
M
MIT News - Artificial intelligence

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(xai): reject unsupported multi-agent model refs befor...
xialonglee · 2026-06-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -504,9 +504,10 @@ Legacy aliases still normalize to the canonical bundled ids:

504504

sign-in URL. xAI decides which accounts can receive OAuth API tokens, and

505505

the consent page may show Grok Build even though OpenClaw does not require

506506

the Grok Build app.

507-

- `grok-4.20-multi-agent-experimental-beta-0304` is not supported on the

508-

normal xAI provider path because it requires a different upstream API

509-

surface than the standard OpenClaw xAI transport.

507+

- OpenClaw does not currently expose the xAI multi-agent model family. xAI

508+

serves these models through the Responses API, but they do not accept the

509+

client-side or custom tools used by OpenClaw's shared agent loop. See the

510+

[xAI multi-agent limitations](https://docs.x.ai/developers/model-capabilities/text/multi-agent#limitations).

510511

- xAI Realtime voice is not registered as an OpenClaw provider yet. It

511512

needs a different bidirectional voice session contract than batch STT or

512513

streaming transcription.

Original file line numberDiff line numberDiff line change

@@ -31,6 +31,45 @@

3131

}

3232

}

3333

},

34+

"modelCatalog": {

35+

"suppressions": [

36+

{

37+

"provider": "xai",

38+

"model": "grok-4.20-multi-agent-0309",

39+

"reason": "OpenClaw does not currently support xAI multi-agent models; choose another xAI model. See https://docs.openclaw.ai/providers/xai."

40+

},

41+

{

42+

"provider": "xai",

43+

"model": "grok-4.20-multi-agent",

44+

"reason": "OpenClaw does not currently support xAI multi-agent models; choose another xAI model. See https://docs.openclaw.ai/providers/xai."

45+

},

46+

{

47+

"provider": "xai",

48+

"model": "grok-4.20-multi-agent-latest",

49+

"reason": "OpenClaw does not currently support xAI multi-agent models; choose another xAI model. See https://docs.openclaw.ai/providers/xai."

50+

},

51+

{

52+

"provider": "xai",

53+

"model": "grok-4.20-multi-agent-beta-latest",

54+

"reason": "OpenClaw does not currently support xAI multi-agent models; choose another xAI model. See https://docs.openclaw.ai/providers/xai."

55+

},

56+

{

57+

"provider": "xai",

58+

"model": "grok-4.20-multi-agent-experimental-beta-0304",

59+

"reason": "OpenClaw does not currently support xAI multi-agent models; choose another xAI model. See https://docs.openclaw.ai/providers/xai."

60+

},

61+

{

62+

"provider": "xai",

63+

"model": "grok-4.20-multi-agent-experimental-beta-latest",

64+

"reason": "OpenClaw does not currently support xAI multi-agent models; choose another xAI model. See https://docs.openclaw.ai/providers/xai."

65+

},

66+

{

67+

"provider": "xai",

68+

"model": "grok-4.20-multi-agent-beta-0309",

69+

"reason": "OpenClaw does not currently support xAI multi-agent models; choose another xAI model. See https://docs.openclaw.ai/providers/xai."

70+

}

71+

]

72+

},

3473

"syntheticAuthRefs": ["xai"],

3574

"setup": {

3675

"providers": [

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,34 @@

1+

import { readFileSync } from "node:fs";

2+

import { describe, expect, it } from "vitest";

3+
4+

const manifest = JSON.parse(

5+

readFileSync(new URL("./openclaw.plugin.json", import.meta.url), "utf8"),

6+

) as {

7+

modelCatalog?: {

8+

suppressions?: Array<{ provider?: string; model?: string }>;

9+

};

10+

};

11+
12+

const XAI_MULTI_AGENT_MODELS = [

13+

"grok-4.20-multi-agent-0309",

14+

"grok-4.20-multi-agent",

15+

"grok-4.20-multi-agent-latest",

16+

"grok-4.20-multi-agent-beta-latest",

17+

"grok-4.20-multi-agent-experimental-beta-0304",

18+

"grok-4.20-multi-agent-experimental-beta-latest",

19+

"grok-4.20-multi-agent-beta-0309",

20+

] as const;

21+
22+

describe("xAI plugin manifest", () => {

23+

it("suppresses the unsupported multi-agent model aliases", () => {

24+

const suppressionRefs = new Set(

25+

(manifest.modelCatalog?.suppressions ?? []).map(

26+

(suppression) => `${suppression.provider}/${suppression.model}`,

27+

),

28+

);

29+
30+

for (const model of XAI_MULTI_AGENT_MODELS) {

31+

expect(suppressionRefs).toContain(`xai/${model}`);

32+

}

33+

});

34+

});

Original file line numberDiff line numberDiff line change

@@ -61,6 +61,10 @@ vi.mock("../model-suppression.js", () => {

6161

return undefined;

6262

}

6363
64+

function isUnsupportedXaiMultiAgentModel(provider?: string, id?: string): boolean {

65+

return provider === "xai" && id?.trim().toLowerCase() === "grok-4.20-multi-agent-0309";

66+

}

67+
6468

return {

6569

shouldSuppressBuiltInModel: ({

6670

provider,

@@ -79,6 +83,9 @@ vi.mock("../model-suppression.js", () => {

7983

) {

8084

return true;

8185

}

86+

if (isUnsupportedXaiMultiAgentModel(provider, id)) {

87+

return true;

88+

}

8289

return (

8390

(provider === "qwen" || provider === "modelstudio") &&

8491

id?.trim().toLowerCase() === "qwen3.6-plus" &&

@@ -92,7 +99,7 @@ vi.mock("../model-suppression.js", () => {

9299

) {

93100

return true;

94101

}

95-

return false;

102+

return isUnsupportedXaiMultiAgentModel(provider, id);

96103

},

97104

buildSuppressedBuiltInModelError: ({

98105

provider,

@@ -116,6 +123,9 @@ vi.mock("../model-suppression.js", () => {

116123

) {

117124

return `Unknown model: ${provider}/gpt-5.3-codex-spark. gpt-5.3-codex-spark is available only through ChatGPT/Codex OAuth. Run \`openclaw models auth login --provider openai\` and use openai/gpt-5.3-codex-spark with that OAuth profile; OpenAI API-key auth cannot use this model.`;

118125

}

126+

if (isUnsupportedXaiMultiAgentModel(provider, id)) {

127+

return "Unknown model: xai/grok-4.20-multi-agent-0309. OpenClaw does not currently support xAI multi-agent models; choose another xAI model. See https://docs.openclaw.ai/providers/xai.";

128+

}

119129

return undefined;

120130

},

121131

};

@@ -3451,6 +3461,27 @@ describe("resolveModel", () => {

34513461

);

34523462

});

34533463
3464+

it("does not build a configured fallback for unsupported xAI multi-agent models", () => {

3465+

const cfg = {

3466+

models: {

3467+

providers: {

3468+

xai: {

3469+

baseUrl: "https://api.x.ai/v1",

3470+

api: "openai-completions",

3471+

models: [],

3472+

},

3473+

},

3474+

},

3475+

} as unknown as OpenClawConfig;

3476+
3477+

const result = resolveModelForTest("xai", "grok-4.20-multi-agent-0309", "/tmp/agent", cfg);

3478+
3479+

expect(result.model).toBeUndefined();

3480+

expect(result.error).toBe(

3481+

"Unknown model: xai/grok-4.20-multi-agent-0309. OpenClaw does not currently support xAI multi-agent models; choose another xAI model. See https://docs.openclaw.ai/providers/xai.",

3482+

);

3483+

});

3484+
34543485

it("rejects stale openai gpt-5.3-codex-spark discovery rows", () => {

34553486

mockDiscoveredModel(discoverModels, {

34563487

provider: "openai",