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

推荐订阅源

Security Latest
Security Latest
Recorded Future
Recorded Future
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
P
Privacy & Cybersecurity Law Blog
WordPress大学
WordPress大学
Know Your Adversary
Know Your Adversary
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
量子位
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tor Project blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
T
Threatpost
T
Tenable Blog
有赞技术团队
有赞技术团队
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
C
Cisco Blogs
H
Heimdal Security Blog
Attack and Defense Labs
Attack and Defense Labs
A
About on SuperTechFans
Last Week in AI
Last Week in AI
N
News and Events Feed by Topic
T
Threat Research - Cisco Blogs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
I
Intezer
V
V2EX
Cyberwarzone
Cyberwarzone
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
B
Blog RSS Feed
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
U
Unit 42
PCI Perspectives
PCI Perspectives
P
Privacy International News Feed
D
Docker

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
docs(tools): split exec-approvals into core + advanced (safe bins, fo… · openclaw/openclaw@0054818
vincentkoc · 2026-04-24 · via Recent Commits to openclaw:main

@@ -0,0 +1,342 @@

1+

---

2+

summary: "Advanced exec approvals: safe bins, interpreter binding, approval forwarding, native delivery"

3+

read_when:

4+

- Configuring safe bins or custom safe-bin profiles

5+

- Forwarding approvals to Slack/Discord/Telegram or other chat channels

6+

- Implementing a native approval client for a channel

7+

title: "Exec approvals — advanced"

8+

---

9+10+

Advanced exec-approval topics: the `safeBins` fast-path, interpreter/runtime

11+

binding, and approval-forwarding to chat channels (including native delivery).

12+

For the core policy and approval flow, see [Exec approvals](/tools/exec-approvals).

13+14+

## Safe bins (stdin-only)

15+16+

`tools.exec.safeBins` defines a small list of **stdin-only** binaries (for

17+

example `cut`) that can run in allowlist mode **without** explicit allowlist

18+

entries. Safe bins reject positional file args and path-like tokens, so they

19+

can only operate on the incoming stream. Treat this as a narrow fast-path for

20+

stream filters, not a general trust list.

21+22+

<Warning>

23+

Do **not** add interpreter or runtime binaries (for example `python3`, `node`,

24+

`ruby`, `bash`, `sh`, `zsh`) to `safeBins`. If a command can evaluate code,

25+

execute subcommands, or read files by design, prefer explicit allowlist entries

26+

and keep approval prompts enabled. Custom safe bins must define an explicit

27+

profile in `tools.exec.safeBinProfiles.<bin>`.

28+

</Warning>

29+30+

Default safe bins:

31+32+

[//]: # "SAFE_BIN_DEFAULTS:START"

33+34+

`cut`, `uniq`, `head`, `tail`, `tr`, `wc`

35+36+

[//]: # "SAFE_BIN_DEFAULTS:END"

37+38+

`grep` and `sort` are not in the default list. If you opt in, keep explicit

39+

allowlist entries for their non-stdin workflows. For `grep` in safe-bin mode,

40+

provide the pattern with `-e`/`--regexp`; positional pattern form is rejected

41+

so file operands cannot be smuggled as ambiguous positionals.

42+43+

### Argv validation and denied flags

44+45+

Validation is deterministic from argv shape only (no host filesystem existence

46+

checks), which prevents file-existence oracle behavior from allow/deny

47+

differences. File-oriented options are denied for default safe bins; long

48+

options are validated fail-closed (unknown flags and ambiguous abbreviations are

49+

rejected).

50+51+

Denied flags by safe-bin profile:

52+53+

[//]: # "SAFE_BIN_DENIED_FLAGS:START"

54+55+

- `grep`: `--dereference-recursive`, `--directories`, `--exclude-from`, `--file`, `--recursive`, `-R`, `-d`, `-f`, `-r`

56+

- `jq`: `--argfile`, `--from-file`, `--library-path`, `--rawfile`, `--slurpfile`, `-L`, `-f`

57+

- `sort`: `--compress-program`, `--files0-from`, `--output`, `--random-source`, `--temporary-directory`, `-T`, `-o`

58+

- `wc`: `--files0-from`

59+60+

[//]: # "SAFE_BIN_DENIED_FLAGS:END"

61+62+

Safe bins also force argv tokens to be treated as **literal text** at execution

63+

time (no globbing and no `$VARS` expansion) for stdin-only segments, so patterns

64+

like `*` or `$HOME/...` cannot be used to smuggle file reads.

65+66+

### Trusted binary directories

67+68+

Safe bins must resolve from trusted binary directories (system defaults plus

69+

optional `tools.exec.safeBinTrustedDirs`). `PATH` entries are never auto-trusted.

70+

Default trusted directories are intentionally minimal: `/bin`, `/usr/bin`. If

71+

your safe-bin executable lives in package-manager/user paths (for example

72+

`/opt/homebrew/bin`, `/usr/local/bin`, `/opt/local/bin`, `/snap/bin`), add them

73+

explicitly to `tools.exec.safeBinTrustedDirs`.

74+75+

### Shell chaining, wrappers, and multiplexers

76+77+

Shell chaining (`&&`, `||`, `;`) is allowed when every top-level segment

78+

satisfies the allowlist (including safe bins or skill auto-allow). Redirections

79+

remain unsupported in allowlist mode. Command substitution (`$()` / backticks) is

80+

rejected during allowlist parsing, including inside double quotes; use single

81+

quotes if you need literal `$()` text.

82+83+

On macOS companion-app approvals, raw shell text containing shell control or

84+

expansion syntax (`&&`, `||`, `;`, `|`, `` ` ``, `$`, `<`, `>`, `(`, `)`) is

85+

treated as an allowlist miss unless the shell binary itself is allowlisted.

86+87+

For shell wrappers (`bash|sh|zsh ... -c/-lc`), request-scoped env overrides are

88+

reduced to a small explicit allowlist (`TERM`, `LANG`, `LC_*`, `COLORTERM`,

89+

`NO_COLOR`, `FORCE_COLOR`).

90+91+

For `allow-always` decisions in allowlist mode, known dispatch wrappers (`env`,

92+

`nice`, `nohup`, `stdbuf`, `timeout`) persist the inner executable path instead

93+

of the wrapper path. Shell multiplexers (`busybox`, `toybox`) are unwrapped for

94+

shell applets (`sh`, `ash`, etc.) the same way. If a wrapper or multiplexer

95+

cannot be safely unwrapped, no allowlist entry is persisted automatically.

96+97+

If you allowlist interpreters like `python3` or `node`, prefer

98+

`tools.exec.strictInlineEval=true` so inline eval still requires an explicit

99+

approval. In strict mode, `allow-always` can still persist benign

100+

interpreter/script invocations, but inline-eval carriers are not persisted

101+

automatically.

102+103+

### Safe bins versus allowlist

104+105+

| Topic | `tools.exec.safeBins` | Allowlist (`exec-approvals.json`) |

106+

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

107+

| Goal | Auto-allow narrow stdin filters | Explicitly trust specific executables |

108+

| Match type | Executable name + safe-bin argv policy | Resolved executable path glob pattern |

109+

| Argument scope | Restricted by safe-bin profile and literal-token rules | Path match only; arguments are otherwise your responsibility |

110+

| Typical examples | `head`, `tail`, `tr`, `wc` | `jq`, `python3`, `node`, `ffmpeg`, custom CLIs |

111+

| Best use | Low-risk text transforms in pipelines | Any tool with broader behavior or side effects |

112+113+

Configuration location:

114+115+

- `safeBins` comes from config (`tools.exec.safeBins` or per-agent `agents.list[].tools.exec.safeBins`).

116+

- `safeBinTrustedDirs` comes from config (`tools.exec.safeBinTrustedDirs` or per-agent `agents.list[].tools.exec.safeBinTrustedDirs`).

117+

- `safeBinProfiles` comes from config (`tools.exec.safeBinProfiles` or per-agent `agents.list[].tools.exec.safeBinProfiles`). Per-agent profile keys override global keys.

118+

- allowlist entries live in host-local `~/.openclaw/exec-approvals.json` under `agents.<id>.allowlist` (or via Control UI / `openclaw approvals allowlist ...`).

119+

- `openclaw security audit` warns with `tools.exec.safe_bins_interpreter_unprofiled` when interpreter/runtime bins appear in `safeBins` without explicit profiles.

120+

- `openclaw doctor --fix` can scaffold missing custom `safeBinProfiles.<bin>` entries as `{}` (review and tighten afterward). Interpreter/runtime bins are not auto-scaffolded.

121+122+

Custom profile example:

123+124+

```json5

125+

{

126+

tools: {

127+

exec: {

128+

safeBins: ["jq", "myfilter"],

129+

safeBinProfiles: {

130+

myfilter: {

131+

minPositional: 0,

132+

maxPositional: 0,

133+

allowedValueFlags: ["-n", "--limit"],

134+

deniedFlags: ["-f", "--file", "-c", "--command"],

135+

},

136+

},

137+

},

138+

},

139+

}

140+

```

141+142+

If you explicitly opt `jq` into `safeBins`, OpenClaw still rejects the `env` builtin in safe-bin

143+

mode so `jq -n env` cannot dump the host process environment without an explicit allowlist path

144+

or approval prompt.

145+146+

## Interpreter/runtime commands

147+148+

Approval-backed interpreter/runtime runs are intentionally conservative:

149+150+

- Exact argv/cwd/env context is always bound.

151+

- Direct shell script and direct runtime file forms are best-effort bound to one concrete local

152+

file snapshot.

153+

- Common package-manager wrapper forms that still resolve to one direct local file (for example

154+

`pnpm exec`, `pnpm node`, `npm exec`, `npx`) are unwrapped before binding.

155+

- If OpenClaw cannot identify exactly one concrete local file for an interpreter/runtime command

156+

(for example package scripts, eval forms, runtime-specific loader chains, or ambiguous multi-file

157+

forms), approval-backed execution is denied instead of claiming semantic coverage it does not

158+

have.

159+

- For those workflows, prefer sandboxing, a separate host boundary, or an explicit trusted

160+

allowlist/full workflow where the operator accepts the broader runtime semantics.

161+162+

When approvals are required, the exec tool returns immediately with an approval id. Use that id to

163+

correlate later system events (`Exec finished` / `Exec denied`). If no decision arrives before the

164+

timeout, the request is treated as an approval timeout and surfaced as a denial reason.

165+166+

### Followup delivery behavior

167+168+

After an approved async exec finishes, OpenClaw sends a followup `agent` turn to the same session.

169+170+

- If a valid external delivery target exists (deliverable channel plus target `to`), followup delivery uses that channel.

171+

- In webchat-only or internal-session flows with no external target, followup delivery stays session-only (`deliver: false`).

172+

- If a caller explicitly requests strict external delivery with no resolvable external channel, the request fails with `INVALID_REQUEST`.

173+

- If `bestEffortDeliver` is enabled and no external channel can be resolved, delivery is downgraded to session-only instead of failing.

174+175+

## Approval forwarding to chat channels

176+177+

You can forward exec approval prompts to any chat channel (including plugin channels) and approve

178+

them with `/approve`. This uses the normal outbound delivery pipeline.

179+180+

Config:

181+182+

```json5

183+

{

184+

approvals: {

185+

exec: {

186+

enabled: true,

187+

mode: "session", // "session" | "targets" | "both"

188+

agentFilter: ["main"],

189+

sessionFilter: ["discord"], // substring or regex

190+

targets: [

191+

{ channel: "slack", to: "U12345678" },

192+

{ channel: "telegram", to: "123456789" },

193+

],

194+

},

195+

},

196+

}

197+

```

198+199+

Reply in chat:

200+201+

```

202+

/approve <id> allow-once

203+

/approve <id> allow-always

204+

/approve <id> deny

205+

```

206+207+

The `/approve` command handles both exec approvals and plugin approvals. If the ID does not match a pending exec approval, it automatically checks plugin approvals instead.

208+209+

### Plugin approval forwarding

210+211+

Plugin approval forwarding uses the same delivery pipeline as exec approvals but has its own

212+

independent config under `approvals.plugin`. Enabling or disabling one does not affect the other.

213+214+

```json5

215+

{

216+

approvals: {

217+

plugin: {

218+

enabled: true,

219+

mode: "targets",

220+

agentFilter: ["main"],

221+

targets: [

222+

{ channel: "slack", to: "U12345678" },

223+

{ channel: "telegram", to: "123456789" },

224+

],

225+

},

226+

},

227+

}

228+

```

229+230+

The config shape is identical to `approvals.exec`: `enabled`, `mode`, `agentFilter`,

231+

`sessionFilter`, and `targets` work the same way.

232+233+

Channels that support shared interactive replies render the same approval buttons for both exec and

234+

plugin approvals. Channels without shared interactive UI fall back to plain text with `/approve`

235+

instructions.

236+237+

### Same-chat approvals on any channel

238+239+

When an exec or plugin approval request originates from a deliverable chat surface, the same chat

240+

can now approve it with `/approve` by default. This applies to channels such as Slack, Matrix, and

241+

Microsoft Teams in addition to the existing Web UI and terminal UI flows.

242+243+

This shared text-command path uses the normal channel auth model for that conversation. If the

244+

originating chat can already send commands and receive replies, approval requests no longer need a

245+

separate native delivery adapter just to stay pending.

246+247+

Discord and Telegram also support same-chat `/approve`, but those channels still use their

248+

resolved approver list for authorization even when native approval delivery is disabled.

249+250+

For Telegram and other native approval clients that call the Gateway directly,

251+

this fallback is intentionally bounded to "approval not found" failures. A real

252+

exec approval denial/error does not silently retry as a plugin approval.

253+254+

### Native approval delivery

255+256+

Some channels can also act as native approval clients. Native clients add approver DMs, origin-chat

257+

fanout, and channel-specific interactive approval UX on top of the shared same-chat `/approve`

258+

flow.

259+260+

When native approval cards/buttons are available, that native UI is the primary

261+

agent-facing path. The agent should not also echo a duplicate plain chat

262+

`/approve` command unless the tool result says chat approvals are unavailable or

263+

manual approval is the only remaining path.

264+265+

Generic model:

266+267+

- host exec policy still decides whether exec approval is required

268+

- `approvals.exec` controls forwarding approval prompts to other chat destinations

269+

- `channels.<channel>.execApprovals` controls whether that channel acts as a native approval client

270+271+

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

272+273+

- the channel supports native approval delivery

274+

- approvers can be resolved from explicit `execApprovals.approvers` or that

275+

channel's documented fallback sources

276+

- `channels.<channel>.execApprovals.enabled` is unset or `"auto"`

277+278+

Set `enabled: false` to disable a native approval client explicitly. Set `enabled: true` to force

279+

it on when approvers resolve. Public origin-chat delivery stays explicit through

280+

`channels.<channel>.execApprovals.target`.

281+282+

FAQ: [Why are there two exec approval configs for chat approvals?](/help/faq#why-are-there-two-exec-approval-configs-for-chat-approvals)

283+284+

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

285+

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

286+

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

287+288+

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

289+

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

290+291+

Shared behavior:

292+293+

- Slack, Matrix, Microsoft Teams, and similar deliverable chats use the normal channel auth model

294+

for same-chat `/approve`

295+

- when a native approval client auto-enables, the default native delivery target is approver DMs

296+

- for Discord and Telegram, only resolved approvers can approve or deny

297+

- Discord approvers can be explicit (`execApprovals.approvers`) or inferred from `commands.ownerAllowFrom`

298+

- Telegram approvers can be explicit (`execApprovals.approvers`) or inferred from existing owner config (`allowFrom`, plus direct-message `defaultTo` where supported)

299+

- Slack approvers can be explicit (`execApprovals.approvers`) or inferred from `commands.ownerAllowFrom`

300+

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

301+

without a second Slack-local fallback layer

302+

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

303+

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

304+

- the requester does not need to be an approver

305+

- the originating chat can approve directly with `/approve` when that chat already supports commands and replies

306+

- native Discord approval buttons route by approval id kind: `plugin:` ids go

307+

straight to plugin approvals, everything else goes to exec approvals

308+

- native Telegram approval buttons follow the same bounded exec-to-plugin fallback as `/approve`

309+

- when native `target` enables origin-chat delivery, approval prompts include the command text

310+

- pending exec approvals expire after 30 minutes by default

311+

- if no operator UI or configured approval client can accept the request, the prompt falls back to `askFallback`

312+313+

Telegram defaults to approver DMs (`target: "dm"`). You can switch to `channel` or `both` when you

314+

want approval prompts to appear in the originating Telegram chat/topic as well. For Telegram forum

315+

topics, OpenClaw preserves the topic for the approval prompt and the post-approval follow-up.

316+317+

See:

318+319+

- [Discord](/channels/discord)

320+

- [Telegram](/channels/telegram)

321+322+

### macOS IPC flow

323+324+

```

325+

Gateway -> Node Service (WS)

326+

| IPC (UDS + token + HMAC + TTL)

327+

v

328+

Mac App (UI + approvals + system.run)

329+

```

330+331+

Security notes:

332+333+

- Unix socket mode `0600`, token stored in `exec-approvals.json`.

334+

- Same-UID peer check.

335+

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

336+337+

## Related

338+339+

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

340+

- [Exec tool](/tools/exec)

341+

- [Elevated mode](/tools/elevated)

342+

- [Skills](/tools/skills) — skill-backed auto-allow behavior