# agent: Prevent use of disabled tools \(\#33392\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b0bab0bf9a4b4307dfd2e20a6a920228917d981c

Requested commit: b0bab0bf9a4b4307dfd2e20a6a920228917d981c

Commit: b0bab0bf9a4b4307dfd2e20a6a920228917d981c

Tree: 97c947408ebe619c91fb088bd13a5b2a9eb4e6f2

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
agent: Prevent use of disabled tools (#33392)

The agent now checks if a tool is enabled in the current profile before
calling it. Previously, the agent could still call disabled tools, which
commonly happened after switching profiles in the middle of a thread.

Release Notes:

- Fixed a bug where the agent could use disabled tools sometimes
```

## Parents

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

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