# agent_ui: Enable the message queue feature for external agents \(\#47379\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4333d6b4722a8cb383d359e8604d515bfd3dc542

Requested commit: 4333d6b4722a8cb383d359e8604d515bfd3dc542

Commit: 4333d6b4722a8cb383d359e8604d515bfd3dc542

Tree: a952f730784cc5757557e35b661fa33ff402d921

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Enable the message queue feature for external agents (#47379)

Closes https://github.com/zed-industries/zed/issues/47330

This PR moves the queue logic out of the native Thread into the shared
UI layer (thread view) to enable it for external agents. There's a key
difference in behavior, though, between native and external agents:
queued messages in the former will be sent in the next turn boundary,
given we can easily tell this, whereas for the latter, queued messages
will be sent by the end of the generation. We'd need an ACP-level change
to provide exactly the same UX between both types of agents, and I
figured that's better to have _some_ version of the feature for external
agents as opposed to not having it all due to this difference.

Release Notes:

- Agent: Made the message queue feature available for external agents as
well.
```

## Parents

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

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