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

推荐订阅源

人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
量子位
GbyAI
GbyAI
腾讯CDC
T
Tailwind CSS Blog
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
D
Docker
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
Jina AI
Jina AI
IT之家
IT之家
Y
Y Combinator 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
test: tighten codex binding assertions · openclaw/opencla...
steipete · 2026-05-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -212,8 +212,7 @@ describe("Auth profile runtime contract - Codex app-server adapter", () => {

212212

await harness.completeTurn();

213213

await run;

214214
215-

await expect(readCodexAppServerBinding(sessionFile)).resolves.toMatchObject({

216-

authProfileId: AUTH_PROFILE_RUNTIME_CONTRACT.openAiCodexProfileId,

217-

});

215+

const binding = await readCodexAppServerBinding(sessionFile);

216+

expect(binding?.authProfileId).toBe(AUTH_PROFILE_RUNTIME_CONTRACT.openAiCodexProfileId);

218217

});

219218

});

Original file line numberDiff line numberDiff line change

@@ -192,9 +192,8 @@ describe("listCodexAppServerModels", () => {

192192

},

193193

});

194194
195-

await expect(listPromise).resolves.toMatchObject({

196-

models: [{ id: "gpt-5.4" }, { id: "gpt-5.2" }],

197-

});

195+

const list = await listPromise;

196+

expect(list.models.map((model) => model.id)).toEqual(["gpt-5.4", "gpt-5.2"]);

198197

harness.client.close();

199198

startSpy.mockRestore();

200199

});

@@ -237,11 +236,10 @@ describe("listCodexAppServerModels", () => {

237236

},

238237

});

239238
240-

await expect(listPromise).resolves.toMatchObject({

241-

models: [{ id: "gpt-5.4" }],

242-

nextCursor: "page-2",

243-

truncated: true,

244-

});

239+

const list = await listPromise;

240+

expect(list.models.map((model) => model.id)).toEqual(["gpt-5.4"]);

241+

expect(list.nextCursor).toBe("page-2");

242+

expect(list.truncated).toBe(true);

245243

harness.client.close();

246244

startSpy.mockRestore();

247245

});

Original file line numberDiff line numberDiff line change

@@ -48,15 +48,13 @@ describe("codex app-server session binding", () => {

4848
4949

const binding = await readCodexAppServerBinding(sessionFile);

5050
51-

expect(binding).toMatchObject({

52-

schemaVersion: 1,

53-

threadId: "thread-123",

54-

sessionFile,

55-

cwd: tempDir,

56-

model: "gpt-5.4-codex",

57-

modelProvider: "openai",

58-

dynamicToolsFingerprint: "tools-v1",

59-

});

51+

expect(binding?.schemaVersion).toBe(1);

52+

expect(binding?.threadId).toBe("thread-123");

53+

expect(binding?.sessionFile).toBe(sessionFile);

54+

expect(binding?.cwd).toBe(tempDir);

55+

expect(binding?.model).toBe("gpt-5.4-codex");

56+

expect(binding?.modelProvider).toBe("openai");

57+

expect(binding?.dynamicToolsFingerprint).toBe("tools-v1");

6058

const bindingStat = await fs.stat(resolveCodexAppServerBindingPath(sessionFile));

6159

expect(bindingStat.isFile()).toBe(true);

6260

});

@@ -142,11 +140,9 @@ describe("codex app-server session binding", () => {

142140

const binding = await readCodexAppServerBinding(sessionFile, nativeAuthLookup);

143141
144142

expect(raw).not.toContain('"modelProvider": "openai"');

145-

expect(binding).toMatchObject({

146-

threadId: "thread-123",

147-

authProfileId: "work",

148-

model: "gpt-5.4-mini",

149-

});

143+

expect(binding?.threadId).toBe("thread-123");

144+

expect(binding?.authProfileId).toBe("work");

145+

expect(binding?.model).toBe("gpt-5.4-mini");

150146

expect(binding?.modelProvider).toBeUndefined();

151147

});

152148
Original file line numberDiff line numberDiff line change

@@ -132,7 +132,7 @@ describe("Codex app-server model provider selection", () => {

132132

},

133133

);

134134
135-

expect(request).toMatchObject({ modelProvider: "openai" });

135+

expect(request.modelProvider).toBe("openai");

136136

});

137137
138138

it("keeps public OpenAI modelProvider when no native Codex auth profile is selected", () => {

@@ -143,7 +143,7 @@ describe("Codex app-server model provider selection", () => {

143143

developerInstructions: "test instructions",

144144

});

145145
146-

expect(request).toMatchObject({ modelProvider: "openai" });

146+

expect(request.modelProvider).toBe("openai");

147147

});

148148

});

149149
Original file line numberDiff line numberDiff line change

@@ -53,12 +53,11 @@ describe("codex conversation controls", () => {

5353

"Codex permissions set to default.",

5454

);

5555
56-

await expect(readCodexAppServerBinding(sessionFile)).resolves.toMatchObject({

57-

threadId: "thread-1",

58-

serviceTier: "priority",

59-

approvalPolicy: "on-request",

60-

sandbox: "workspace-write",

61-

});

56+

const binding = await readCodexAppServerBinding(sessionFile);

57+

expect(binding?.threadId).toBe("thread-1");

58+

expect(binding?.serviceTier).toBe("priority");

59+

expect(binding?.approvalPolicy).toBe("on-request");

60+

expect(binding?.sandbox).toBe("workspace-write");

6261

});

6362
6463

it("does not persist public OpenAI provider after model changes on native auth bindings", async () => {

@@ -95,11 +94,9 @@ describe("codex conversation controls", () => {

9594

const raw = await fs.readFile(`${sessionFile}.codex-app-server.json`, "utf8");

9695

const binding = await readCodexAppServerBinding(sessionFile);

9796

expect(raw).not.toContain('"modelProvider": "openai"');

98-

expect(binding).toMatchObject({

99-

threadId: "thread-1",

100-

authProfileId: "work",

101-

model: "gpt-5.5",

102-

});

97+

expect(binding?.threadId).toBe("thread-1");

98+

expect(binding?.authProfileId).toBe("work");

99+

expect(binding?.model).toBe("gpt-5.5");

103100

expect(binding?.modelProvider).toBeUndefined();

104101

});

105102