# agent2: Fix terminal tool call content not being shown once truncated \(\#37318\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 47ad1b2143414482eeff20bab8b3b70d3c103875

Requested commit: 47ad1b2143414482eeff20bab8b3b70d3c103875

Commit: 47ad1b2143414482eeff20bab8b3b70d3c103875

Tree: 55a4793b5427b315c0270cd23e2720f58327f9c9

Author: Cole Miller

Committer: GitHub

## Message

```
agent2: Fix terminal tool call content not being shown once truncated (#37318)

We render terminals as inline if their content is below a certain line
count, and scrollable past that point. In the scrollable case we weren't
setting a height for the terminal's container, causing it to be rendered
at height 0, which means no lines would be displayed. This PR fixes that
by setting an explicit height for the scrollable case, like we do in the
agent1 UI code.

Release Notes:

- agent: Fixed a bug that caused terminals in the panel to be empty
after their content reached a certain size.
```

## Parents

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

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