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

推荐订阅源

博客园_首页
J
Java Code Geeks
博客园 - 聂微东
量子位
C
Check Point Blog
T
The Blog of Author Tim Ferriss
T
Tailwind CSS Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
B
Blog
罗磊的独立博客
腾讯CDC
GbyAI
GbyAI
博客园 - 【当耐特】
A
About on SuperTechFans
M
MIT News - Artificial intelligence
U
Unit 42
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
S
SegmentFault 最新的问题
有赞技术团队
有赞技术团队

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): restore codex mini oauth route · openclaw/op...
steipete · 2026-04-30 · via Recent Commits to openclaw:main

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

6060

) {

6161

return true;

6262

}

63-

if (provider === "openai-codex" && id?.trim().toLowerCase() === "gpt-5.4-mini") {

64-

return true;

65-

}

6663

return (

6764

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

6865

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

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

7875

) {

7976

return true;

8077

}

81-

if (provider === "openai-codex" && id?.trim().toLowerCase() === "gpt-5.4-mini") {

82-

return true;

83-

}

8478

return false;

8579

},

8680

buildSuppressedBuiltInModelError: ({

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

9993

) {

10094

return "Unknown model: qwen/qwen3.6-plus. qwen3.6-plus is not supported on the Qwen Coding Plan endpoint; use a Standard pay-as-you-go Qwen endpoint or choose qwen/qwen3.5-plus.";

10195

}

102-

if (provider === "openai-codex" && id?.trim().toLowerCase() === "gpt-5.4-mini") {

103-

return "Unknown model: openai-codex/gpt-5.4-mini. gpt-5.4-mini is not supported by the OpenAI Codex OAuth route. Use openai/gpt-5.4-mini with an OpenAI API key or openai-codex/gpt-5.5 with Codex OAuth.";

104-

}

10596

if (

10697

(provider === "openai" ||

10798

provider === "azure-openai-responses" ||

@@ -369,7 +360,7 @@ describe("resolveModel", () => {

369360

);

370361

});

371362372-

it("#74451: suppresses explicitly configured openai-codex/gpt-5.4-mini despite inline entry", () => {

363+

it("#74451: resolves explicitly configured openai-codex/gpt-5.4-mini inline entries", () => {

373364

const cfg = {

374365

models: {

375366

providers: {

@@ -391,10 +382,14 @@ describe("resolveModel", () => {

391382392383

const result = resolveModelForTest("openai-codex", "gpt-5.4-mini", "/tmp/agent", cfg);

393384394-

expect(result.model).toBeUndefined();

395-

expect(result.error).toBe(

396-

"Unknown model: openai-codex/gpt-5.4-mini. gpt-5.4-mini is not supported by the OpenAI Codex OAuth route. Use openai/gpt-5.4-mini with an OpenAI API key or openai-codex/gpt-5.5 with Codex OAuth.",

397-

);

385+

expect(result.error).toBeUndefined();

386+

expect(result.model).toMatchObject({

387+

provider: "openai-codex",

388+

id: "gpt-5.4-mini",

389+

api: "openai-codex-responses",

390+

contextWindow: 400_000,

391+

maxTokens: 128_000,

392+

});

398393

});

399394400395

it("normalizes Google fallback baseUrls for custom providers", () => {

@@ -1542,15 +1537,17 @@ describe("resolveModel", () => {

15421537

});

15431538

});

154415391545-

it("does not build an openai-codex fallback for unsupported gpt-5.4-mini", () => {

1540+

it("builds an openai-codex fallback for gpt-5.4-mini", () => {

15461541

mockOpenAICodexTemplateModel(discoverModels);

1547154215481543

const result = resolveModelForTest("openai-codex", "gpt-5.4-mini", "/tmp/agent");

154915441550-

expect(result.model).toBeUndefined();

1551-

expect(result.error).toBe(

1552-

"Unknown model: openai-codex/gpt-5.4-mini. gpt-5.4-mini is not supported by the OpenAI Codex OAuth route. Use openai/gpt-5.4-mini with an OpenAI API key or openai-codex/gpt-5.5 with Codex OAuth.",

1553-

);

1545+

expect(result.error).toBeUndefined();

1546+

expect(result.model).toMatchObject({

1547+

...buildOpenAICodexForwardCompatExpectation("gpt-5.4-mini"),

1548+

contextWindow: 400_000,

1549+

contextTokens: 272_000,

1550+

});

15541551

});

1555155215561553

it("does not build an openai-codex fallback for removed gpt-5.3-codex-spark", () => {

@@ -1944,7 +1941,7 @@ describe("resolveModel", () => {

19441941

});

19451942

});

194619431947-

it("rejects stale discovered openai-codex gpt-5.4-mini rows", () => {

1944+

it("resolves discovered openai-codex gpt-5.4-mini rows", () => {

19481945

mockDiscoveredModel(discoverModels, {

19491946

provider: "openai-codex",

19501947

modelId: "gpt-5.4-mini",

@@ -1958,10 +1955,14 @@ describe("resolveModel", () => {

1958195519591956

const result = resolveModelForTest("openai-codex", "gpt-5.4-mini", "/tmp/agent");

196019571961-

expect(result.model).toBeUndefined();

1962-

expect(result.error).toBe(

1963-

"Unknown model: openai-codex/gpt-5.4-mini. gpt-5.4-mini is not supported by the OpenAI Codex OAuth route. Use openai/gpt-5.4-mini with an OpenAI API key or openai-codex/gpt-5.5 with Codex OAuth.",

1964-

);

1958+

expect(result.error).toBeUndefined();

1959+

expect(result.model).toMatchObject({

1960+

provider: "openai-codex",

1961+

id: "gpt-5.4-mini",

1962+

name: "GPT-5.4 Mini",

1963+

contextWindow: 64_000,

1964+

input: ["text"],

1965+

});

19651966

});

1966196719671968

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