Commit 72f1579
fix(permissions): add tool name aliases + approval bridge in always_ask
Two fixes for the always_ask flow:
1. Tool name alias: OpenClaw normalizes "bash" to "exec" internally.
The confirm-tools plugin now expands common aliases so both the
user-facing name and the internal name are matched.
2. WS approval bridge: executeInBackground now subscribes to
plugin.approval.requested on the container's WS client when the
agent has always_ask policy. Pending approvals are stored in a
per-session Map and emitted as agent.tool_confirmation_request
SSE events on each poll tick and heartbeat.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ebad767 commit 72f1579
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
| |||
0 commit comments