mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-20 21:51:28 +00:00
matrix: anchor approval reactions to prompt events
This commit is contained in:
@@ -19,16 +19,6 @@ packaged builds do not need a separate install.
|
||||
If you are on an older build or a custom install that excludes Matrix, install
|
||||
it manually:
|
||||
|
||||
## Exec approvals
|
||||
|
||||
When `channels.matrix.execApprovals.enabled` is on, Matrix approval prompts seed reaction shortcuts on the pending approval message:
|
||||
|
||||
- `✅` = allow once
|
||||
- `❌` = deny
|
||||
- `♾️` = allow always when that decision is allowed by the effective exec policy
|
||||
|
||||
The original `/approve ...` commands stay in the message as a fallback.
|
||||
|
||||
Install from npm:
|
||||
|
||||
```bash
|
||||
@@ -689,7 +679,13 @@ Delivery rules:
|
||||
- `target: "channel"` sends the prompt back to the originating Matrix room or DM
|
||||
- `target: "both"` sends to approver DMs and the originating Matrix room or DM
|
||||
|
||||
Matrix uses text approval prompts today. Approvers resolve them with `/approve <id> allow-once`, `/approve <id> allow-always`, or `/approve <id> deny`.
|
||||
Matrix approval prompts seed reaction shortcuts on the primary approval message:
|
||||
|
||||
- `✅` = allow once
|
||||
- `❌` = deny
|
||||
- `♾️` = allow always when that decision is allowed by the effective exec policy
|
||||
|
||||
Approvers can react on that message or use the fallback slash commands: `/approve <id> allow-once`, `/approve <id> allow-always`, or `/approve <id> deny`.
|
||||
|
||||
Only resolved approvers can approve or deny. Channel delivery includes the command text, so only enable `channel` or `both` in trusted rooms.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user