# assistant2: Rework how tool results are stored and referred to \(\#25817\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b445e4ce24410642996ce5d297d28eb8f37061ae

Requested commit: b445e4ce24410642996ce5d297d28eb8f37061ae

Commit: b445e4ce24410642996ce5d297d28eb8f37061ae

Tree: 5744ada411e294c551be5c60aa6ad3daa0f77fd3

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Rework how tool results are stored and referred to (#25817)

This PR reworks how we store tool results and refer to them later.

We now maintain a mapping of the tool uses to their corresponding
results, with separate mappings for the messages and the tool uses they
correspond to.

Release Notes:

- N/A
```

## Parents

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

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