# agent: Truncate bash tool output \(\#28291\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 85c5d8af3ac4f017bdedd1c1849aab5b5a794d84

Requested commit: 85c5d8af3ac4f017bdedd1c1849aab5b5a794d84

Commit: 85c5d8af3ac4f017bdedd1c1849aab5b5a794d84

Tree: 5b3186c1554891c1b30759e87bd12f2beb26188c

Author: Agus Zubiaga

Committer: GitHub

## Message

```
agent: Truncate bash tool output (#28291)

The bash tool will now truncate its output to 8192 bytes (or the last
newline before that).

We also added a global limit for any tool that produces a clearly large
output that wouldn't fit the context window.

Release Notes:

- agent: Truncate bash tool output

---------

Co-authored-by: Michael Sloan <mgsloan@gmail.com>
```

## Parents

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

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