# agent_ui: Auto-expand and then collapse thinking blocks \(\#51525\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0ccdd9bf0942555c4d200519156e0f541a4e5ab1

Requested commit: 0ccdd9bf0942555c4d200519156e0f541a4e5ab1

Commit: 0ccdd9bf0942555c4d200519156e0f541a4e5ab1

Tree: 56cb6a143e580b99ac2c80705884580242fdaa85

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Auto-expand and then collapse thinking blocks (#51525)

With these newer models that come with different thinking levels, it's
become more frequent to want to see what the thinking is outputting.
Thus far in Zed, the thinking block would show up automatically
collapsed and every time you wanted to see it, you had to expand it
manually. This PR changes that by making the thinking block
automatically _expanded_ instead, but as soon as it's done, it collapses
again.

Release Notes:

- Agent: Improved visibility of thinking blocks by making them
auto-expanded while in progress.
```

## Parents

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

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