# message editor: Only allow types of content the agent can handle \(\#36616\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2813073d7b642bc40c6a2f4188dec8445f9688ae

Requested commit: 2813073d7b642bc40c6a2f4188dec8445f9688ae

Commit: 2813073d7b642bc40c6a2f4188dec8445f9688ae

Tree: f045d136e37862bd3e112932d308a9427b501f2f

Author: Agus Zubiaga

Committer: GitHub

## Message

```
message editor: Only allow types of content the agent can handle (#36616)

Uses the new
[`acp::PromptCapabilities`](https://github.com/zed-industries/agent-client-protocol/blob/a39b7f635d67528f0a4e05e086ab283b9fc5cb93/rust/agent.rs#L194-L215)
to disable non-file mentions and images for agents that don't support
them.

Release Notes:

- N/A
```

## Parents

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

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