# acp: Fix following for agents that only provide locations \(\#40710\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 79ada634aca3a03cfb9276eb5b74128d1d420549

Requested commit: 79ada634aca3a03cfb9276eb5b74128d1d420549

Commit: 79ada634aca3a03cfb9276eb5b74128d1d420549

Tree: 3067cf2c588721640dd1b915cdd4f3432af66794

Author: Ben Brandt

Committer: GitHub

## Message

```
acp: Fix following for agents that only provide locations (#40710)

We were dropping the entities once we created the buffers, so the weak
entities could never be upgraded. This treats new locations we see the
same as we would for a read/write call and stores the entity so that we
can follow like we normally would.

Release Notes:

- acp: Fix following not working with certain tool calls.
```

## Parents

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

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