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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
U
Unit 42
B
Blog RSS Feed
博客园 - 【当耐特】
T
Tailwind CSS Blog
V
V2EX
S
SegmentFault 最新的问题
美团技术团队
Apple Machine Learning Research
Apple Machine Learning Research
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
量子位
aimingoo的专栏
aimingoo的专栏
Stack Overflow Blog
Stack Overflow Blog
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
P
Proofpoint News Feed
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
About on SuperTechFans

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 msteams feedback assertions · openclaw/open...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -130,7 +130,14 @@ function createFeedbackInvokeContext(params: {

130130

}

131131132132

async function expectFileMissing(filePath: string) {

133-

await expect(access(filePath)).rejects.toMatchObject({ code: "ENOENT" });

133+

let error: unknown;

134+

try {

135+

await access(filePath);

136+

} catch (caught) {

137+

error = caught;

138+

}

139+

expect(error).toBeInstanceOf(Error);

140+

expect((error as NodeJS.ErrnoException).code).toBe("ENOENT");

134141

}

135142136143

async function withFeedbackHandler(params: {

@@ -189,12 +196,28 @@ describe("msteams feedback invoke authz", () => {

189196

path.join(tmpDir, "msteams_direct_owner-aad.jsonl"),

190197

"utf-8",

191198

);

192-

expect(JSON.parse(transcript.trim())).toMatchObject({

199+

const event = JSON.parse(transcript.trim()) as Record<string, unknown>;

200+

expect(Object.keys(event).sort()).toEqual([

201+

"agentId",

202+

"comment",

203+

"conversationId",

204+

"event",

205+

"messageId",

206+

"sessionKey",

207+

"ts",

208+

"type",

209+

"value",

210+

]);

211+

expect(typeof event.ts).toBe("number");

212+

expect({ ...event, ts: 0 }).toEqual({

213+

type: "custom",

193214

event: "feedback",

215+

ts: 0,

194216

messageId: "bot-msg-1",

195217

value: "positive",

196218

comment: "allowed feedback",

197219

sessionKey: "msteams:direct:owner-aad",

220+

agentId: "default",

198221

conversationId: "a:personal-chat",

199222

});

200223

expect(originalRun).not.toHaveBeenCalled();

@@ -232,11 +255,29 @@ describe("msteams feedback invoke authz", () => {

232255

path.join(tmpDir, "msteams_direct_owner-aad.jsonl"),

233256

"utf-8",

234257

);

235-

expect(JSON.parse(transcript.trim())).toMatchObject({

258+

const event = JSON.parse(transcript.trim()) as Record<string, unknown>;

259+

expect(Object.keys(event).sort()).toEqual([

260+

"agentId",

261+

"comment",

262+

"conversationId",

263+

"event",

264+

"messageId",

265+

"sessionKey",

266+

"ts",

267+

"type",

268+

"value",

269+

]);

270+

expect(typeof event.ts).toBe("number");

271+

expect({ ...event, ts: 0 }).toEqual({

272+

type: "custom",

236273

event: "feedback",

274+

ts: 0,

275+

messageId: "bot-msg-1",

237276

value: "positive",

238277

comment: "allowed dm feedback",

239278

sessionKey: "msteams:direct:owner-aad",

279+

agentId: "default",

280+

conversationId: "a:personal-chat",

240281

});

241282

expect(originalRun).not.toHaveBeenCalled();

242283

},