# agent: Improve action confirmation UX \(\#27932\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0be8bf1b12b954eb39cfa317b92b39506fd224e3

Requested commit: 0be8bf1b12b954eb39cfa317b92b39506fd224e3

Commit: 0be8bf1b12b954eb39cfa317b92b39506fd224e3

Tree: a343cfc6b97179dffc93d1d08fd21d7fc0a902d2

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Improve action confirmation UX (#27932)

This PR makes the command permission prompt part of the tool card and
allow users to straight away change the `always_allow_tool_actions`
setting via the "Always Allow" button from that card. If that button is
clicked, that setting is turned on, and any command that requires
permission from that point on will auto-run.

Additionally, if a bash command spans multiple lines, we show the line
count at the end of the command string. (Note: this is not perfect yet
because it can likely be not visible by default, but we didn't think
this was a major blocker for now. We'll work on improving this next).

### Thread View

<img
src="https://github.com/user-attachments/assets/00f93c39-990f-4b79-84ec-0427b997167f"
width="500"/>

### Settings View

<img
src="https://github.com/user-attachments/assets/52d32435-7c8d-4ab4-a319-6cabc007267b"
width="500"/>


Release Notes:

- N/A

---------

Co-authored-by: Thomas Mickley-Doyle <tmickleydoyle@gmail.com>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
Co-authored-by: Nathan Sobo <nathan@zed.dev>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
```

## Parents

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

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