# agent: Report follow-up messages as tool permission denials \(\#61754\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a1510de54e99131f3c33c4fd86a8e71753cf08de

Requested commit: a1510de54e99131f3c33c4fd86a8e71753cf08de

Commit: a1510de54e99131f3c33c4fd86a8e71753cf08de

Tree: a593e82e4d9438e69d4f9465bc36f6c572ec342c

Author: Ben Kunkle

Committer: GitHub

## Message

```
agent: Report follow-up messages as tool permission denials (#61754)

# Objective

- Treat a follow-up sent during pending tool approval as a denial the
agent can understand.

## Solution

- Preserve the follow-up interruption through permission handling and
return a specific denial result to the model.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- Agent: Fixed agents not recognizing follow-up messages as denial of
pending tool calls.
```

## Parents

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

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