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

推荐订阅源

博客园 - 三生石上(FineUI控件)
Blog — PlanetScale
Blog — PlanetScale
B
Blog
GbyAI
GbyAI
爱范儿
爱范儿
月光博客
月光博客
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
腾讯CDC
MyScale Blog
MyScale Blog
V
Visual Studio Blog
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

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
refactor: share codex harness model assertions · openclaw...
vincentkoc · 2026-06-02 · via Recent Commits to openclaw:main

@@ -8,6 +8,18 @@ import {

88

shouldSkipRetryableCodexHarnessLiveError,

99

} from "./gateway-codex-harness.live-helpers.js";

101011+

const includesExpectedCodexModelsCommandText = (text: string) =>

12+

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText));

13+14+

function expectExpectedCodexModelsCommandText(text: string): void {

15+

expect(includesExpectedCodexModelsCommandText(text)).toBe(true);

16+

}

17+18+

function expectRecognizedCodexModelsCommandText(text: string): void {

19+

expectExpectedCodexModelsCommandText(text);

20+

expect(isExpectedCodexModelsCommandText(text)).toBe(true);

21+

}

22+1123

describe("gateway codex harness live helpers", () => {

1224

it("does not skip sessions.list timeouts when the Codex subagent probe is enabled", () => {

1325

const error = new Error("gateway request timeout for sessions.list");

@@ -228,10 +240,7 @@ describe("gateway codex harness live helpers", () => {

228240

"Current active model is `codex/gpt-5.4`.",

229241

].join("\n");

230242231-

expect(

232-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

233-

).toBe(true);

234-

expect(isExpectedCodexModelsCommandText(text)).toBe(true);

243+

expectRecognizedCodexModelsCommandText(text);

235244

});

236245237246

it("accepts the configured-model fallback summary", () => {

@@ -256,10 +265,7 @@ describe("gateway codex harness live helpers", () => {

256265

"I couldn’t get a fuller model catalog from the local `codex` CLI here.",

257266

].join("\n");

258267259-

expect(

260-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

261-

).toBe(true);

262-

expect(isExpectedCodexModelsCommandText(text)).toBe(true);

268+

expectRecognizedCodexModelsCommandText(text);

263269

});

264270265271

it("accepts the current Codex agent model list from the live harness", () => {

@@ -273,10 +279,7 @@ describe("gateway codex harness live helpers", () => {

273279

"No other agent models are currently exposed for this session.",

274280

].join("\n");

275281276-

expect(

277-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

278-

).toBe(true);

279-

expect(isExpectedCodexModelsCommandText(text)).toBe(true);

282+

expectRecognizedCodexModelsCommandText(text);

280283

});

281284282285

it("accepts the singular Codex agent model list from the live harness", () => {

@@ -289,10 +292,7 @@ describe("gateway codex harness live helpers", () => {

289292

"- Configured override: `false`",

290293

].join("\n");

291294292-

expect(

293-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

294-

).toBe(true);

295-

expect(isExpectedCodexModelsCommandText(text)).toBe(true);

295+

expectRecognizedCodexModelsCommandText(text);

296296

});

297297298298

it("accepts sandbox namespace failures with current-session model fallback", () => {

@@ -316,10 +316,7 @@ describe("gateway codex harness live helpers", () => {

316316

"Current session model from OpenClaw status is `openai/gpt-5.5`.",

317317

].join("\n");

318318319-

expect(

320-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

321-

).toBe(true);

322-

expect(isExpectedCodexModelsCommandText(text)).toBe(true);

319+

expectRecognizedCodexModelsCommandText(text);

323320

});

324321325322

it("accepts missing codex CLI fallback output", () => {

@@ -348,9 +345,7 @@ describe("gateway codex harness live helpers", () => {

348345

];

349346350347

for (const text of texts) {

351-

expect(

352-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

353-

).toBe(true);

348+

expectExpectedCodexModelsCommandText(text);

354349

}

355350

expect(isExpectedCodexModelsCommandText(texts[1] ?? "")).toBe(true);

356351

expect(isExpectedCodexModelsCommandText(texts[2] ?? "")).toBe(true);

@@ -391,9 +386,7 @@ describe("gateway codex harness live helpers", () => {

391386

];

392387393388

for (const text of texts) {

394-

expect(

395-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

396-

).toBe(true);

389+

expectExpectedCodexModelsCommandText(text);

397390

}

398391

});

399392

@@ -445,10 +438,7 @@ describe("gateway codex harness live helpers", () => {

445438

"- The UI indicates `/model` is the command to change models",

446439

].join("\n");

447440448-

expect(

449-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

450-

).toBe(true);

451-

expect(isExpectedCodexModelsCommandText(text)).toBe(true);

441+

expectRecognizedCodexModelsCommandText(text);

452442

});

453443454444

it("accepts the local Codex model-cache summary", () => {

@@ -462,9 +452,7 @@ describe("gateway codex harness live helpers", () => {

462452

"This session is currently running `codex/gpt-5.4` with `low` reasoning according to `/codex status`.",

463453

].join("\n");

464454465-

expect(

466-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

467-

).toBe(true);

455+

expectExpectedCodexModelsCommandText(text);

468456

expect(isExpectedCodexModelsCommandText(text)).toBe(false);

469457

});

470458

@@ -476,9 +464,7 @@ describe("gateway codex harness live helpers", () => {

476464

"- Active model: `codex/gpt-5.4`",

477465

].join("\n");

478466479-

expect(

480-

EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),

481-

).toBe(true);

467+

expectExpectedCodexModelsCommandText(text);

482468

});

483469484470

it("rejects unrelated codex command output", () => {