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

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
美团技术团队
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
M
MIT News - Artificial intelligence
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
A
About on SuperTechFans
Recent Announcements
Recent Announcements
D
Docker
Vercel News
Vercel News
Engineering at Meta
Engineering at Meta
腾讯CDC
Martin Fowler
Martin Fowler
阮一峰的网络日志
阮一峰的网络日志

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): support thumb approval reactions (#85477)...
kevinslin · 2026-05-24 · via Recent Commits to openclaw:main

@@ -279,6 +279,8 @@ Generic model:

279279

- Slack plugin approvals can use Slack's native approval client when the request comes from Slack

280280

and Slack plugin approvers resolve; `approvals.plugin` can also route plugin approvals to Slack

281281

sessions or targets even when Slack exec approvals are disabled

282+

- WhatsApp emoji approval delivery is gated by `approvals.exec` and `approvals.plugin`, while

283+

approval reactions require explicit WhatsApp approvers from `channels.whatsapp.allowFrom` or `"*"`

282284283285

Native approval clients auto-enable DM-first delivery when all of these are true:

284286

@@ -296,6 +298,7 @@ FAQ: [Why are there two exec approval configs for chat approvals?](/help/faq-fir

296298

- Discord: `channels.discord.execApprovals.*`

297299

- Slack: `channels.slack.execApprovals.*`

298300

- Telegram: `channels.telegram.execApprovals.*`

301+

- WhatsApp: use `approvals.exec` and `approvals.plugin` to route approval prompts to WhatsApp

299302300303

These native approval clients add DM routing and optional channel fanout on top of the shared

301304

same-chat `/approve` flow and shared approval buttons.

@@ -313,6 +316,9 @@ Shared behavior:

313316

routing, not Slack exec approvers

314317

- Slack native buttons preserve approval id kind, so `plugin:` ids can resolve plugin approvals

315318

without a second Slack-local fallback layer

319+

- WhatsApp emoji approvals handle both exec and plugin prompts only when the matching top-level

320+

forwarding family is enabled and routes to WhatsApp; target-only WhatsApp forwarding stays on

321+

the shared forwarding path unless it matches the same native origin target

316322

- Matrix native DM/channel routing and reaction shortcuts handle both exec and plugin approvals;

317323

plugin authorization still comes from `channels.matrix.dm.allowFrom`

318324

- Matrix native prompts include `com.openclaw.approval` custom event content on the first prompt

@@ -358,6 +364,70 @@ Security notes:

358364

- Same-UID peer check.

359365

- Challenge/response (nonce + HMAC token + request hash) + short TTL.

360366367+

## FAQ

368+369+

### When would `accountId` and `threadId` be used on an approval target?

370+371+

Use `accountId` when the channel has multiple configured identities and the approval prompt must

372+

leave through one specific account. Use `threadId` when the destination supports topics or

373+

threads and the prompt should stay inside that thread instead of the top-level chat.

374+375+

A concrete Telegram case is an operations supergroup with forum topics and two Telegram bot

376+

accounts. The `to` value names the supergroup, `accountId` selects the bot account, and `threadId`

377+

selects the forum topic:

378+379+

```json5

380+

{

381+

approvals: {

382+

exec: {

383+

enabled: true,

384+

mode: "targets",

385+

targets: [

386+

{

387+

channel: "telegram",

388+

to: "-1001234567890",

389+

accountId: "ops-bot",

390+

threadId: "77",

391+

},

392+

],

393+

},

394+

},

395+

channels: {

396+

telegram: {

397+

accounts: {

398+

default: {

399+

name: "Primary bot",

400+

botToken: "env:TELEGRAM_PRIMARY_BOT_TOKEN",

401+

},

402+

"ops-bot": {

403+

name: "Operations bot",

404+

botToken: "env:TELEGRAM_OPS_BOT_TOKEN",

405+

},

406+

},

407+

},

408+

},

409+

}

410+

```

411+412+

With that setup, forwarded exec approvals are posted by the `ops-bot` Telegram account into topic

413+

`77` of chat `-1001234567890`. A target without `accountId` uses the channel's default account, and

414+

a target without `threadId` posts to the top-level destination.

415+416+

### When approvals are sent to a session, can anyone in that session approve them?

417+418+

No. Session delivery only controls where the prompt appears. It does not by itself authorize every

419+

participant in that chat to approve.

420+421+

For generic same-chat `/approve`, the sender must already be authorized for commands in that

422+

channel session. If the channel exposes explicit approval approvers, those approvers can authorize

423+

the `/approve` action even when they are not otherwise command-authorized in that session.

424+425+

Some channels are stricter. Discord, Telegram, Matrix, Slack native approval DMs, and similar

426+

native approval clients use their resolved approver lists for approval authorization. For example,

427+

a Telegram forum-topic approval prompt can be visible to everyone in the topic, but only numeric

428+

Telegram user IDs resolved from `channels.telegram.execApprovals.approvers` or

429+

`commands.ownerAllowFrom` can approve or deny it.

430+361431

## Related

362432363433

- [Exec approvals](/tools/exec-approvals) — core policy and approval flow