# agent: Include context with first message that introduced it \(\#27925\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2eed94ff23febdedf7fd359bf59a914b4b37b717

Requested commit: 2eed94ff23febdedf7fd359bf59a914b4b37b717

Commit: 2eed94ff23febdedf7fd359bf59a914b4b37b717

Tree: d42e56349020f8d45d51f72ffb16bef70cd0c121

Author: Agus Zubiaga

Committer: GitHub

## Message

```
agent: Include context with first message that introduced it (#27925)

We were including the context at the end which meant it never got
cached. We'll now include it with the first message that introduced it
so it's cached as long as it doesn't change.

This is an improvement, but we probably still need to think of ways to
optimize caching for cases where files in context change.

Release Notes:

- N/A
```

## Parents

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

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