# agent_servers: Include stderr in ACP startup exit errors \(\#55757\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 360f955c283764e59404ee8cf28d32d3678a8f82

Requested commit: 360f955c283764e59404ee8cf28d32d3678a8f82

Commit: 360f955c283764e59404ee8cf28d32d3678a8f82

Tree: baef33a16950e123446b8461cab38927ce8f6133

Author: Ben Brandt

Committer: GitHub

## Message

```
agent_servers: Include stderr in ACP startup exit errors (#55757)

Previously, we weren't waiting on the status future early enough so we
would just hang if we weren't able to start the agent process.

I also added the recent stderr logs in there to help the user debug the
issue, since it is likely relevant in these cases.

<img width="902" height="226" alt="image"
src="https://github.com/user-attachments/assets/204e42ff-4c9b-49e7-8a6d-ecf7b022fbd0"
/>


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 is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- acp: Improve error messages if the ACP agent fails to start.
```

## Parents

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

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