# agent: Do not reuse assistant message across generations \(\#29360\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 58604fba86ebbffaa01f7c6834253e33bcd38c0f

Requested commit: 58604fba86ebbffaa01f7c6834253e33bcd38c0f

Commit: 58604fba86ebbffaa01f7c6834253e33bcd38c0f

Tree: 959e0a479849f3bd336c1891661665e163e79093

Author: Agus Zubiaga

Committer: GitHub

## Message

```
agent: Do not reuse assistant message across generations (#29360)

#29354 introduced a bug where we would append tool uses to the last
assistant message even if it was from a previous request.

Release Notes:

- N/A

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

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

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