# acp: Improve handling of invalid external agent server downloads \(\#37465\) · gitcafe/zed

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

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

Visibility: public

Requested revision: eedfc5be5aad0a043aec03ebb922e7ee5e5fc9b3

Requested commit: eedfc5be5aad0a043aec03ebb922e7ee5e5fc9b3

Commit: eedfc5be5aad0a043aec03ebb922e7ee5e5fc9b3

Tree: bb55e19ad57d8b37fd114ba6ef0249743f1aa0d2

Author: Cole Miller

Committer: GitHub

## Message

```
acp: Improve handling of invalid external agent server downloads (#37465)

Related to #37213, #37150

When listing previously-downloaded versions of an external agent, don't
try to use any downloads that are missing the agent entrypoint
(indicating that they're corrupt/unusable), and delete those versions,
so that we can attempt to download the latest version again.

Also report clearer errors when failing to start a session due to an
agent server entrypoint or root directory not existing.

Release Notes:

- N/A
```

## Parents

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

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