# agent: Display full terminal output without scrolling \(\#31922\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b7abc9d4932e0021910cfb79cd80f07a9e0f1e8b

Requested commit: b7abc9d4932e0021910cfb79cd80f07a9e0f1e8b

Commit: b7abc9d4932e0021910cfb79cd80f07a9e0f1e8b

Tree: d49ba40a5429608f340cdc61a3c7c81d36037786

Author: Agus Zubiaga

Committer: GitHub

## Message

```
agent: Display full terminal output without scrolling (#31922)

The terminal tool card used a fixed height and scrolling, but this meant
that it was too tall for commands that only outputted a few lines, and
the nested scrolling was undesirable.

This PR makes the card be as too as needed to fit the entire output (no
scrolling), and allows the user to collapse it to fewer lines when
applicable. Making it work the same way as the edit tool card. In fact,
both tools now use a shared UI component.


https://github.com/user-attachments/assets/1127e21d-1d41-4a4b-a99f-7cd70fccbb56


Release Notes:

- Agent: Display full terminal output
- Agent: Allow collapsing terminal output
```

## Parents

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

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