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

推荐订阅源

腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
I
InfoQ
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
有赞技术团队
有赞技术团队
G
Google Developers Blog
L
LangChain Blog
博客园_首页
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
IT之家
IT之家
量子位
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网

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
feat(whatsapp): expand live QA coverage (#90480) · opencl...
mcaxtr · 2026-06-08 · via Recent Commits to openclaw:main

@@ -48,6 +48,7 @@ script aliases; both forms are supported.

4848

| `qa telegram` | Live transport lane against a real private Telegram group. |

4949

| `qa discord` | Live transport lane against a real private Discord guild channel. |

5050

| `qa slack` | Live transport lane against a real private Slack channel. |

51+

| `qa whatsapp` | Live transport lane against real WhatsApp Web accounts. |

5152

| `qa mantis` | Before and after verification runner for live transport bugs, with Discord status-reactions evidence, Crabbox desktop/browser smoke, and Slack-in-VNC smoke. See [Mantis](/concepts/mantis) and [Mantis Slack Desktop Runbook](/concepts/mantis-slack-desktop-runbook). |

52535354

## Operator flow

@@ -168,15 +169,16 @@ decision still comes from the Discord REST oracle.

168169169170

CI uses the same command surface in `.github/workflows/qa-live-transports-convex.yml`. Scheduled and default manual runs execute the fast Matrix profile with live frontier credentials, `--fast`, and `OPENCLAW_QA_MATRIX_NO_REPLY_WINDOW_MS=3000`. Manual `matrix_profile=all` fans out into the five profile shards so the exhaustive catalog can run in parallel while keeping one artifact directory per shard.

170171171-

For transport-real Telegram, Discord, and Slack smoke lanes:

172+

For transport-real Telegram, Discord, Slack, and WhatsApp smoke lanes:

172173173174

```bash

174175

pnpm openclaw qa telegram

175176

pnpm openclaw qa discord

176177

pnpm openclaw qa slack

178+

pnpm openclaw qa whatsapp

177179

```

178180179-

They target a pre-existing real channel with two bots (driver + SUT). Required env vars, scenario lists, output artifacts, and the Convex credential pool are documented in [Telegram, Discord, and Slack QA reference](#telegram-discord-and-slack-qa-reference) below.

181+

They target a pre-existing real channel with two bots or accounts (driver + SUT). Required env vars, scenario lists, output artifacts, and the Convex credential pool are documented in [Telegram, Discord, Slack, and WhatsApp QA reference](#telegram-discord-slack-and-whatsapp-qa-reference) below.

180182181183

For a full Slack desktop VM run with VNC rescue, run:

182184

@@ -276,10 +278,10 @@ coverage helpers, and scenario-selection helper from

276278

| Telegram | x | x | x | | | | | | | x | |

277279

| Discord | x | x | x | | | | | | | | x |

278280

| Slack | x | x | x | x | x | x | x | x | | | |

281+

| WhatsApp | x | x | | x | x | x | | | x | x | |

279282280283

This keeps `qa-channel` as the broad product-behavior suite while Matrix,

281-

Telegram, and future live transports share one explicit transport-contract

282-

checklist.

284+

Telegram, and other live transports share one explicit transport-contract checklist.

283285284286

For a disposable Linux VM lane without bringing Docker into the QA path, run:

285287

@@ -308,25 +310,25 @@ guest: env-based provider keys, the QA live provider config path, and

308310

`CODEX_HOME` when present. Keep `--output-dir` under the repo root so the guest

309311

can write back through the mounted workspace.

310312311-

## Telegram, Discord, and Slack QA reference

313+

## Telegram, Discord, Slack, and WhatsApp QA reference

312314313-

Matrix has a [dedicated page](/concepts/qa-matrix) because of its scenario count and Docker-backed homeserver provisioning. Telegram, Discord, and Slack are smaller - a handful of scenarios each, no profile system, against pre-existing real channels - so their reference lives here.

315+

Matrix has a [dedicated page](/concepts/qa-matrix) because of its scenario count and Docker-backed homeserver provisioning. Telegram, Discord, Slack, and WhatsApp run against pre-existing real transports, so their reference lives here.

314316315317

### Shared CLI flags

316318317319

These lanes register through `extensions/qa-lab/src/live-transports/shared/live-transport-cli.ts` and accept the same flags:

318320319-

| Flag | Default | Description |

320-

| ------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |

321-

| `--scenario <id>` | - | Run only this scenario. Repeatable. |

322-

| `--output-dir <path>` | `<repo>/.artifacts/qa-e2e/{telegram,discord,slack}-<timestamp>` | Where reports/summary/observed messages and the output log are written. Relative paths resolve against `--repo-root`. |

323-

| `--repo-root <path>` | `process.cwd()` | Repository root when invoking from a neutral cwd. |

324-

| `--sut-account <id>` | `sut` | Temporary account id inside the QA gateway config. |

325-

| `--provider-mode <mode>` | `live-frontier` | `mock-openai` or `live-frontier` (legacy `live-openai` still works). |

326-

| `--model <ref>` / `--alt-model <ref>` | provider default | Primary/alternate model refs. |

327-

| `--fast` | off | Provider fast mode where supported. |

328-

| `--credential-source <env\|convex>` | `env` | See [Convex credential pool](#convex-credential-pool). |

329-

| `--credential-role <maintainer\|ci>` | `ci` in CI, `maintainer` otherwise | Role used when `--credential-source convex`. |

321+

| Flag | Default | Description |

322+

| ------------------------------------- | -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |

323+

| `--scenario <id>` | - | Run only this scenario. Repeatable. |

324+

| `--output-dir <path>` | `<repo>/.artifacts/qa-e2e/<transport>-<timestamp>` | Where reports/summary/observed messages and the output log are written. Relative paths resolve against `--repo-root`. |

325+

| `--repo-root <path>` | `process.cwd()` | Repository root when invoking from a neutral cwd. |

326+

| `--sut-account <id>` | `sut` | Temporary account id inside the QA gateway config. |

327+

| `--provider-mode <mode>` | `live-frontier` | `mock-openai` or `live-frontier` (legacy `live-openai` still works). |

328+

| `--model <ref>` / `--alt-model <ref>` | provider default | Primary/alternate model refs. |

329+

| `--fast` | off | Provider fast mode where supported. |

330+

| `--credential-source <env\|convex>` | `env` | See [Convex credential pool](#convex-credential-pool). |

331+

| `--credential-role <maintainer\|ci>` | `ci` in CI, `maintainer` otherwise | Role used when `--credential-source convex`. |

330332331333

Each lane exits non-zero on any failed scenario. `--allow-failures` writes artifacts without setting a failing exit code.

332334

@@ -688,22 +690,52 @@ Required env when `--credential-source env`:

688690689691

Optional:

690692691-

- `OPENCLAW_QA_WHATSAPP_GROUP_JID` enables `whatsapp-mention-gating`.

693+

- `OPENCLAW_QA_WHATSAPP_GROUP_JID` enables group scenarios such as

694+

`whatsapp-mention-gating` and `whatsapp-group-allowlist-block`.

692695

- `OPENCLAW_QA_WHATSAPP_CAPTURE_CONTENT=1` keeps message bodies in

693696

observed-message artifacts.

694697695-

Scenarios (`extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.runtime.ts`):

696-697-

- `whatsapp-canary`

698-

- `whatsapp-pairing-block`

699-

- `whatsapp-mention-gating`

700-

- `whatsapp-approval-exec-native` - opt-in native WhatsApp exec approval

701-

scenario. Requests an exec approval through the gateway, verifies the

702-

WhatsApp message has native reaction approval affordances, resolves it, and

703-

verifies the resolved WhatsApp follow-up.

704-

- `whatsapp-approval-plugin-native` - opt-in native WhatsApp plugin approval

705-

scenario. Enables exec and plugin approval forwarding together, then verifies

706-

the same pending/resolved native WhatsApp path.

698+

Scenario catalog (`extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.runtime.ts`):

699+700+

- Baseline and group gating: `whatsapp-canary`, `whatsapp-pairing-block`,

701+

`whatsapp-mention-gating`, `whatsapp-top-level-reply-shape`,

702+

`whatsapp-restart-resume`, `whatsapp-group-allowlist-block`.

703+

- Native commands: `whatsapp-help-command`, `whatsapp-status-command`,

704+

`whatsapp-commands-command`, `whatsapp-tools-compact-command`,

705+

`whatsapp-whoami-command`, `whatsapp-context-command`,

706+

`whatsapp-native-new-command`.

707+

- Reply and final-output behavior: `whatsapp-tool-only-usage-footer`,

708+

`whatsapp-reply-to-message`, `whatsapp-reply-context-isolation`,

709+

`whatsapp-reply-delivery-shape`, `whatsapp-stream-final-message-accounting`.

710+

- Inbound media and structured messages: `whatsapp-inbound-image-caption`,

711+

`whatsapp-audio-preflight`, `whatsapp-inbound-structured-messages`,

712+

`whatsapp-group-audio-gating`. These send real WhatsApp image, audio,

713+

document, location, contact, and sticker events through the driver.

714+

- Outbound Gateway and message action coverage:

715+

`whatsapp-outbound-media-matrix`,

716+

`whatsapp-outbound-document-preserves-filename`, `whatsapp-outbound-poll`,

717+

`whatsapp-message-actions`.

718+

- Access-control coverage: `whatsapp-access-control-dm-open`,

719+

`whatsapp-access-control-dm-disabled`, `whatsapp-access-control-group-open`,

720+

`whatsapp-access-control-group-disabled`, `whatsapp-group-allowlist-block`.

721+

- Native approvals: `whatsapp-approval-exec-deny-native`,

722+

`whatsapp-approval-exec-native`, `whatsapp-approval-exec-reaction-native`,

723+

`whatsapp-approval-plugin-native`.

724+

- Status reactions: `whatsapp-status-reactions`.

725+726+

The catalog currently contains 35 scenarios. The `live-frontier` default lane is

727+

kept small at 8 scenarios for fast smoke coverage. The `mock-openai` default

728+

lane runs 29 deterministic scenarios through the real WhatsApp transport while

729+

mocking only model output. Approval scenarios and a few heavier/blocking checks

730+

remain explicit by scenario id.

731+732+

The WhatsApp QA driver observes structured live events (`text`, `media`,

733+

`location`, `reaction`, and `poll`) and can actively send media, polls,

734+

contacts, locations, and stickers. QA Lab imports that driver through the

735+

`@openclaw/whatsapp/api.js` package surface instead of reaching into private

736+

WhatsApp runtime files. Message content is redacted by default. Outbound

737+

poll and upload-file coverage run through deterministic gateway `poll` and

738+

`message.action` calls instead of model-prompt-only tool invocation.

707739708740

Output artifacts:

709741