# Don't send contents of large \`@mention\`\-ed files \(\#38032\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 405d7d74761e594db0a51ecd26a968f9e185aaa0

Requested commit: 405d7d74761e594db0a51ecd26a968f9e185aaa0

Commit: 405d7d74761e594db0a51ecd26a968f9e185aaa0

Tree: 401d3f28e951cd4afa3fb61eb37af812f3829c2b

Author: Richard Feldman

Committer: GitHub

## Message

```
Don't send contents of large `@mention`-ed files (#38032)

<img width="598" height="311" alt="Screenshot 2025-09-11 at 9 39 12 PM"
src="https://github.com/user-attachments/assets/b526e648-37cf-4412-83a0-42037b9fc94d"
/>

This is for both ACP and the regular agent. Previously we would always
include the whole file, which can easily blow the context window on huge
files.

Release Notes:

- When `@mention`ing large files, the Agent Panel now send an outline of
the file instead of the whole thing.
```

## Parents

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

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