# agent: Add setting for controlling terminal tool stop button behavior \(\#47521\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 19b4e432d968aa890fdb0ce6d4204e67a140f8e7

Requested commit: 19b4e432d968aa890fdb0ce6d4204e67a140f8e7

Commit: 19b4e432d968aa890fdb0ce6d4204e67a140f8e7

Tree: b43ff526ed663d4bab93f5af7c809e6d0ac629d7

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Add setting for controlling terminal tool stop button behavior (#47521)

Addressing the feedback left on a previous PR of mine:
https://github.com/zed-industries/zed/pull/46663. I feel like this is
worthy of a setting. Note, however, that this does not apply to typing
`ctrl-c` in the terminal from within the agent panel; this is purely
controlling what happens when you click on the "Stop" button in the
terminal tool call card.

Release Notes:

- Agent: Added a setting for controlling the behavior of the stop button
in the terminal tool call card (between cancelling the command to run
and the thread, or just the command).
```

## Parents

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

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