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

推荐订阅源

D
Docker
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - Franky
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
博客园 - 聂微东
S
SegmentFault 最新的问题
量子位
宝玉的分享
宝玉的分享
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
test: tighten qa aimock server assertions · openclaw/open...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -30,18 +30,27 @@ describe("qa aimock server", () => {

3030

}),

3131

});

3232

expect(response.status).toBe(200);

33-

expect(await response.json()).toMatchObject({

34-

status: "completed",

35-

model: "aimock/gpt-5.5",

36-

});

33+

const responseBody = (await response.json()) as { model?: unknown; status?: unknown };

34+

expect(responseBody.status).toBe("completed");

35+

expect(responseBody.model).toBe("aimock/gpt-5.5");

37363837

const debug = await fetch(`${server.baseUrl}/debug/last-request`);

3938

expect(debug.status).toBe(200);

40-

expect(await debug.json()).toMatchObject({

39+

const expectedBody = {

40+

model: "aimock/gpt-5.5",

41+

messages: [{ role: "user", content: "hello aimock" }],

42+

stream: false,

43+

_endpointType: "chat",

44+

};

45+

expect(await debug.json()).toEqual({

46+

raw: JSON.stringify(expectedBody),

47+

body: expectedBody,

4148

prompt: "hello aimock",

4249

allInputText: "hello aimock",

50+

toolOutput: "",

4351

model: "aimock/gpt-5.5",

4452

providerVariant: "openai",

53+

imageInputCount: 0,

4554

});

4655

} finally {

4756

await server.stop();

@@ -64,9 +73,8 @@ describe("qa aimock server", () => {

6473

}),

6574

});

6675

expect(response.status).toBe(200);

67-

expect(await response.json()).toMatchObject({

68-

status: "completed",

69-

});

76+

const responseBody = (await response.json()) as { status?: unknown };

77+

expect(responseBody.status).toBe("completed");

70787179

const debug = await fetch(`${server.baseUrl}/debug/requests`);

7280

expect(debug.status).toBe(200);

@@ -112,9 +120,21 @@ describe("qa aimock server", () => {

112120113121

const debug = await fetch(`${server.baseUrl}/debug/last-request`);

114122

expect(debug.status).toBe(200);

115-

expect(await debug.json()).toMatchObject({

123+

const expectedBody = {

124+

model: "openai-codex/gpt-5.5",

125+

messages: [{ role: "user", content: "hello codex-compatible aimock" }],

126+

stream: false,

127+

_endpointType: "chat",

128+

};

129+

expect(await debug.json()).toEqual({

130+

raw: JSON.stringify(expectedBody),

131+

body: expectedBody,

132+

prompt: "hello codex-compatible aimock",

133+

allInputText: "hello codex-compatible aimock",

134+

toolOutput: "",

116135

model: "openai-codex/gpt-5.5",

117136

providerVariant: "openai",

137+

imageInputCount: 0,

118138

});

119139

} finally {

120140

await server.stop();