openclaw/docs/tools
Lucas Czekaj 483fba41b9
feat(discord): add exec approval forwarding to DMs (#1621)
* feat(discord): add exec approval forwarding to DMs

Add support for forwarding exec approval requests to Discord DMs,
allowing users to approve/deny command execution via interactive buttons.

Features:
- New DiscordExecApprovalHandler that connects to gateway and listens
  for exec.approval.requested/resolved events
- Sends DMs with embeds showing command details and 3 buttons:
  Allow once, Always allow, Deny
- Configurable via channels.discord.execApprovals with:
  - enabled: boolean
  - approvers: Discord user IDs to notify
  - agentFilter: only forward for specific agents
  - sessionFilter: only forward for matching session patterns
- Updates message embed when approval is resolved or expires

Also fixes exec completion routing: when async exec completes after
approval, the heartbeat now uses a specialized prompt to ensure the
model relays the result to the user instead of responding HEARTBEAT_OK.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: generic exec approvals forwarding (#1621) (thanks @czekaj)

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-01-24 20:56:40 +00:00
..
agent-send.md feat: add agent targeting + reply overrides 2026-01-18 22:50:51 +00:00
apply-patch.md feat: notify on exec exit 2026-01-17 05:43:34 +00:00
browser-linux-troubleshooting.md fix(browser): surface detection details and docs 2026-01-16 06:57:54 +00:00
browser-login.md docs: fix browser CLI docs link 2026-01-12 02:09:10 +00:00
browser.md feat: add node browser proxy routing 2026-01-24 04:21:47 +00:00
chrome-extension.md fix(browser): make extension relay zero-config 2026-01-15 09:02:42 +00:00
clawdhub.md docs: update faq and install guidance 2026-01-13 08:03:11 +00:00
elevated.md feat: add elevated ask/full modes 2026-01-22 05:41:11 +00:00
exec-approvals.md feat(discord): add exec approval forwarding to DMs (#1621) 2026-01-24 20:56:40 +00:00
exec.md docs: align node transport with gateway ws 2026-01-22 23:10:09 +00:00
firecrawl.md feat: enhance web_fetch fallbacks 2026-01-17 00:00:49 +00:00
index.md fix: resolve session ids in session tools 2026-01-24 11:09:11 +00:00
llm-task.md fix: publish llm-task docs and harden tool 2026-01-24 01:44:51 +00:00
lobster.md fix: publish llm-task docs and harden tool 2026-01-24 01:44:51 +00:00
reactions.md docs: complete channels rename sweep 2026-01-13 08:40:39 +00:00
skills-config.md docs: clarify sandbox env + recreate guidance 2026-01-20 15:00:25 +00:00
skills.md feat: add OpenProse plugin skills 2026-01-23 00:49:40 +00:00
slash-commands.md feat(discord): add exec approval forwarding to DMs (#1621) 2026-01-24 20:56:40 +00:00
subagents.md fix: preserve subagent thread routing (#1241) 2026-01-20 17:22:07 +00:00
thinking.md feat: emit tool outputs for full verbose 2026-01-17 05:40:21 +00:00
web.md docs: consolidate faq under help 2026-01-24 09:49:38 +00:00