matrix: anchor approval reactions to prompt events

This commit is contained in:
Gustavo Madeira Santana
2026-04-04 12:18:10 -04:00
parent 1527a1f29d
commit 32883da6ad
11 changed files with 391 additions and 159 deletions

View File

@@ -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.