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

推荐订阅源

爱范儿
爱范儿
量子位
人人都是产品经理
人人都是产品经理
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
Recent Announcements
Recent Announcements
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
N
Netflix TechBlog - Medium
H
Help Net Security
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
The Cloudflare Blog
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
Vercel News
Vercel News

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
test: tighten harness selection assertions · openclaw/ope...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -197,33 +197,27 @@ describe("runAgentHarnessAttempt", () => {

197197

it("uses the Codex harness by default for OpenAI agent model runs", async () => {

198198

registerSuccessfulCodexHarness();

199199200-

await expect(

201-

runAgentHarnessAttempt({

202-

...createAttemptParams(),

203-

provider: "openai",

204-

modelId: "gpt-5.4",

205-

}),

206-

).resolves.toMatchObject({

207-

sessionIdUsed: "codex",

200+

const result = await runAgentHarnessAttempt({

201+

...createAttemptParams(),

202+

provider: "openai",

203+

modelId: "gpt-5.4",

208204

});

205+

expect(result.sessionIdUsed).toBe("codex");

209206

expect(piRunAttempt).not.toHaveBeenCalled();

210207

});

211208212209

it("honors explicit PI runtime for OpenAI agent model runs", async () => {

213-

await expect(

214-

runAgentHarnessAttempt({

215-

...createAttemptParams(providerRuntimeConfig("openai", "pi")),

216-

provider: "openai",

217-

modelId: "gpt-5.4",

218-

}),

219-

).resolves.toMatchObject({

220-

sessionIdUsed: "pi",

210+

const result = await runAgentHarnessAttempt({

211+

...createAttemptParams(providerRuntimeConfig("openai", "pi")),

212+

provider: "openai",

213+

modelId: "gpt-5.4",

221214

});

215+

expect(result.sessionIdUsed).toBe("pi");

222216

expect(piRunAttempt).toHaveBeenCalledTimes(1);

223217

});

224218225219

it("annotates non-ok harness result classifications for outer model fallback", async () => {

226-

const classify = vi.fn(() => "empty" as const);

220+

const classify = vi.fn<NonNullable<AgentHarness["classify"]>>(() => "empty" as const);

227221

registerAgentHarness(

228222

{

229223

id: "codex",

@@ -239,14 +233,11 @@ describe("runAgentHarnessAttempt", () => {

239233

const params = createAttemptParams();

240234

const result = await runAgentHarnessAttempt(params);

241235242-

expect(classify).toHaveBeenCalledWith(

243-

expect.objectContaining({ sessionIdUsed: "codex" }),

244-

params,

245-

);

246-

expect(result).toMatchObject({

247-

agentHarnessId: "codex",

248-

agentHarnessResultClassification: "empty",

249-

});

236+

const classifyCall = classify.mock.calls[0];

237+

expect(classifyCall?.[0].sessionIdUsed).toBe("codex");

238+

expect(classifyCall?.[1]).toBe(params);

239+

expect(result.agentHarnessId).toBe("codex");

240+

expect(result.agentHarnessResultClassification).toBe("empty");

250241

});

251242252243

it("fails for config-forced plugin harnesses when fallback is omitted", async () => {

@@ -405,15 +396,12 @@ describe("selectAgentHarness", () => {

405396406397

expect(selectAgentHarness({ provider: "openai", modelId: "gpt-5.4", config }).id).toBe("codex");

407398408-

await expect(

409-

runAgentHarnessAttempt({

410-

...createAttemptParams(config),

411-

provider: "openai",

412-

modelId: "gpt-5.4",

413-

}),

414-

).resolves.toMatchObject({

415-

sessionIdUsed: "codex",

399+

const result = await runAgentHarnessAttempt({

400+

...createAttemptParams(config),

401+

provider: "openai",

402+

modelId: "gpt-5.4",

416403

});

404+

expect(result.sessionIdUsed).toBe("codex");

417405

expect(piRunAttempt).not.toHaveBeenCalled();

418406

});

419407