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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
MongoDB | Blog
MongoDB | Blog
腾讯CDC
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
Engineering at Meta
Engineering at Meta
C
Check Point Blog
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 司徒正美

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
Add WhatsApp approval QA scenarios (#87782) · openclaw/op...
kevinslin · 2026-05-29 · via Recent Commits to openclaw:main

@@ -156,9 +156,88 @@ describe("WhatsApp QA live runtime", () => {

156156

expect(scenarios.map(({ id }) => id)).toEqual(["whatsapp-canary", "whatsapp-pairing-block"]);

157157

});

158158159+

it("reports standard WhatsApp live transport scenario coverage", () => {

160+

expect(testing.WHATSAPP_QA_STANDARD_SCENARIO_IDS).toEqual([

161+

"canary",

162+

"allowlist-block",

163+

"mention-gating",

164+

]);

165+

});

166+167+

it("keeps native approval scenarios out of default WhatsApp selection", () => {

168+

const expectedDefaultIds = [

169+

"whatsapp-canary",

170+

"whatsapp-pairing-block",

171+

"whatsapp-mention-gating",

172+

];

173+174+

expect(testing.findScenarios().map(({ id }) => id)).toEqual(expectedDefaultIds);

175+

expect(testing.findScenarios([]).map(({ id }) => id)).toEqual(expectedDefaultIds);

176+

});

177+178+

it("selects native approval scenarios by id without changing standard coverage", () => {

179+

const scenarios = testing.findScenarios([

180+

"whatsapp-approval-exec-native",

181+

"whatsapp-approval-plugin-native",

182+

]);

183+184+

expect(scenarios.map(({ id }) => id)).toEqual([

185+

"whatsapp-approval-exec-native",

186+

"whatsapp-approval-plugin-native",

187+

]);

188+

expect(testing.WHATSAPP_QA_STANDARD_SCENARIO_IDS).not.toContain(

189+

"whatsapp-approval-exec-native",

190+

);

191+

expect(scenarios.map((scenario) => scenario.buildRun().kind)).toEqual(["approval", "approval"]);

192+

});

193+194+

it("enables WhatsApp native exec and plugin approval delivery for approval scenarios", () => {

195+

const cfg = testing.buildWhatsAppQaConfig(

196+

{},

197+

{

198+

allowFrom: ["+15550000001"],

199+

authDir: "/tmp/openclaw-whatsapp-qa-auth",

200+

dmPolicy: "allowlist",

201+

overrides: {

202+

approvals: {

203+

exec: true,

204+

plugin: true,

205+

},

206+

},

207+

sutAccountId: "sut",

208+

},

209+

);

210+211+

expect(cfg.approvals?.exec).toEqual({ enabled: true, mode: "session" });

212+

expect(cfg.approvals?.plugin).toEqual({ enabled: true, mode: "session" });

213+

const account = cfg.channels?.whatsapp?.accounts?.sut;

214+

expect(account?.allowFrom).toEqual(["+15550000001"]);

215+

expect(account).not.toHaveProperty("execApprovals");

216+

});

217+218+

it("matches native approval resolved text emitted by the WhatsApp approval handler", () => {

219+

expect(

220+

testing.matchesWhatsAppApprovalResolvedText({

221+

approvalId: "whatsapp-qa-exec-123",

222+

approvalKind: "exec",

223+

text: "✅ Exec approval allow-once. ID: whatsapp-qa-exec-123",

224+

}),

225+

).toBe(true);

226+

expect(

227+

testing.matchesWhatsAppApprovalResolvedText({

228+

approvalId: "whatsapp-qa-plugin-123",

229+

approvalKind: "plugin",

230+

text: "✅ Plugin approval allowed once. ID: whatsapp-qa-plugin-123",

231+

}),

232+

).toBe(true);

233+

});

234+159235

it("uses automatic visible replies for WhatsApp group mention gating", () => {

160236

const [scenario] = testing.findScenarios(["whatsapp-mention-gating"]);

161237

const scenarioRun = scenario.buildRun();

238+

if (scenarioRun.kind === "approval") {

239+

throw new Error("whatsapp-mention-gating unexpectedly built an approval scenario run");

240+

}

162241

expect(scenarioRun.input).toContain("openclawqa reply with only this exact marker");

163242

expect(scenarioRun.input).not.toContain("visible reply tool check");

164243