# acp: Add keybindings for authorizing tool calls \(\#37876\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2cf3def716a714aa3585a94751f91fc977e107c5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2cf3def716a714aa3585a94751f91fc977e107c5

Requested commit: 2cf3def716a714aa3585a94751f91fc977e107c5

Commit: 2cf3def716a714aa3585a94751f91fc977e107c5

Tree: b87498d70831bfbf75455c6ef76c9d06bfa5b55f

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
acp: Add keybindings for authorizing tool calls (#37876)

TODO:
- [x] Double-check if we like the naming of the new actions
- [x] Only show keybinding hint once per option (e.g. if there are two
`allow_once` buttons only show it on the first one)
- [x] If there are multiple tool calls that need authorisation, only
show keybindings on the first tool call
- [x] Figure out which keybindings to use
- [x] Add linux keybindings
- [x] Add windows keybindings
- [x] Bug: long keybindings can make the buttons overflow


Release Notes:

- Add keybindings for authorizing tool calls (`agent: Allow once`,
`agent: Allow always`, `agent: Reject once`) in the agent panel

---------

Co-authored-by: Agus Zubiaga <agus@zed.dev>
```

## Parents

- [df2d097dc51e3cc9387553b501fc4c44fa609841](https://git.cafe/gitcafe/zed/commit/df2d097dc51e3cc9387553b501fc4c44fa609841?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2cf3def716a714aa3585a94751f91fc977e107c5?format=markdown)
